Communication method and system in power line communication network routing failure state
By evaluating channel quality in the power line communication network and selecting new proxy nodes, refreshing and persisting the routing table information, the problem of reduced communication success rate and increased delay caused by routing failure is solved, and efficient communication is achieved in the case of routing failure.
Patent Information
- Application Number
- CN202411960198.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-11
AI Technical Summary
In power line communication networks, the failure of routing tables leads to a decrease in communication success rate and an increase in delay, and flooding technology cannot meet the needs under high frequency communication and a large number of equipment.
Receive beacon frames through sites at all levels, evaluate the channel quality of surrounding sites, select alternative proxy nodes, and initiate proxy change requests to gateway nodes. Gateway nodes specify new proxy nodes based on network topology and channel quality, and refresh and persist the routing table information through step-by-step proxy nodes.
It improves the communication success rate in the case of routing failure, reduces the intermediate path of message delivery and repeated communication, avoids network bandwidth exhaustion, and meets the high frequency communication needs of large-scale devices.
Smart Images

Figure CN119814642A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power line carrier communication, and in particular to a communication method and system for a power line communication network routing failure state. Background Art
[0002] Power Line Communication (PLC) technology refers to a communication method that uses power lines to transmit data and signals. With the rapid development of Internet of Things technology, PLC has been widely used in smart home products.
[0003] When PLC technology is applied to the whole-house smart field, due to the large number of nodes in a single network (from dozens to hundreds), a large number of messages will be sent between various sensors, so they will communicate frequently and use panels to control networked devices; in addition, there are many uncertain factors in the home power grid, and unpredictable interference may occur at any time, making route maintenance difficult. If there is a power outage or the air switch trips, once the power is lost, the routing table needs to be re-established after powering on again, and the gateway node will also fail. Once the gateway node fails, the tree topology structure will not be able to be established.
[0004] In view of the above situation, when the power line communication network routing fails, how to improve the communication success rate and reduce the delay has become one of the urgent problems to be solved. Summary of the invention
[0005] The present invention provides a communication method for a power line communication network routing failure state, comprising:
[0006] The stations at each level receive beacon frames and evaluate the channel quality of stations around the station; select at least one station as a candidate proxy node according to the channel quality;
[0007] The station initiates a proxy change request to the gateway node, wherein the proxy change request includes information of the candidate proxy node; the gateway node specifies a new proxy node from the candidate proxy nodes according to the network topology and the channel quality;
[0008] The gateway node sends an agent change confirmation request, and the message of the agent change confirmation request is sent to the site that initiated the agent change request through the agent nodes at each level;
[0009] When forwarding the message of the proxy change confirmation request, the proxy node at each level refreshes the routing table of the node and persistently stores the latest routing information;
[0010] After receiving the message of the proxy change confirmation request, the new proxy node refreshes the routing table of the new proxy node and persistently stores the latest routing information.
[0011] Furthermore, it also includes node judgment. After the power line communication network is started, it is judged whether the node is the proxy node based on the routing information of the current node. If the current node is the proxy node, it participates in message forwarding, otherwise it does not participate in message forwarding.
[0012] Furthermore, it also includes routing information reset: the power line communication network includes a gateway main control module, the gateway main control module sends a reset instruction to the gateway node, the gateway node sends the reset instruction to the proxy node and the site by broadcast or unicast, and after the proxy node and the site receive the reset instruction, they clear the persistently stored routing information and reset the corresponding device.
[0013] Furthermore, it also includes resetting routing information: when the proxy node and the site detect that the long press event occurs for a time exceeding a preset time, the persistently stored routing information is cleared and the corresponding device is reset.
[0014] Furthermore, it also includes resetting routing information: the proxy node and the site detect that the number of consecutive power on and off times exceeds the preset number of power on and off times and the interval between each power on and off time exceeds the preset power on and off interval time, clear the persistently stored routing information and reset the corresponding device.
[0015] Furthermore, when the gateway node exists but the routing is completely or partially invalid, after the current site initiates a broadcast message, the node that receives the broadcast message determines whether the node is a proxy node or a gateway node. If not, it only processes the broadcast message without forwarding it; if it is a proxy node or a gateway node, it processes and forwards the broadcast message after receiving it.
[0016] Furthermore, it also includes broadcast message judgment in the case of routing failure, wherein the message judgment includes, before the proxy node or gateway node forwards the message, judging the remaining route hops of the message, and when determining that forwarding is required, reducing the value of the remaining route hops by 1; when the remaining route hops are reduced to 0, the message can no longer be forwarded; nodes at each level perform the message judgment, and broadcast the message to all nodes based on the result of the remaining route hops determined by the message judgment.
[0017] Furthermore, when the gateway node is missing, after the site initiates a broadcast message, the node receiving the broadcast message will determine whether the node is a proxy node. If so, it will process and forward the broadcast message after receiving it. If not, it will only process the broadcast message without forwarding it after receiving it.
[0018] The present invention also provides a communication system in a power line communication network routing failure state, comprising one or a combination of a site module, a gateway node module and a proxy node module:
[0019] The site modules at each level receive beacon frames and evaluate the channel quality of the site modules around the site module; select at least one site module as a candidate proxy node module according to the channel quality;
[0020] The site module initiates an agent change request to the gateway node module, wherein the agent change request includes information of the candidate agent node module; the gateway node module specifies a new agent node module in the candidate agent node module according to the network topology and the channel quality;
[0021] The gateway node module sends an agent change confirmation request, and the message of the agent change confirmation request is sent to the site module that initiated the agent change request through the agent node modules step by step;
[0022] When forwarding the message of the proxy change confirmation request, the proxy node module of each level refreshes the routing table of the node and persistently stores the latest routing information;
[0023] After receiving the message of the proxy change confirmation request, the new proxy node module refreshes the routing table of the new proxy node module and persistently stores the latest routing information.
[0024] The present invention can solve the communication problem when the network routing table fails completely or partially, solves the problem of rapid exhaustion of network bandwidth caused by relying solely on flooding technology for communication, and can meet the high-frequency communication of large quantities of devices. It can be used in scenarios where CCO exists but routing fails or CCO does not exist. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of the PLC network;
[0026] Figure 2 It is a schematic diagram of the node communication method in the normal state of routing;
[0027] Figure 3 It is a schematic diagram of the message being transmitted by flooding when the routing fails;
[0028] Figure 4 This is another schematic diagram of messages being transmitted by flooding in the case of routing failure;
[0029] Figure 5 It is the first implementation of the gateway device;
[0030] Figure 6 It is the second implementation of the gateway device;
[0031] Figure 7 It is a schematic diagram of a smart device;
[0032] Figure 8 It is a first implementation method of a node communication method in a power line communication network routing failure state;
[0033] Fig. 9 It is a second implementation method of the node communication method in a power line communication network routing failure state;
[0034] Fig.10 It is a first implementation method of a communication method in a power line communication network routing failure state;
[0035] Fig.11 It is a second implementation method of the communication method in a power line communication network routing failure state;
[0036] Fig.12 It is a third implementation method of the communication method in a power line communication network routing failure state;
[0037] Fig.13 It is a fourth implementation method of the communication method in a power line communication network routing failure state;
[0038] Fig.14 It is a fifth implementation method of the communication method in a power line communication network routing failure state;
[0039] Fig.15 It is a schematic diagram of a communication method in a power line communication network routing failure state of the present invention. DETAILED DESCRIPTION
[0040] At present, the mainstream technology for whole-house intelligence is "low-voltage power line broadband carrier communication". PLC networks usually contain three types of nodes, namely CCO (also known as gateway node, central node or central coordinator; English is centralcoordinator), PCO (proxy node, proxy coordinator) and STA (also known as intelligent device, terminal or station, English is station). PLC networks are usually tree structures composed of CCO, PCO and STA.
[0041] like Figure 1As shown in the figure, the communication mode adopts the central dispatch mode. After the CCO (CCO1) is powered on, it will detect the entire network, determine the PCO (PCO2, PCO3 and PCO6) and STA (STA4, STA5, STA7, STA8 and STA9) in the current network, and then listen to the STA's message or actively inquire the STA, and perform transmission management and control through the CSMA / CA carrier detection multiple access mode. All STA sites initiate an association access request to the head node CCO, and can join the network only after the CCO confirms it. Once the network is established, PLC communication can be carried out.
[0042] After power-on, STA sites that can communicate directly with CCO will first join the network to form a level 1 site and evaluate the success rate of mutual communication. Sites that cannot communicate directly with CCO but can communicate with level 1 sites will join the network through level 1 site agents, and so on to form a multi-level network step by step. Currently, it can support up to 15 levels. During the networking process, CCO will establish a routing table and maintain it dynamically. During the STA network access process, CCO will carry routing information related to the associated entry site in the association confirmation message, which includes all directly connected STA sites and directly connected proxy sites of the new entry site and all sub-sites of the proxy site. Based on the construction of this routing information, the PLC network forms a tree structure and communicates.
[0043] At present, when PLC technology is applied in the field of whole-house intelligence, the number of nodes in a single network is relatively large, ranging from dozens to hundreds; its communication is frequent, and the panel will be frequently used to control the devices connected to the network, and various sensor devices will also send a large number of messages; the interference of the home power grid is uncertain, and unpredictable interference may occur at any time (for example, there are non-PLC devices running in the PLC loop, such as a large chandelier. When this large chandelier is turned on, there will be interference, and there will be no interference when it is turned off; or some speaker equipment is installed, which will interfere with the signal when playing songs), resulting in problems in routing maintenance; the probability of power outages or air switch tripping at home is also relatively high. Once the power is off, the routing table needs to be re-established after power is turned on again; the gateway device (CCO) may fail. Once the gateway device fails, the tree topology structure will not be able to be established.
[0044] From the above, we can see that when the routing table of the PLC network is established and maintained normally, messages are transmitted according to the tree topology structure, and information exchange is mainly carried out between upper and lower nodes. CCO and PCO can publish and receive messages, and CCO and PCO also have the ability to forward messages. STA can only publish and receive messages and does not participate in message forwarding. Figure 2As shown in the figure, when the STA5 node initiates a broadcast message, the message is transmitted along the tree topology structure. A small amount of messages are forwarded to STA4, STA7, STA8 and STA9 through PCO2, CCO1, PCO3, and PCO6, thus realizing message broadcasting of the entire network with high communication efficiency.
[0045] However, when the routing table of the PLC network has not been established or the CCO node fails, the routing fails, the tree topology cannot be established, and the original information exchange rules based on the routing table also fail. In the case of routing failure, the current PLC network communicates in the form of flooding. Flooding is a strategy for transmitting data packets in a computer network, which broadcasts or forwards data packets to all nodes so that all network nodes receive these data packets. Its purpose is to ensure that data packets can reach every node in the network, regardless of their addresses. Although flooding technology does not require network devices to maintain the network topology and related routing table entries, it requires nodes that receive information to forward data packets in a broadcast manner, and they need to be passed down by devices level by level. When CCO exists but routing fails or when CCO does not exist, when there is a lot of communication data, using flooding technology is inefficient and takes a long time to communicate, which is very unfavorable to network communication.
[0046] That is to say, when the topology does not exist and the routing table cannot be established, the current common method of communication is message flooding. When there are a large number of devices, once the communication frequency increases, the network bandwidth will be exhausted by a large number of message forwarding, the communication success rate will drop rapidly, and the delay will increase significantly, which cannot meet the communication requirements.
[0047] When CCO 1 exists but the routing fails, when STA5 initiates a broadcast message, the message flooding process is as follows: Figure 3 When CCO does not exist, when STA5 node initiates a broadcast message, the flooding process of the message is as follows: Figure 4 shown. Figure 3 and Figure 8 , Figure 4 and Fig. 9 The difference between using flooding technology and using this technology is that using this technology can reduce the intermediate paths of message transmission and reduce repeated communications. Using this technical solution, while ensuring the broadcast arrival rate, the number of nodes involved in message forwarding is reduced, and the number of messages in the network is also reduced.
[0048] At present, in actual use scenarios, due to unstable power supply and frequent signal interference, the incidence of routing failure is high. In addition, due to the large number of smart devices connected to the network, the pressure of communication is also very huge. Since flooding technology is only applicable to low-frequency communication and communication with a small number of devices, when there are a large number of devices, once the communication frequency increases, the network bandwidth will be exhausted by a large number of message forwarding, the success rate of communication will drop rapidly, and the delay will increase significantly, which cannot meet the communication requirements. Therefore, in this case, relying solely on flooding technology for communication is far from enough.
[0049] like Fig.15 As shown, the present invention provides a communication method for a power line communication network routing failure state, wherein the power line communication network includes one or a combination of a gateway node, a proxy node and a site, and the communication method includes:
[0050] S1, the stations at all levels receive beacon frames and evaluate the channel quality of the stations around the station (usually evaluate the signal strength and signal-to-noise ratio of the surrounding stations, and select the station with the best signal strength and signal-to-noise ratio); select at least one station as a candidate proxy node according to the channel quality (there is at least one candidate proxy node, and there can be multiple; which one is specifically selected as the actual proxy node is selected by the gateway node, and the one selected by the gateway node is the confirmed proxy node. Specifically, which stations can be selected as candidate proxy nodes according to the evaluated signal quality and signal-to-noise ratio);
[0051] S2, the site initiates a proxy change request to the gateway node (the request is initiated by a site, not the candidate proxy node; a site will report all the candidate proxy nodes selected by itself in the request, so that the gateway node can select one as a proxy node), the proxy change request includes the information of the candidate proxy node; the gateway node specifies a new proxy node from the candidate proxy nodes according to the network topology and the channel quality (the gateway node is selected based on the tree structure. For example, if a certain node will cause the tree structure to exceed 15 layers, then this node will definitely not be selected. For example, if there are two nodes, one is on the second layer and the other is on the third layer, the node on the second layer is usually selected as the proxy node, so that the communication level is less; the gateway node mainly determines how to select a node, and usually selects a tree structure with fewer levels);
[0052] S3, the gateway node sends an agent change confirmation request, and the message of the agent change confirmation request is sent to the site that initiated the agent change request through the proxy nodes at each level;
[0053] S4, when forwarding the message of the proxy change confirmation request, the proxy node at each level refreshes the routing table of the node and persistently stores the latest routing information;
[0054] S5, after receiving the message of the proxy change confirmation request, the new proxy node refreshes the routing table of the new proxy node and persistently stores the latest routing information.
[0055] Due to the existing scheme, the routing table is not persistently stored, but exists in the memory. It will be deleted after power failure. Therefore, it needs to be re-established after each startup, which is not conducive to use and maintenance. In the power grid, although communication can be delayed, it is actually applied to smart homes, which is not conducive to the connection and communication of smart devices. At present, in actual use scenarios, due to unstable power supply and signal interference, the incidence of routing failure is high. In addition, due to the large number of smart devices connected to the network, the pressure of communication is also very huge. However, flooding technology is only applicable to low-frequency communication and communication with a small number of devices. When the number of devices is large, once the communication frequency increases, the network bandwidth will be exhausted by a large number of message forwarding, the success rate of communication will decrease rapidly, and the delay will increase significantly, which cannot meet the communication requirements. Therefore, in this case, it is far from enough to communicate only by flooding technology. The persistent storage of the routing table in the technical solution of the present invention is also to avoid the loss and reconstruction of the routing table after power failure.
[0056] Specifically, during implementation, it also includes node judgment. After the power line communication network is started, it is judged whether the node is the proxy node based on the routing information of the current node. If the current node is the proxy node, it participates in message forwarding, otherwise it does not participate in message forwarding.
[0057] It also includes resetting routing information (the present invention provides three resetting methods, which can be implemented in one of them):
[0058] The first type: the power line communication network includes a gateway main control module, the gateway main control module sends a reset instruction to the gateway node, the gateway node sends the reset instruction to the proxy node and the site by broadcast or unicast, and after receiving the reset instruction, the proxy node and the site clear the persistently stored routing information and reset the corresponding device.
[0059] The second method: when the proxy node and the site detect that the long press event occurs for a time exceeding a preset time (for example, 60 seconds), the persistently stored routing information is cleared and the corresponding device is reset.
[0060] The third type: the proxy node and the site detect that the number of consecutive power on and off times exceeds the preset number of power on and off times and the interval between each power on and off time exceeds the preset interval between each power on and off time, clear the persistently stored routing information and reset the corresponding device.
[0061] When the gateway node exists but the routing is completely or partially invalid, after the current site initiates a broadcast message, the node that receives the broadcast message determines whether the node is a proxy node or a gateway node. If not, it will only process the message without forwarding it. If it is a proxy node or a gateway node, it will process the message and participate in forwarding after receiving it. When the gateway node is missing, after the site initiates a broadcast message, the node that receives the broadcast message will determine whether the node is a proxy node. If not, it will only process the message without forwarding it.
[0062] In specific implementation, the technical solution also includes broadcast message judgment in the case of routing failure, and the message judgment includes judging the remaining route hops of the message before the proxy node or gateway node forwards the message, and when it is determined that forwarding is required, reducing the value of the remaining route hops by 1; when the remaining route hops are reduced to 0, the message can no longer be forwarded; nodes at each level perform the message judgment, and broadcast the message to all nodes based on the result of the remaining route hops determined by the message judgment.
[0063] The message judgment rule here refers to the judgment of the broadcast message in the case of route failure, not the message of the proxy change confirmation request. When the site sends a message, it will determine whether the route of the current site is invalid. Only when it fails, it will send a broadcast message of the route failure status. This message is different from the normal message. Sites and proxy nodes at all levels can judge whether it is a message of route failure through the message. If so, it will be processed according to the method of this patent. If not, it will be forwarded step by step according to the traditional tree topology. The proxy change confirmation request is a message in the process of updating the routing table. This is a normal routing situation, not a message of route failure status.
[0064] The present invention also provides a communication system in a power line communication network routing failure state, comprising one or a combination of site modules, gateway node modules and proxy node modules, wherein the site modules at each level receive beacon frames and evaluate the channel quality of site modules around the site module; at least one site module is selected as an alternative proxy node module according to the channel quality; the site module initiates an agent change request to the gateway node module, and the agent change request includes information of the alternative proxy node module; the gateway node module specifies a new proxy node module in the alternative proxy node module according to the network topology and the channel quality; the gateway node module sends an agent change confirmation request, and the message of the agent change confirmation request is sent to the site module that initiates the agent change request through the proxy node modules at each level; when forwarding the message of the agent change confirmation request, the proxy node modules at each level refresh the routing table of the node and persistently store the latest routing information; after receiving the message of the agent change confirmation request, the new proxy node module refreshes the routing table of the new proxy node module and persistently stores the latest routing information.
[0065] The technical solution of the present invention, in the process of dynamic routing maintenance of PLC network, according to the confirmation change message of the proxy node, each site on the forwarding path refreshes the routing information, and at the same time, the routing information is persistently stored in the storage medium of the local machine. In the case of complete or partial failure of routing (partial failure means that the tree topology has been established, but some nodes are not added to the routing table, and the published message is a flood broadcast message), each site determines whether to participate in the forwarding of the flood message according to this routing information. Compared with all nodes participating in the broadcast, PCO node forwarding can ensure that the broadcast arrival rate of the flood message is not reduced, and in most cases, all STA nodes can be reached (unless the key isolated point PCO fails or is not started, which will affect the broadcast arrival rate). At the same time, compared with all nodes participating in the broadcast, PCO node forwarding can ensure that the flood message will not exhaust the network bandwidth. The fewer nodes participating in the forwarding, the fewer the total number of messages and the number of useless messages in the network. Compared with the case where the routing is not invalid, the communication performance is not much reduced, and high-frequency communication of large quantities of equipment can be guaranteed. It can be used in scenarios where CCO exists but routing fails or CCO does not exist. The present invention makes PLC communication more reliable, and can ensure high-quality communication when the network is disturbed and fluctuates or the gateway device is abnormal. It can better adapt to the increasingly widespread demand for whole-house smart applications and has a broader market prospect.
[0066] During the specific implementation process, sites at all levels receive beacon frames and evaluate the channel quality of surrounding sites; select a new proxy node (PCO) based on changes in channel quality; send a proxy change request message to the CCO to initiate a proxy change request; the CCO specifies a site as a proxy node among the candidate proxies applied for based on the network topology; the CCO sends a proxy change confirmation request, and the proxy change confirmation message is sent to the requesting site through the proxy level by level; the proxy node at each level refreshes the routing table of this node in the process of forwarding the proxy change confirmation message; while refreshing the routing table, the latest routing information is persistently stored in the local storage medium (persistent storage is to distinguish it from volatile storage. The current solution is to store it in memory and lose it after power failure; persistent storage is to store it in flash memory, which will not be lost after power failure and can be read out after power on again); the requesting site receives the proxy change confirmation message and refreshes the routing table of this node; this route refresh is completed.
[0067] In the case of power-on, when CCO exists but all or part of the routing fails, when the STA node initiates a broadcast message, the message transmission process is as follows: Figure 8 As shown. After the STA sends a broadcast message, the device that receives the message will determine whether the site is a PCO or CCO. If not, it will only process the message without forwarding it. If it is a PCO or CCO, it will process the message and participate in forwarding it. Before forwarding, the PCO or CCO needs to determine the remaining hops of the route. When it is determined that forwarding is required, the value of the remaining hops of the route needs to be reduced by 1. When the remaining hops of the route are reduced to 0, the message can no longer be forwarded. This rule is passed level by level to broadcast the message to all sites.
[0068] When the CCO is powered off or does not exist or is damaged, after the STA node initiates a broadcast message, the message transmission process is as follows: Fig. 9 As shown. After the STA sends a broadcast message, the device that receives the message will determine whether the site is a PCO. If not, it will only process the message without forwarding it. If it is a PCO, it will process the message and participate in forwarding it. Before forwarding, the PCO needs to determine the remaining hops of the route. When it is determined that forwarding is required, it needs to reduce the value of the remaining hops of the route by 1. When the remaining hops of the route are reduced to 0, the message can no longer be forwarded. This rule is passed level by level to broadcast the message to all sites.
[0069] If there is no electricity, there will be no power line communication, and there will be no communication; after power is restored, if CCO exists, the routing table will be re-established; the routing table is not persistently stored, and the only persistent storage is whether the node is a proxy node. If CCO does not exist, a new routing table will not be established.
[0070] The present invention provides a communication method, device and storage medium for power line communication network routing failure state. Fig.10 , Fig.11 , Fig.12 , Fig.13 , Fig.14 The following are detailed descriptions:
[0071] like Fig.10 The specific process of dynamic routing maintenance of the power carrier communication network in process S11 is described in detail as follows:
[0072] 1. Sites at all levels receive beacon frames and evaluate the channel quality of surrounding sites;
[0073] 2. Select a new proxy node (PCO) based on changes in channel quality;
[0074] 3. Send an agent change request message to CCO to initiate an agent change request;
[0075] 4. Based on the network topology, CCO designates a site as a proxy node from the candidate agents applied for;
[0076] 5. The CCO sends a proxy change confirmation request, and the proxy change confirmation message is sent to the requesting site through the proxy level by level;
[0077] 6. The proxy node at each level refreshes its routing table while forwarding the proxy change confirmation message;
[0078] 7. While refreshing the routing table, the latest routing information is persistently stored in the local storage medium;
[0079] 8. The requesting site receives the proxy change confirmation message and refreshes the routing table of this node;
[0080] 9. This route refresh is completed.
[0081] like Fig.11 The process S12 shown, the startup process and message forwarding logic of the power carrier communication network site routing failure situation are described in detail as follows:
[0082] 1. Power on and start the smart device;
[0083] 2. The power line communication module of the device is started, and after starting, the routing information stored in the storage medium of this module is read, and whether the node is a PCO is determined;
[0084] 3. If it is a PCO, it will participate in message forwarding;
[0085] 4. If it is not a PCO, it will not participate in message forwarding.
[0086] like Fig.12 The specific process of resetting and clearing routing information of the first power carrier communication intelligent device in process S13 is described in detail as follows:
[0087] 1. The gateway's main control module sends a reset command to the CCO;
[0088] 2. The CCO sends instructions to the PCO and STA via broadcast or unicast;
[0089] 3. After receiving the reset command, PCO and STA clear the persistently stored routing information and reset the device.
[0090] like Fig.13 The specific process of resetting and clearing the routing information of the second power carrier communication intelligent device in process S14 is described in detail as follows:
[0091] 1. Press and hold the button of the power carrier communication intelligent device (PCO and STA) for a certain period of time (usually 15 seconds);
[0092] 2. PCO and STA detect a long press event;
[0093] 3. PCO and STA clear the persistently stored routing information and reset the device.
[0094] like Fig.14 The specific process of resetting and clearing routing information of the third power carrier communication intelligent device in process S15 is described in detail as follows:
[0095] 1. Power on and off the power supply of the power carrier communication intelligent equipment (PCO and STA) for several times (usually 5 times), with an interval of less than 15 seconds between each power on and off;
[0096] 2. PCO and STA detect that continuous power on and off events occur and meet the time interval and number requirements;
[0097] 3. PCO and STA clear the persistently stored routing information and reset the device.
[0098] Gateway device (for specific implementation, such as Figure 5 and Figure 6 As shown, it can be a multi-channel power line carrier communication gateway, including three power line communication modules, namely power line communication module 1, power line communication module 2 and power line communication module 3, or it can be a single-channel power line carrier communication gateway, including a power line communication module 4). The program module includes a main control module, several power line communication modules (the attached figure takes one or three modules as an example, and can actually support several modules), wherein the main control module is connected to the remaining modules. The function of the main control module can also be integrated into the power line communication module, and the two modules are combined into one.
[0099] The main control module is the core module that integrates control, management, computing and communication functions. In the system, the power line communication module is used to perform protocol conversion and communicate with sub-devices. It has the configuration and management functions of network information and application addresses, the control program logic configuration and control functions, and the system equipment status monitoring function; it has the ability to synchronously transmit system instructions to the cloud through the network.
[0100] The power line communication module, also known as CCO, is the main node in the power line communication network, responsible for completing network control, network maintenance and management and other functions. Figure 7 As shown, it includes a power line communication module 72 , a peripheral module 71 and a button 73 .
[0101] The power line communication module, also known as STA (or PCO), is a slave node in the communication network. It is responsible for the management and control of sub-devices, and connects peripherals and buttons to complete various control functions based on power line communication. Peripheral modules can have various types of peripheral modules depending on the type of device, and they assume the main functions of the device. Buttons are used to reset the device and reset the routing information.
[0102] After the smart device is successfully connected to the network and powered on, the smart device is powered on and started; the power line communication module of the smart device is started, and after starting, the routing information stored in the storage medium of this module is read, and whether this node is a PCO is determined; if it is a PCO, it participates in message forwarding; if it is not a PCO, it does not participate in message forwarding.
[0103] When the routing table needs to be reset or cleared, the main control module of the gateway sends a reset command to the CCO; the CCO sends the command to the PCO and STA by broadcast or unicast; after receiving the reset command, the PCO and STA clear the persistently stored routing information and reset the device; or long press the button of the power carrier communication intelligent device (PCO and STA) for a certain period of time (generally 15 seconds); the PCO and STA detect the long press event; the PCO and STA clear the persistently stored routing information and reset the device; or the power carrier communication intelligent device (PCO and STA) is powered on and off several times (generally 5 times), with each power on and off interval within 15 seconds; the PCO and STA detect the occurrence of continuous power on and off events and meet the time interval and number requirements; the PCO and STA clear the persistently stored routing information and reset the device.
[0104] The main technical problem solved by the present invention is to propose a communication method for the power line communication network routing failure state, which can solve the communication problem when the network routing table fails completely or partially, solve the problem of rapid exhaustion of network bandwidth caused by relying solely on flooding technology for communication, and can meet the high-frequency communication of large quantities of equipment. It can be used in scenarios where CCO exists but the routing fails or CCO does not exist. The present invention also provides an implementation method of the above communication method and related devices and storage media.
Claims
1. A communication method for a power line communication network routing failure state, wherein the power line communication network comprises one or a combination of a gateway node, a proxy node and a station, characterized in that: include: The stations at each level receive beacon frames and evaluate channel qualities of stations around the station; Selecting at least one site as a candidate proxy node according to the channel quality; The site initiates an agent change request to the gateway node, where the agent change request includes information of the candidate agent node; The gateway node designates a new proxy node from among the candidate proxy nodes according to the network topology and the channel quality; The gateway node sends an agent change confirmation request, and the message of the agent change confirmation request is sent to the site that initiated the agent change request through the agent nodes at each level; When forwarding the message of the proxy change confirmation request, the proxy node at each level refreshes the routing table of the node and persistently stores the latest routing information; After receiving the message of the proxy change confirmation request, the new proxy node refreshes the routing table of the new proxy node and persistently stores the latest routing information.
2. The communication method for a power line communication network routing failure state as claimed in claim 1, characterized in that: It also includes node judgment. After the power line communication network is started, it is judged whether the node is the proxy node according to the routing information of the current node. If the current node is the proxy node, it participates in message forwarding, otherwise it does not participate in message forwarding.
3. The communication method for power line communication network routing failure state according to claim 1, characterized in that: It also includes routing information reset: the power line communication network includes a gateway main control module, the gateway main control module sends a reset instruction to the gateway node, the gateway node sends the reset instruction to the proxy node and the site by broadcast or unicast, and after the proxy node and the site receive the reset instruction, they clear the persistently stored routing information and reset the corresponding device.
4. The communication method for a power line communication network routing failure state as claimed in claim 1, characterized in that: It also includes resetting routing information: when the proxy node and the site detect that the long press event occurs for a time exceeding a preset time, the persistently stored routing information is cleared and the corresponding device is reset.
5. The communication method for power line communication network routing failure state as claimed in claim 1, characterized in that: It also includes resetting routing information: the proxy node and the site detect that the number of consecutive power on and off times exceeds the preset number of power on and off times and the interval between each power on and off time exceeds the preset interval between each power on and off time, clear the persistently stored routing information and reset the corresponding device.
6. The communication method for power line communication network routing failure state as claimed in claim 1, characterized in that: When the gateway node exists but the routing is completely or partially invalid, after the current site initiates a broadcast message, the node receiving the broadcast message determines whether the node is a proxy node or a gateway node. If not, it only processes the broadcast message without forwarding it. If it is a proxy node or a gateway node, it processes and forwards the broadcast message after receiving it.
7. The communication method for a power line communication network routing failure state as claimed in claim 1, characterized in that: It also includes broadcast message judgment in the case of routing failure. Before forwarding the message, the proxy node or gateway node judges the remaining route hops of the message, and when it is determined that forwarding is required, the value of the remaining route hops is reduced by 1; when the remaining route hops are reduced to 0, the message can no longer be forwarded; nodes at each level perform the message judgment, and broadcast the message to all nodes based on the result of the remaining route hops determined by the message judgment.
8. The communication method for a power line communication network routing failure state as claimed in claim 1, characterized in that: When the gateway node is missing, after the site initiates a broadcast message, the node receiving the broadcast message will determine whether the node is a proxy node. If so, it will process and forward the broadcast message after receiving it. If not, it will only process the broadcast message without forwarding it after receiving it.
9. A communication system in a power line communication network routing failure state, comprising one or a combination of a site module, a gateway node module and a proxy node module, characterized in that: The site modules at each level receive beacon frames and evaluate the channel quality of the site modules around the site module; select at least one site module as a candidate proxy node module according to the channel quality; The site module initiates an agent change request to the gateway node module, wherein the agent change request includes information of the candidate agent node module; The gateway node module specifies a new proxy node module from the candidate proxy node modules according to the network topology and the channel quality; The gateway node module sends an agent change confirmation request, and the message of the agent change confirmation request is sent to the site module that initiated the agent change request through the agent node modules step by step; When forwarding the message of the proxy change confirmation request, the proxy node module of each level refreshes the routing table of the node and persistently stores the latest routing information; After receiving the message of the proxy change confirmation request, the new proxy node module refreshes the routing table of the new proxy node module and persistently stores the latest routing information.