CN108111358B - POE intelligent home gateway networking configuration method - Google Patents

POE intelligent home gateway networking configuration method Download PDF

Info

Publication number
CN108111358B
CN108111358B CN201810031983.3A CN201810031983A CN108111358B CN 108111358 B CN108111358 B CN 108111358B CN 201810031983 A CN201810031983 A CN 201810031983A CN 108111358 B CN108111358 B CN 108111358B
Authority
CN
China
Prior art keywords
gateway
intelligent home
election
poe intelligent
home gateway
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.)
Active
Application number
CN201810031983.3A
Other languages
Chinese (zh)
Other versions
CN108111358A (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.)
Chongqing Huijiatong Information Technology Co ltd
Original Assignee
Chongqing Huijiatong Information 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 Chongqing Huijiatong Information Technology Co ltd filed Critical Chongqing Huijiatong Information Technology Co ltd
Priority to CN201810031983.3A priority Critical patent/CN108111358B/en
Publication of CN108111358A publication Critical patent/CN108111358A/en
Application granted granted Critical
Publication of CN108111358B publication Critical patent/CN108111358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a POE intelligent home gateway networking configuration method, which comprises the following steps: broadcasting an election information collection message, wherein the election information collection message comprises an MAC address of the POE intelligent home gateway and a device type value representing the performance of the POE intelligent home gateway; receiving election information collection messages broadcasted by other POE intelligent home gateways, and updating an election candidate list so that the election candidate list comprises equipment type values and MAC addresses of all POE intelligent home gateways; judging whether the POE intelligent home gateway meets the gateway election condition or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, the system works in a gateway mode, otherwise, the system works in an access mode. By the invention, automatic networking of the POE intelligent home gateway can be realized, and artificial participation in networking configuration is avoided, so that networking management and maintenance can be simplified.

Description

POE intelligent home gateway networking configuration method
Technical Field
The invention belongs to the field of intelligent home, and particularly relates to a POE (Power Over Ethernet, Ethernet Power supply) intelligent home gateway networking configuration method.
Background
With the increase of the number of the smart home devices used in a home, networking of smart homes is more and more complex. The traditional networking mode is as shown in fig. 1, a traditional intelligent home gateway and a WiFi router need to be arranged in each room, each traditional intelligent home gateway and each WiFi router need to be configured with a corresponding power adapter, the traditional intelligent home gateways in each room need to be connected with a common dial-up router through network cables, and the traditional intelligent home gateways and the WiFi routers need to be connected through network cables.
With the development of the technology, research and development personnel research out a POE intelligent home networking mode, as shown in fig. 2, the POE intelligent home networking integrates a traditional intelligent home gateway and a WiFi router, so that the number of devices is reduced, and the number of power adapters and the number of network cables are correspondingly reduced. However, the networking mode still needs manual networking configuration, and the complexity of networking management and maintenance is still high.
Disclosure of Invention
The invention provides a POE intelligent home gateway configuration networking method, which aims to solve the problem of higher complexity of management and maintenance in the conventional networking mode.
According to a first aspect of the embodiment of the present invention, a POE intelligent home gateway networking configuration method is provided, which is applied to a POE intelligent home gateway, and includes a negotiation networking process:
s110, broadcasting an election information collection message, wherein the election information collection message comprises an MAC address of the POE intelligent home gateway and a device type numerical value representing the performance of the POE intelligent home gateway;
s120, receiving election information collection messages broadcasted by other POE intelligent home gateways, and updating an election candidate list so that the election candidate list comprises device type values and MAC addresses of the POE intelligent home gateways and the other POE intelligent home gateways;
s130, judging whether the POE intelligent home gateway meets gateway election conditions or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, go to step S140, otherwise go to step S160;
s140, broadcasting an election message, wherein the election message comprises an MAC address of the POE intelligent home gateway and a device type value representing the performance of the POE intelligent home gateway;
s150, broadcasting a gateway confirmation message to other POE intelligent home gateways, enabling the gateway confirmation message to be used as gateway equipment to enter a gateway mode, and updating the election candidate list after receiving a confirmation receiving message returned by the corresponding POE intelligent home gateway so as to set the mode state of the corresponding POE intelligent home gateway in the election candidate list to be an access mode;
s160, after receiving the election message broadcasted by the corresponding POE intelligent home gateway, updating the election candidate list to set the mode state of the corresponding POE intelligent home gateway in the election candidate list as a gateway mode;
and S170, after receiving the gateway confirmation message broadcasted by the corresponding POE intelligent home gateway, the gateway confirmation message is used as access equipment to enter an access mode, and a confirmation received message is returned to the corresponding POE intelligent home gateway.
In an optional implementation manner, after the step S140 and before the step S150, the method further includes:
step S180, after receiving election messages broadcasted by other POE intelligent home gateways, updating an election candidate list so as to add the device type values and MAC addresses of other POE intelligent home gateways broadcasting the election messages to the election candidate list;
step S190, judging whether the POE intelligent home gateway meets gateway election conditions or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, the step S150 is executed, otherwise, the step 170 is executed.
In another optional implementation manner, the steps S120 and S180 specifically include:
s121, starting a first timer, starting to receive a corresponding message, and executing a step S122 when the first timer is overtime or receives the corresponding message;
s122, judging whether the first timer is overtime or not, if not, indicating that a corresponding message is received, and executing S123; if yes, executing corresponding step S130 or step S190;
and S123, updating the election candidate list when corresponding messages broadcasted by other POE intelligent home gateways are received, adding the device type values and the MAC addresses in the newly received corresponding messages to the election candidate list, and executing the step S121.
In another optional implementation manner, the determining, in step S130 and step S190, whether the POE intelligent home gateway meets the gateway election condition according to the device type value and the MAC address in the election candidate list specifically includes:
s131, judging whether the performance represented by the equipment type numerical value is the highest, if so, executing a step S132, otherwise, executing a step S135;
s132, judging whether a plurality of POE intelligent home gateways with the highest performance exist, if so, executing a step S133, otherwise, executing a step S134;
s133, judging whether the MAC address is the maximum value or the minimum value in the sequence, if so, executing a step S134, otherwise, executing a step S135;
s134, determining that the POE intelligent home gateway meets gateway election conditions;
and S135, determining that the POE intelligent home gateway does not accord with the gateway election condition.
In another optional implementation manner, after the election message is broadcast in step S140, if there is a new POE intelligent home gateway that is accessed, after receiving the election information collection message broadcast by the POE intelligent home gateway, the gateway device adds the device type value and the MAC address of the POE intelligent home gateway to the election candidate list, and directly sends a gateway confirmation message to the POE intelligent home gateway, where the POE intelligent home gateway enters an access mode as an access device after receiving the gateway confirmation message, and then returns a confirmation received message to the gateway device, and after receiving the confirmation received message, the gateway device sets the mode state of the POE intelligent home gateway in the election candidate list to the access mode.
In another optional implementation manner, the method further includes a networking self-healing process:
and after the connection between the gateway equipment and the access equipment is interrupted, each equipment respectively starts a second timer to start timing, and after the second timer is overtime, if the connection between the gateway equipment and the access equipment is still in an interrupted state, the negotiation networking process is re-entered.
In another optional implementation manner, the method further includes an information configuration flow: the gateway equipment configures the information of the gateway equipment and each access equipment; the information configuration process specifically includes an information change configuration process:
after a user logs in the gateway equipment to change the configuration information, the gateway equipment issues all the changed configuration information to each access equipment;
after the user logs in the access device to change the configuration information, the access device issues all the changed configuration information to the gateway device, and then the gateway device issues all the changed configuration information to each access device.
In another optional implementation manner, the information configuration process further specifically includes a personalized information configuration process:
the gateway equipment creates a plurality of pieces of or one piece of personalized configuration information, and parameters in each piece of personalized configuration information in the plurality of pieces of information are different;
the gateway equipment issues all the individual configuration information to each access equipment, so that the access equipment randomly selects one for configuration after receiving all the individual configuration information.
In another optional implementation manner, the information configuration flow specifically further includes a public information configuration flow:
and the gateway equipment issues the public configuration information to all the access equipment so that each access equipment carries out configuration according to the public configuration information.
In another optional implementation manner, before entering the negotiation networking process, the method further includes: judging whether the mode configuration information is invalid, if so, entering the negotiation networking process;
after the step S150 or S170, the method further includes: and setting the mode configuration information to be effective.
The invention has the beneficial effects that:
1. according to the invention, through a negotiation networking process, automatic networking of the POE intelligent home gateway can be realized, artificial participation in networking configuration is avoided, and therefore networking management and maintenance can be simplified, wherein gateway equipment is elected according to an equipment type value and an MAC address, the gateway equipment can be rapidly elected, and smooth information configuration after networking is ensured; after the gateway equipment is elected, the message interaction between the gateway equipment and the access equipment is designed, so that the safety and the stability of networking can be ensured;
2. according to the invention, by designing the situation that the POE intelligent home gateway broadcasts the election message and simultaneously receives the election message, the elected gateway equipment can be ensured to be the POE intelligent home gateway with the highest performance in the network, and the networking fault tolerance rate can be improved;
3. the timer is introduced when the election information collection message is collected, the method is simple, and the election information collection messages of all POE intelligent home gateways can be received;
4. after the equipment type values and MAC addresses of all POE intelligent home gateways are stored in the election candidate list, the POE intelligent home gateway with the highest performance (usually the lowest equipment type value) represented by the equipment type values is used as the gateway equipment, so that smooth information configuration can be ensured, and after the POE intelligent home gateway with the highest certainty performance is determined, the gateway equipment can be rapidly elected when a plurality of POE intelligent home gateways with the highest performance exist according to the size of the MAC addresses of the POE intelligent home gateways;
5. the access of the new POE intelligent home gateway can be realized after the networking negotiation is successful, and the successfully negotiated networking cannot be influenced in the access process;
6. according to the invention, through the networking self-healing process, when the connection interruption of the gateway equipment and the access equipment exceeds the preset time, the negotiation networking process is forced to enter again, so that the paralysis of the whole networking caused by the damage of the enumerated gateway equipment can be avoided, the self-healing capability of the networking is improved, and the management and maintenance of the networking are simplified;
7. the invention can log in the gateway equipment or any access equipment nearby to change the configuration information, thereby improving the management convenience;
8. the invention can create a plurality of pieces of individual configuration information in advance, flexibly cope with the networking environment in charge, for example, under the environment with serious same frequency interference, a plurality of pieces of individual configuration information can be preset, WiFi channels in each piece of information are configured to different values, and each piece of access equipment works on different channels after being configured according to the individual configuration information, thereby effectively avoiding the same frequency interference; the invention can support that the number of the individual configuration information is larger than that of the POE intelligent home gateways in the group network.
Drawings
Fig. 1 is a schematic structural diagram of an embodiment of a traditional smart home networking approach;
fig. 2 is a schematic structural diagram of an embodiment of a POE smart home networking approach;
FIG. 3 is a state machine diagram of one embodiment of the negotiation networking and networking self-healing of the present invention;
FIG. 4 is a flow diagram of one embodiment of a negotiation networking of the present invention;
FIG. 5 is a flow diagram of one embodiment of the present invention for receiving election information collection messages;
FIG. 6 is a flow diagram of one embodiment of the present invention for determining whether a gateway election condition is met;
FIG. 7 is a data flow diagram of one embodiment of an information change configuration of the present invention.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the term "connected" is to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, or a communication between two elements, or may be a direct connection or an indirect connection through an intermediate medium, and a specific meaning of the term may be understood by those skilled in the art according to specific situations.
The invention provides a POE intelligent home gateway networking configuration method, which is applied to a POE intelligent home gateway and comprises a negotiation networking process, a networking self-healing process and an information configuration process, wherein the negotiation networking process is shown in figure 3 and can comprise the following steps in combination with figure 4:
step S110, broadcasting an election information collection message, wherein the election information collection message comprises the MAC address of the POE intelligent home gateway and a device type numerical value representing the performance of the POE intelligent home gateway.
In this embodiment, the performance of the POE intelligent home gateway is determined by hardware and software configuration of the POE intelligent home gateway, before the POE intelligent home gateway leaves a factory, the device type value for identifying the performance of the POE intelligent home gateway is stored, and the device type value of the device with higher performance is usually set to be a smaller value, for example, the high-performance gateway device type value is set to 1, the medium-performance gateway device type value is set to 2, and the low-performance gateway device type value is set to 3. In addition, each POE intelligent home gateway allocates a globally unique MAC address, and locally stores mode configuration information, where the mode configuration information is stored in a nonvolatile storage medium, and includes three values, namely invalid, gateway, and access, where the gateway and the access belong to valid states, and a factory setting state of the mode configuration information is an invalid state. When the negotiation networking process is started, an election candidate list is created, and the list can contain a plurality of pieces of data information, wherein each piece of data information can comprise a device type value, a MAC address and a mode state. For each POE intelligent home gateway, after the POE intelligent home gateway is started, whether the mode configuration information is invalid or not is checked, if the mode configuration information is invalid, a negotiation networking process is started, and election information collection messages carrying equipment type values and MAC addresses are broadcasted outwards in a broadcasting mode. Otherwise, the networking negotiation is finished before the completion, the mode configuration is directly carried out based on the mode configuration information, and the working state is entered. After networking negotiation is completed, each POE intelligent home gateway can save the negotiated mode state as mode configuration information, and after the networking negotiation is completed, each POE intelligent home gateway directly and quickly enters the working state when being restarted, so that the starting speed of the POE intelligent home gateway is increased.
Step S120, receiving election information collection messages broadcasted by other POE intelligent home gateways, and updating an election candidate list so that the election candidate list comprises the POE intelligent home network and the equipment type values and the MAC addresses of the other POE intelligent home gateways. In this embodiment, in order to ensure that election information collecting messages broadcasted by other POE intelligent home gateways are received as much as possible, the invention introduces a timer, and as shown in fig. 5, step S120 specifically includes:
s121, starting a first timer, starting to receive a corresponding message (namely, an election information collection message), and executing a step S122 when the timer is overtime or the corresponding message is received;
s122, judging whether the first timer is overtime or not, if not, indicating that a corresponding message is received, and executing S123; if yes, executing step S130;
and S123, updating an election candidate list when corresponding messages broadcasted by other POE intelligent home gateways are received, adding the newly received equipment type values and MAC addresses in the election information collection messages to the election candidate list, and executing the step S121.
Step S130, judging whether the POE intelligent home gateway meets gateway election conditions or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, go to step S140, otherwise go to step S160. As shown in fig. 6, the step S130 specifically includes:
s131, judging whether the performance represented by the equipment type numerical value is the highest, if so, executing a step S132, otherwise, executing a step S135;
s132, judging whether a plurality of POE intelligent home gateways with the highest performance exist, if so, executing a step S133, otherwise, executing a step S134;
s133, judging whether the MAC address is the maximum value or the minimum value in the sequence, if so, executing a step S134, otherwise, executing a step S135;
s134, determining that the POE intelligent home gateway meets gateway election conditions;
and S135, determining that the POE intelligent home gateway does not accord with the gateway election condition.
After the equipment type values and the MAC addresses of all POE intelligent home gateways are stored in the election candidate list, the POE intelligent home gateway with the highest performance (usually the lowest equipment type value) represented by the equipment type values is used as the gateway equipment, so that smooth information configuration can be ensured, and after the POE intelligent home gateway with the highest certainty performance is obtained, the gateway equipment can be rapidly elected when a plurality of POE intelligent home gateways with the highest performance exist according to the size of the MAC addresses of the POE intelligent home gateways.
And step S140, broadcasting an election message, wherein the election message comprises an MAC address of the POE intelligent home gateway and a device type value representing the performance of the POE intelligent home gateway. Although the timer is introduced in step S120 to receive election information collection messages of other POE intelligent home gateways as much as possible, there may still be omissions, and at this time, the POE intelligent home gateway may also receive election messages broadcast by other POE intelligent home gateways while broadcasting the election messages. And if the POE intelligent home gateway receives the election message broadcasted by other POE intelligent home gateways while broadcasting the election message, executing the step S180, otherwise, executing the step S150.
Step S180, after the election message broadcasted by other POE intelligent home gateways is received, updating an election candidate list so as to add the device type numerical value and the MAC address of other POE intelligent home gateways broadcasting the election message to the election candidate list. As shown in fig. 5, step S180 specifically includes
S121, starting a first timer, starting to receive a corresponding message, and executing a step S122 when the first timer is overtime or receives the corresponding message;
s122, judging whether the first timer is overtime or not, if not, indicating that a corresponding message is received, and executing S123; if yes, executing step S190;
and S123, updating the election candidate list when corresponding messages broadcasted by other POE intelligent home gateways are received, adding the device type values and the MAC addresses in the newly received corresponding messages to the election candidate list, and executing the step S121.
Step S190, judging whether the POE intelligent home gateway meets gateway election conditions or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, the step S150 is executed, otherwise, the step 170 is executed. As shown in fig. 6, step S190 specifically includes:
s131, judging whether the performance represented by the equipment type numerical value is the highest, if so, executing a step S132, otherwise, executing a step S135;
s132, judging whether a plurality of POE intelligent home gateways with the highest performance exist, if so, executing a step S133, otherwise, executing a step S134;
s133, judging whether the MAC address is the maximum value or the minimum value in the sequence, if so, executing a step S134, otherwise, executing a step S135;
s134, determining that the POE intelligent home gateway meets gateway election conditions;
and S135, determining that the POE intelligent home gateway does not accord with the gateway election condition.
In this embodiment, if the POE intelligent home gateway receives the election message while broadcasting the election message, it means that the equipment type value and the MAC address of the POE intelligent home gateway of the opposite party do not exist in the election candidate list of the POE intelligent home gateway, and for this reason, the invention first adds the equipment type value and the MAC address of the opposite party to the election candidate list, then, the POE intelligent home gateway is compared with the equipment type value of the opposite POE intelligent home gateway, if the performance of the POE intelligent home gateway is higher, and determining that the POE intelligent home gateway performs a gateway mode for the gateway device, and executing step S150, otherwise, determining that the POE intelligent home gateway of the other party enters the gateway mode for the gateway device, and executing step S170, wherein the POE intelligent home gateway abandons the broadcast gateway confirmation message and waits for the gateway confirmation message, so that the POE intelligent home gateway configures the gateway into the access mode. Therefore, the invention can ensure that the selected gateway equipment is the POE intelligent home gateway with the highest performance in the network, and can improve the networking fault tolerance.
Step S150, broadcasting a gateway confirmation message to other POE intelligent home gateways, enabling the gateway confirmation message to be used as gateway equipment to enter a gateway mode, and updating the election candidate list after receiving a confirmation receiving message returned by the corresponding POE intelligent home gateway so as to set the mode state of the corresponding POE intelligent home gateway in the election candidate list to be an access mode. If the device acknowledgement message is not received within the specified time, the device working in the gateway mode sends the gateway acknowledgement message to the corresponding device by using a unicast cycle, and the device does not stop until receiving the response message.
Step S160, after receiving the election message broadcasted by the corresponding POE intelligent home gateway, updating the election candidate list so as to set the mode state of the corresponding POE intelligent home gateway in the election candidate list to be a gateway mode.
Step S170, after receiving the gateway confirmation message broadcasted by the corresponding POE intelligent home gateway, the gateway confirmation message is used as access equipment to enter an access mode, and a confirmation received message is returned to the corresponding POE intelligent home gateway.
In this embodiment, take POE intelligent home gateways a and B as an example, if POE intelligent home gateway a meets the gateway election condition, then at first POE intelligent home gateway a broadcasts the election message, and POE intelligent home gateway B updates the election candidate list after receiving the election message, so as to set the mode state of POE intelligent home gateway a in the election candidate list to the gateway mode. Then POE intelligent home gateway A broadcast gateway confirms the message, POE intelligent home gateway A sets up the mode of oneself into the gateway mode this moment, save as its corresponding mode configuration information, POE intelligent home gateway B sets up the mode of oneself into the access mode after receiving gateway confirmation message, save as mode configuration information, and return to POE intelligent home gateway A and confirm and receive the message, POE intelligent home gateway A is after receiving and confirming and receiving the message, the mode state to POE intelligent home gateway B sets up into the access mode in its election candidate list. When the POE intelligent home gateway a does not receive the acknowledgement receipt message returned by the corresponding POE intelligent home gateway B within the preset time, the POE intelligent home gateway a periodically sends a gateway acknowledgement message to the corresponding POE intelligent home gateway B in a unicast manner until receiving the acknowledgement receipt message returned by the POE intelligent home gateway B. The invention can ensure the safety and stability of the networking through the message interaction between the gateway equipment and the access equipment, and the whole networking is automatically carried out without manual configuration.
So far, the negotiation networking process is finished, the mode configuration information in each POE intelligent home gateway is set to be effective, and the POE intelligent home gateway directly and quickly enters a working state when being started again after being closed. After the negotiation networking process is finished, the POE intelligent home gateway enters a networking self-healing process: and when the connection between the gateway equipment and the access equipment is interrupted, re-entering the negotiation networking process. Specifically, after the connection between the gateway device and the access device is interrupted, each access device starts a second timer to start timing, and after the second timer expires, if the connection between the gateway device and the access device is still in the interrupted state, the negotiation networking process is re-entered. The invention forces to enter the negotiation networking process again when the connection interruption of the gateway equipment and the access equipment exceeds the preset time, can avoid the paralysis of the whole networking caused by the damage of the elected gateway equipment, improves the self-healing capability of the networking, and simplifies the management and maintenance of the networking. In addition, after the negotiation networking has entered the election stage (i.e., step S140 sends a broadcast election message), if there is a new POE intelligent home gateway, the gateway device adds the device type value and the MAC address of the POE intelligent home gateway to the election candidate list after receiving the election information collection message broadcasted by the POE intelligent home gateway, and directly sends a gateway confirmation message to the POE intelligent home gateway, where the POE intelligent home gateway enters the access mode as the access device after receiving the gateway confirmation message, and then returns a confirmation received message to the gateway device, and the gateway device sets the mode of the POE intelligent home gateway in the POE election candidate list to the access mode after receiving the confirmation received message. Therefore, the access of the new POE intelligent home gateway can be realized after the networking negotiation is successful, and the successful networking of the negotiation cannot be influenced in the access process.
In addition, after the negotiation networking process is finished, the POE intelligent home gateway can also enter an information configuration process: and the gateway equipment performs information configuration on the gateway equipment and each access equipment. After the negotiation networking process is finished, the gateway device creates a service for managing information configuration, synchronizing configuration with the access device and assisting mode negotiation of a subsequent new access POE intelligent home gateway; the access device creates a client task, which is responsible for subscribing all configuration information published by the gateway device, creating or updating the existing configuration information by using the subscribed configuration information, and configuring according to the acquired configuration information. The configuration information may include public configuration information and personality configuration information, where the public configuration information is the same configuration shared by the gateway device and the access device, and the personality configuration information is a configuration owned by each type of device, for example, a WiFi name and a password belong to the public configuration information, and a WiFi channel and a Zigbee channel belong to the personality configuration information. The information configuration process in the invention specifically comprises an information change configuration process, a personalized information configuration process and a public information configuration process.
As shown in fig. 7, the information change configuration process specifically includes: after a user logs in the gateway equipment to change the configuration information, the gateway equipment issues all the changed configuration information to each access equipment; after the user logs in the access device to change the configuration information, the access device issues all the changed configuration information to the gateway device, and then the gateway device issues all the changed configuration information to each access device. The modification of the information may include addition, deletion, and modification of configuration information, where the addition of configuration information is preset configuration information for an access device to be added later, and the deletion and modification of configuration information are for existing configuration information. The invention can change the configuration information by logging in the gateway equipment or any access equipment nearby, thereby improving the convenience of management.
The personalized information configuration process specifically includes: the gateway device may create multiple pieces of or one piece of personality configuration information, and parameters in each piece of personality configuration information in the multiple pieces of information may be different, for example, WiFi channels of each piece of configuration information may be different; the gateway equipment issues all the individual configuration information to all the access equipment, so that the access equipment randomly selects one for configuration after receiving all the individual configuration information. The invention creates a plurality of pieces of individual configuration information in advance, so that WiFi channels in each piece of individual configuration information are different, and when each piece of access equipment selects different individual configuration information to perform channel configuration, the WiFi channels can be ensured to be different from each other, thereby avoiding the occurrence of same frequency interference; the invention can support that the number of the individual configuration information is larger than that of the POE intelligent home gateways in the group network, and each access device selects one individual configuration information from all the individual configuration information to configure, thereby improving the discreteness of the WiFi channel and further reducing the signal interference. In addition, the public information configuration flow specifically includes: and the gateway equipment issues the public configuration information to each access equipment so that each access equipment carries out configuration according to the public configuration information.
As can be seen from the above embodiments, the POE intelligent home gateway automatic networking can be realized by negotiating the networking process, and manual participation in networking configuration is avoided, so that networking management and maintenance can be simplified, wherein the gateway device is elected according to the device type value and the MAC address, so that the gateway device can be elected quickly and smooth information configuration after networking is ensured; after the gateway equipment is elected, the message interaction between the gateway equipment and the access equipment is designed, so that the safety and the stability of networking can be ensured.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A POE intelligent home gateway networking configuration method is applied to a POE intelligent home gateway, and is characterized by comprising a negotiation networking flow:
s110, broadcasting an election information collection message, wherein the election information collection message comprises an MAC address of the POE intelligent home gateway and a device type numerical value representing the performance of the POE intelligent home gateway;
s120, receiving election information collection messages broadcasted by other POE intelligent home gateways, and updating an election candidate list so that the election candidate list comprises device type values and MAC addresses of the POE intelligent home gateways and the other POE intelligent home gateways;
s130, judging whether the POE intelligent home gateway meets gateway election conditions or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, go to step S140, otherwise go to step S160;
s140, broadcasting an election message, wherein the election message comprises an MAC address of the POE intelligent home gateway and a device type value representing the performance of the POE intelligent home gateway;
s150, broadcasting a gateway confirmation message to other POE intelligent home gateways to be used as gateway equipment to enter a gateway mode, and updating the election candidate list after receiving confirmation receiving messages returned by other POE intelligent home gateways so as to set the mode states of other POE intelligent home gateways in the election candidate list to be an access mode;
s160, after receiving the election message broadcasted by the POE intelligent home gateway meeting the gateway election condition, updating the election candidate list so as to set the mode state of the POE intelligent home gateway meeting the gateway election condition in the election candidate list to be a gateway mode;
s170, after receiving the gateway confirmation message broadcasted by the POE intelligent home gateway meeting the gateway election condition, the POE intelligent home gateway enters an access mode as access equipment, and returns a confirmation received message to the POE intelligent home gateway meeting the gateway election condition.
2. The POE intelligent home gateway networking configuration method according to claim 1, after step S140 and before step S150, further comprising:
step S180, after receiving election messages broadcasted by other POE intelligent home gateways, updating an election candidate list so as to add the device type values and MAC addresses of other POE intelligent home gateways broadcasting the election messages to the election candidate list;
step S190, judging whether the POE intelligent home gateway meets gateway election conditions or not according to the equipment type numerical value and the MAC address in the election candidate list: if yes, the step S150 is executed, otherwise, the step 170 is executed.
3. The POE intelligent home gateway networking configuration method according to claim 2, wherein steps S120 and S180 specifically include:
s121, starting a first timer, starting to receive a corresponding message, and executing a step S122 when the first timer is overtime or receives the corresponding message;
s122, judging whether the first timer is overtime or not, if not, indicating that a corresponding message is received, and executing S123; if yes, executing corresponding step S130 or step S190;
and S123, updating the election candidate list when corresponding messages broadcasted by other POE intelligent home gateways are received, adding the device type values and the MAC addresses in the newly received corresponding messages to the election candidate list, and executing the step S121.
4. The POE intelligent home gateway networking configuration method according to claim 2, wherein in steps S130 and S190, according to the device type value and the MAC address in the election candidate list, it is determined whether the POE intelligent home gateway meets a gateway election condition, and specifically, the method includes:
s131, judging whether the performance represented by the equipment type numerical value is the highest, if so, executing a step S132, otherwise, executing a step S135;
s132, judging whether a plurality of POE intelligent home gateways with the highest performance exist, if so, executing a step S133, otherwise, executing a step S134;
s133, judging whether the MAC address is the maximum value or the minimum value in the sequence, if so, executing a step S134, otherwise, executing a step S135;
s134, determining that the POE intelligent home gateway meets gateway election conditions;
and S135, determining that the POE intelligent home gateway does not accord with the gateway election condition.
5. The POE intelligent home gateway networking configuration method according to claim 1, wherein after the election message is broadcasted in step S140, if there is a new POE intelligent home gateway that is accessed, the gateway device adds the device type value and the MAC address of the POE intelligent home gateway to the election candidate list after receiving the election information collection message broadcasted by the POE intelligent home gateway, and directly sends a gateway confirmation message to the POE intelligent home gateway, the POE intelligent home gateway enters an access mode as access equipment after receiving the gateway confirmation message, and then returns a confirmation receipt message to the gateway device, and the gateway device sets the mode state of the POE intelligent home gateway in the election candidate list to the access mode after receiving the confirmation receipt message.
6. The POE intelligent home gateway networking configuration method according to claim 1, further comprising a networking self-healing process:
and after the connection between the gateway equipment and the access equipment is interrupted, each equipment respectively starts a second timer to start timing, and after the second timer is overtime, if the connection between the gateway equipment and the access equipment is still in an interrupted state, the negotiation networking process is re-entered.
7. The POE intelligent home gateway networking configuration method of claim 1, further comprising an information configuration process: the gateway equipment configures the information of the gateway equipment and each access equipment; the information configuration process specifically includes an information change configuration process:
after a user logs in the gateway equipment to change the configuration information, the gateway equipment issues all the changed configuration information to each access equipment;
after the user logs in the access device to change the configuration information, the access device issues all the changed configuration information to the gateway device, and then the gateway device issues all the changed configuration information to each access device.
8. The POE intelligent home gateway networking configuration method according to claim 7, wherein the information configuration process further includes a personalized information configuration process:
the gateway equipment creates a plurality of pieces of or one piece of personalized configuration information, and parameters in each piece of personalized configuration information in the plurality of pieces of information are different;
the gateway equipment issues all the individual configuration information to each access equipment, so that the access equipment randomly selects one for configuration after receiving all the individual configuration information.
9. The POE intelligent home gateway networking configuration method according to claim 7 or 8, wherein the information configuration process further includes a public information configuration process:
and the gateway equipment issues the public configuration information to all the access equipment so that each access equipment carries out configuration according to the public configuration information.
10. The POE intelligent home gateway networking configuration method according to claim 1, before entering the negotiation networking procedure, further comprising: judging whether the mode configuration information is invalid, if so, entering the negotiation networking process;
after the step S150 or S170, the method further includes: and setting the mode configuration information to be effective.
CN201810031983.3A 2018-01-12 2018-01-12 POE intelligent home gateway networking configuration method Active CN108111358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810031983.3A CN108111358B (en) 2018-01-12 2018-01-12 POE intelligent home gateway networking configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810031983.3A CN108111358B (en) 2018-01-12 2018-01-12 POE intelligent home gateway networking configuration method

Publications (2)

Publication Number Publication Date
CN108111358A CN108111358A (en) 2018-06-01
CN108111358B true CN108111358B (en) 2020-11-10

Family

ID=62219986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810031983.3A Active CN108111358B (en) 2018-01-12 2018-01-12 POE intelligent home gateway networking configuration method

Country Status (1)

Country Link
CN (1) CN108111358B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109739097A (en) * 2018-12-14 2019-05-10 武汉城市职业学院 A kind of smart home robot and application thereof based on embedded type WEB
CN109548053B (en) * 2019-02-01 2022-09-06 深圳市共进电子股份有限公司 Method for synchronous wireless configuration of networking equipment
CN110034983B (en) * 2019-03-08 2020-12-29 佛山市云米电器科技有限公司 Home equipment linkage method and system based on publish-subscribe message processing mechanism
CN110247980B (en) * 2019-06-25 2021-07-30 腾讯科技(深圳)有限公司 Gateway control method in local area network and gateway
CN111884888A (en) * 2020-07-27 2020-11-03 宁波奥克斯电气股份有限公司 Referee machine election method and device, intelligent equipment and computer readable storage medium
CN113453251A (en) * 2021-05-25 2021-09-28 新华三技术有限公司成都分公司 Wireless network equipment and networking method
CN114374935B (en) * 2022-03-21 2022-06-24 北京远度互联科技有限公司 Cluster terminal communication method, device and system
CN115119230A (en) * 2022-05-09 2022-09-27 成都市联洲国际技术有限公司 Method, device, equipment and storage medium for determining master equipment and slave equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746888A (en) * 2013-12-30 2014-04-23 广东瑞德智能科技股份有限公司 Intelligent home gateway and node networking and network quitting method
CN104811375A (en) * 2015-05-08 2015-07-29 三星电子(中国)研发中心 Smart home gateway and networking method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8798671B2 (en) * 2006-07-26 2014-08-05 Motorola Mobility Llc Dual mode apparatus and method for wireless networking configuration
CN104301905B (en) * 2014-10-20 2018-10-16 上海电机学院 Smart home ad hoc network method based on supervision of election strategy and system
CN105721293B (en) * 2016-02-01 2018-12-28 四川长虹电器股份有限公司 A kind of adaptive competing method of Master gateway based on Alljoyn agreement
CN106993340A (en) * 2016-02-02 2017-07-28 中国科学院上海高等研究院 A kind of multistage gateway wireless self-networking, network-building method and its communication means
CN106455055A (en) * 2016-11-07 2017-02-22 海信集团有限公司 Method for determining gateway and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746888A (en) * 2013-12-30 2014-04-23 广东瑞德智能科技股份有限公司 Intelligent home gateway and node networking and network quitting method
CN104811375A (en) * 2015-05-08 2015-07-29 三星电子(中国)研发中心 Smart home gateway and networking method thereof

Also Published As

Publication number Publication date
CN108111358A (en) 2018-06-01

Similar Documents

Publication Publication Date Title
CN108111358B (en) POE intelligent home gateway networking configuration method
CN111865736B (en) Equipment control method and device
CN113709839A (en) Multi-gateway network switching method, device and system, electronic equipment and storage medium
CN110233746B (en) Home networking method and home networking AP
CN111010324A (en) Household appliance ad hoc network method and system based on BLE MESH network protocol
EP2541834A1 (en) Method and device for managing machince-to-machine network topology structure
CN112512028B (en) Intelligent product replacement system and method based on Bluetooth Mesh network
CN112671904A (en) Method and device for transmitting equipment state information, storage medium and electronic device
CN105392185A (en) Intelligent equipment networking method and device, and system
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
US8179914B1 (en) Network slot synchronization scheme for a computer network communication channel
CN108986437A (en) A kind of electric power acquisition terminal monitoring adjustment method based on WIFI
CN111918382A (en) Wireless synchronous group control method and device
CN105246128B (en) The network-building method and device of a kind of intelligent terminal
CN104022515B (en) Reactive compensation cabinet and the control method of reactive compensation unit
CN113783679B (en) Communication method and system based on RPL (remote procedure call) routing protocol
CN113179507B (en) Bluetooth mesh-based self-distribution networking method and system without main equipment
CN113098737B (en) User node admission control method and device and electronic equipment
CN108650329A (en) Main control device electoral machinery in a kind of more peer nodes communication
CN113765795A (en) Networking method, device, system and storage medium
CN113676988A (en) Wireless sensor access method and system of broadband carrier communication network
CN104507175A (en) WIA-PA (Wireless Networks for Industrial Automation Process Automation) network handheld device random network accessing method
EP1195025A1 (en) Network slot synchronization scheme for a computer network communication channel
CN110809276B (en) Household wireless communication system without mutual interference and networking method thereof
CN113347646B (en) Mesh networking management method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant