Method for determining and changing proxy sites, system, site and chip thereof

By controlling the timing of STA selecting the optimal candidate PCO in the dual-mode communication network for discrete, delaying the occurrence time of proxy change, and selecting a proxy site according to the communication quality parameters, the channel congestion problem caused by proxy change in the dual-mode communication network is solved, and efficient and orderly proxy change and normal network communication are achieved.

CN119520397BActive Publication Date: 2025-05-13BEIJING SMARTCHIP SEMICON TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510067674.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-05-13
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

When the topology of the dual-mode communication network changes, STA centrally initiates the proxy change process, resulting in channel congestion, low communication success rate, and continuous failure and retry of proxy changes, affecting network communication and data acquisition services.

Method used

By controlling the timing of the STA to select the optimal candidate PCO for discrete purposes, the timer is started to delay the occurrence of the proxy change, ensuring that the optimal candidate proxy site is selected according to the communication quality parameters after the routing cycle is over, and confirming that the proxy site change is successful after the timer timed out.

Benefits of technology

Efficient and orderly proxy changes are achieved, busy channels are avoided, and the normal operation of network communications and the continuity of data acquisition services are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520397B_ABST
    Figure CN119520397B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of communication technology, and discloses a method for determining and changing a proxy site, a system thereof, a site, and a chip. The determination method executed by the site includes: starting a timer after the end of a routing cycle; selecting the best candidate proxy site from multiple neighboring sites according to parameters characterizing communication quality when starting the total preset duration, wherein the total preset duration is related to a first duration, a third duration dependent on a second duration and the level of the site, and a random number, and the sum of the first and third durations and the random number is greater than 1 / N of the routing cycle, and N is the minimum number of discovery list messages sent within the routing cycle; and selecting a better one from the best candidate proxy site and the current proxy site as the proxy site. The present invention discretizes the moment when a STA in the network starts a proxy change, which can prevent a channel from being busy due to a large number of STAs starting the proxy change process at the same time, thereby achieving efficient and orderly proxy changes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method for determining and changing a proxy site, a system thereof, a site and a chip. Background Art

[0002] For the power consumption information collection system, the dual-mode communication network generally forms a tree network with CCO (Central Coordinator) as the center and PCO (Proxy Coordinator) as the relay agent, connecting all STA (Station) multi-level associations. Among them, PCO or STA can be a single-phase meter dual-mode communication unit, a three-phase meter dual-mode communication unit, a type I collector dual-mode communication unit, and a dual-mode type II collector.

[0003] After the current dual-mode network is established, the topology of the entire network will not remain unchanged. Due to changes in the environment (temperature, humidity, or human intervention, etc.), the communication performance of some nodes in the network may deteriorate, so the topology of the network needs to be changed accordingly. If the STA finds that the communication success rate between the STA and the PCO in the last routing cycle is not high or the PCO beacon frame cannot be received for a period of time, the PCO needs to be changed.

[0004] The current PCO change scheme for dual-mode communication networks is as follows: After networking is completed, the network is mainly dynamically maintained through discovery list messages and beacon frames. STAs at all levels can maintain information such as communication success rate, SNR, RSSI, level, and role with neighbor STAs through the received discovery list messages and beacon frames of neighbor STAs. STA evaluates the communication quality with all neighbor STAs after each routing cycle: After STA finds that there is a candidate PCO that is better than the current PCO, it initiates the proxy change process. After receiving the proxy change request, CCO further evaluates whether the network topology level exceeds the limit (for example, the protocol requires a maximum of 15 levels, from CCO to the lower level). If the new PCO is fine, it replies with a change confirmation frame. After receiving the confirmation frame, STA completes the proxy change process, thereby achieving the purpose of maintaining the routing of the entire network.

[0005] However, the shortcomings of the current proxy change solution for dual-mode communication networks are as follows. The STAs in the network will evaluate the current PCO and neighboring STAs after the routing cycle ends, and initiate a proxy change process when necessary. When the communication network is large, multiple STAs may initiate a proxy change process in a short period of time, resulting in congestion of the entire network channel, and a very low communication success rate between STAs, which in turn leads to continuous failures and retries of proxy changes. The consequences of this phenomenon are: first, the entire network is filled with retransmitted frames of proxy change requests, resulting in poor communication of the entire network, which violates the original intention of network maintenance; secondly, it will also affect normal data collection services; finally, due to the deterioration of communication quality, a vicious circle will be formed, resulting in more and more STAs initiating proxy change processes, and the network will become worse and worse. Summary of the invention

[0006] The purpose of the present invention is to provide a method for determining and changing a proxy site, a system, a site and a chip thereof, which discretizes the moment when the STA in the network starts the proxy change by controlling the timing when the STA selects the optimal candidate PCO, thereby preventing the channel from being busy due to a large number of STAs starting the proxy change process at the same time, thereby achieving efficient and orderly proxy changes without affecting the normal business operation of the network.

[0007] In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a method for determining a proxy site, which is executed by a site, and the determination method includes: starting a timer after the routing cycle ends; when the timer is started for a total preset time, selecting an optimal candidate proxy site from multiple neighboring sites according to parameters characterizing communication quality, wherein the total preset time is associated with a first time, a third time that depends on a second time and the level of the site, and a random number, and the sum of the first time, the third time and the random number is greater than 1 / N of the routing cycle, wherein N is the minimum number of discovery list messages sent within the routing cycle; and selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

[0008] Through the above technical solution, the present invention creatively discretizes the moment when the STA in the network starts the proxy change by controlling the timing of the STA selecting the optimal candidate PCO after the routing cycle ends, which can prevent the channel from being busy due to a large number of STAs starting the proxy change process at the same time, thereby achieving efficient and orderly proxy changes without affecting the normal business operation of the network.

[0009] A second aspect of the present invention provides a method for changing a proxy site, which is executed by a site, and the method for changing comprises: determining a proxy site according to the method for determining a proxy site; sending a first change request to a central coordinator via the proxy site when the proxy site is not the current proxy site, wherein the first change request includes information of the proxy site; starting a timer; when the timer starts a preset timeout period, determining whether a first proxy change confirmation frame fed back by the central coordinator is received; and when the first proxy change confirmation frame is received, confirming that the proxy site change is successful.

[0010] Through the above technical solution, the present invention creatively discretizes the moment when the STA in the network starts the proxy change and determines the proxy site, and when the proxy site is not the current proxy site, sends a first change request to the central coordinator via the proxy site, wherein the first change request includes information of the proxy site; starts a timer; when the timer starts a preset timeout period, determines whether a first proxy change confirmation frame fed back by the central coordinator is received; and when the first proxy change confirmation frame is received, confirms that the proxy site is changed successfully, thereby preventing a large number of STAs from starting the proxy change process at the same time and causing the channel to be busy, achieving efficient and orderly proxy changes, and not affecting the normal business operation of the network.

[0011] A third aspect of the present invention provides a system for determining a proxy site, which is arranged on the site side, and the determination system includes: a starting device, which is used to start a timer after the routing cycle ends; a candidate selection device, which is used to select an optimal candidate proxy site from multiple neighboring sites according to parameters characterizing communication quality when the timer is started for a total preset time, wherein the total preset time is associated with a first time, a third time that depends on a second time and the level of the site, and a random number, and the sum of the first time, the third time and the random number is greater than 1 / N of the routing cycle, wherein N is the minimum number of discovery list messages sent within the routing cycle; and a proxy selection device, which is used to select a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

[0012] The specific details and benefits of the system for determining a proxy site provided by the embodiment of the present invention can be found in the description of the method for determining a proxy site, which will not be repeated here.

[0013] A fourth aspect of the present invention provides a proxy site change system, which is arranged on the site side, and the change system includes: the proxy site determination system, which is used to determine the proxy site; a sending device, which is used to send a first change request to a central coordinator via the proxy site when the proxy site is not the current proxy site, wherein the first change request includes information of the proxy site; a starting device, which is used to start a timer; a confirmation frame judgment device, which is used to judge whether a proxy change confirmation frame fed back by the central coordinator is received when the timer starts a preset timeout period; and a confirmation device, which is used to confirm that the proxy site change is successful when the proxy change confirmation frame is received.

[0014] The specific details and benefits of the proxy site change system provided by the embodiment of the present invention can be found in the description of the proxy site change method described above, which will not be repeated here.

[0015] A fifth aspect of the present invention provides a site, comprising: an execution device for executing the method for determining a proxy site or the method for changing a proxy site.

[0016] A sixth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for determining a proxy site or the method for changing a proxy site is implemented.

[0017] A seventh aspect of the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for determining a proxy site or the method for changing a proxy site.

[0018] An eighth aspect of the present invention provides a chip, comprising: a processor; a memory for storing a computer program executed by the processor; the processor is used to read the computer program from the memory and execute the computer program to implement the method for determining a proxy site or the method for changing a proxy site.

[0019] Other features and advantages of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0021] Figure 1 is a flow chart of a method for determining a proxy site provided by an embodiment of the present invention;

[0022] Figure 2 is a specific comparison flow chart between candidate agents provided by an embodiment of the present invention; and

[0023] Figure 3 This is a flowchart of the entire proxy change provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0025] Figure 1 FIG. 1 is a flow chart of a method for determining a proxy site provided by an embodiment of the present invention. The determination method is executed by a site, such as Figure 1 As shown, the determination method includes: step S101, starting a timer after the routing cycle ends; step S102, when the timer is started for a total preset time, selecting an optimal candidate proxy site from multiple neighboring sites according to parameters characterizing communication quality, wherein the total preset time is associated with a first time, a third time that depends on a second time and the level of the site, and a random number, and the sum of the first time, the third time and the random number is greater than 1 / N of the routing cycle, wherein N is the minimum number of discovery list messages sent within the routing cycle; and step S103, selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

[0026] The following explains and illustrates each of the above steps.

[0027] Step S101, after the routing cycle ends, start the timer.

[0028] Since the parameters that characterize the communication quality between STAs (such as communication success rate) are mainly maintained through the interaction of discovery lists, the update of carrier communication success rate has a lag, and it is necessary to exchange discovery lists with neighboring STAs in the current routing cycle to update the carrier communication success rate of the previous routing cycle. Therefore, it is necessary to try to ensure that the discovery list has been exchanged with neighboring STAs in the current routing cycle before starting the proxy change process.

[0029] Therefore, in this embodiment, the proxy change process is not started immediately after the routing cycle ends, but a timer is started, and the time of the proxy change is controlled through step S102 to achieve the goal of discretizing the time of all proxy changes started in the network.

[0030] Step S102 : When the timer is started for a total preset time, an optimal candidate proxy site is selected from a plurality of neighboring sites according to a parameter representing communication quality.

[0031] In which, the total preset duration is associated with a first duration, a third duration depending on the second duration and the level of the site, and a random number, and the sum of the first duration, the third duration and the random number is greater than 1 / N of the routing cycle, where N is the minimum number of discovery list messages sent within the routing cycle.

[0032] In this embodiment, a method for discretizing the time when the STA initiates the proxy change request is proposed.

[0033] First, according to the dual-mode communication protocol, if all sites in the network send at least 10 discovery list messages within the routing cycle, this algorithm chooses not to start the proxy change process immediately after the routing cycle ends, and 1 / 6 of the routing cycle can be used as the fastest start time (t1) for the proxy change.

[0034] Then, delay according to the STA level. This algorithm considers that, according to the dual-mode communication protocol, if the network supports a maximum of 15 levels, assuming that the current network level of the STA is layer, a certain proportion of the routing cycle (t3) is discretely calculated according to the STA level.

[0035] Finally, random delay discrete: STA can also effectively avoid conflicts caused by multiple STAs sending data at the same time by randomly delaying the time when the proxy change occurs. For example, a random number (t4) of 0-1 / 6 of the routing cycle can be taken. Of course, the maximum value of the random number in this embodiment is not limited to 1 / 6 of the routing cycle.

[0036] Therefore, the total delay time (ie, the total preset time t) can be expressed as t=t1+t3+t4. t is greater than the routing period×1 / N, where N=10.

[0037] Specifically, in one embodiment, the total preset duration satisfies the following formula:

[0038] t = t1 + t3 + t4, where t3 = (layer / M layer )×t2,

[0039] Wherein, t is the total preset duration; t1 is the first duration; t2 is the second duration, layer is the layer of the site, t2 is the third duration, and M layer is the maximum level of the network topology; t4 is the random number.

[0040] In this embodiment, t1 can be the routing cycle × 1 / 6. During network maintenance, the STA at a lower level can first make proxy changes to better maintain the stability of the entire network link. According to the dual-mode communication protocol, if the network supports a maximum of 15 levels, assuming that the current network level of the STA is layer, then the discrete delay t3 according to the STA level is (layer / 15) × routing cycle × 1 / 6. Of course, the previous formula is not limited to 1 / 6 of the routing cycle. STA can also effectively avoid conflicts caused by multiple STAs sending data at the same time by randomly delaying the time when the proxy change occurs. For example, t4 can take a random number of 0-1 / 6 of the routing cycle. Of course, the maximum value of the random number in this embodiment is not limited to 1 / 6 of the routing cycle.

[0041] In addition, in order to ensure that there is enough time to execute the subsequent change process within the routing cycle, the maximum value of the total preset time length may be limited, for example, any value within 1 / 2 - 2 / 3 of the routing cycle.

[0042] At present, during the operation of the network after networking is completed, the STAs in the network will continuously maintain their own routing tables. After each routing cycle, the STA will evaluate the communication status with the PCO and neighboring STAs, and select the current optimal candidate PCO.

[0043] At present, when selecting candidate agents, STA will give priority to SNR, RSSI, communication success rate, level, and role (whether the station is a STA role or a PCO role) in turn. On the one hand, due to the differences between chips, there are certain errors in SNR and RSSI; on the other hand, due to the relatively low priority of the role, more PCOs may appear in the network. More PCOs also mean an increase in network maintenance frames, resulting in compression of network channel resources. Therefore, in this embodiment, the inventor believes that during network maintenance, the communication success rate can more intuitively reflect the communication status between nodes, and has a higher reference value than SNR and RSSI. On the premise that the communication success rate meets the requirements, the role is given priority, and the level is the last.

[0044] With respect to step S102, selecting the best candidate proxy site from multiple neighboring sites according to the parameter characterizing the communication quality includes: selecting the best candidate proxy site from multiple neighboring sites according to the communication success rate, the role of the neighboring site, and the priority order of the hierarchy.

[0045] Specifically, the selecting the best candidate proxy site from multiple neighbor sites based on the communication success rate, the role of the neighbor site, and the priority order of the hierarchy includes: selecting a candidate proxy site from any two neighbor sites among the multiple neighbor sites based on the communication success rate, the role of the neighbor site, and the priority order of the hierarchy; selecting a new candidate proxy site from the candidate proxy site and other neighbor sites based on the communication success rate, the role of the neighbor site, and the priority order of the hierarchy, wherein the other neighbor sites are sites among the multiple neighbor sites except for the any two neighbor sites; until the multiple neighbor sites are traversed to obtain the latest candidate proxy site; and selecting the latest candidate proxy site as the best candidate proxy site.

[0046] In one embodiment, selecting a candidate proxy site from a first neighbor site and a second neighbor site includes: determining whether a first communication success rate between the first neighbor site and the site and a second communication success rate between the second neighbor site and the site are both greater than a first threshold; when the first communication success rate and the second communication success rate are both greater than the first threshold, determining whether the roles of the first neighbor site and the second neighbor site are the same; when the roles of the first neighbor site and the second neighbor site are the same, determining whether the levels of the first neighbor site and the second neighbor site are the same: when the levels of the first neighbor site and the second neighbor site are the same, selecting a neighbor site with a higher communication success rate as the candidate proxy site; or when the levels of the first neighbor site and the second neighbor site are different, selecting a neighbor site with a lower level as the candidate proxy site.

[0047] Based on the previous embodiment, selecting a candidate proxy site from the first neighbor site and the second neighbor site also includes: when the first communication success rate or the second communication success rate is less than or equal to the first threshold, selecting a neighbor site with a higher communication success rate as the candidate proxy site.

[0048] Based on any one of the first two embodiments above, selecting a candidate proxy site from the first neighbor site and the second neighbor site also includes: when the roles of the first neighbor site and the second neighbor site are different, selecting a neighbor site with a role of a proxy site as the candidate proxy site.

[0049] Specifically, the process of selecting a candidate proxy site from any two neighboring sites (i.e., the specific comparison process between candidate proxies) is as follows: Figure 2 shown.

[0050] 1. Determine whether the communication success rates of the two neighboring sites are greater than the threshold. If so, jump to step 2; otherwise, the neighboring site with a higher success rate is considered to be more suitable as a candidate proxy site.

[0051] 2. Determine whether the roles of the two neighboring sites are the same. If so, jump to step 3; otherwise, the site with the role of PCO is selected as the candidate proxy site.

[0052] 3. Determine whether the levels of the two neighboring sites are the same. If so, the neighboring site with a higher success rate is considered more suitable to be a proxy; otherwise, the site with a lower level is selected as a candidate proxy site.

[0053] Specifically, according to the communication success rate, the role of the neighboring site and the priority order of the hierarchy, selecting the best candidate proxy site from multiple neighboring sites includes: first, according to the priority order, based on Figure 2 The process shown in the figure selects STA 1 as a candidate proxy site from any two neighboring sites (for example, STA 1 and STA 2) among multiple neighboring sites; then, based on the priority order, Figure 2 The process shown selects STA 3 as a new candidate proxy site from the candidate proxy site STA 1 and other neighboring sites (i.e., the remaining STAs among the neighboring sites of STA except STA 1 and STA 2, such as STA 3); repeats the above process of screening candidate proxies until the multiple neighboring sites are traversed to obtain the latest candidate proxy site; finally, the latest candidate proxy site is selected as the optimal candidate proxy site.

[0054] Of course, for step S102, any existing method may be used to select the best candidate proxy site from multiple neighboring sites according to the parameters representing the communication quality.

[0055] Step S103: selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

[0056] In one embodiment, for step S103, the selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site includes: judging whether a third communication success rate between the optimal candidate proxy site and the site and a fourth communication success rate between the current proxy site and the site are both less than a second threshold; if the third communication success rate and the fourth communication success rate are both less than the second threshold, judging that the difference between the third communication success rate and the fourth communication success rate is greater than a preset difference; and if the difference is greater than the preset difference, selecting the optimal candidate proxy site as the proxy site of the site.

[0057] On the basis of the previous embodiment, the selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site also includes: when the third communication success rate and the fourth communication success rate are both greater than the second threshold, comparing the levels of the optimal candidate proxy site and the current proxy site: when the level of the optimal candidate proxy site is less than the level of the current proxy site, selecting the optimal candidate proxy site as the proxy site of the site; or when the level of the optimal candidate proxy site is greater than or equal to the level of the current proxy site, maintaining the current proxy site as the proxy site of the site.

[0058] On the basis of any one of the first two embodiments mentioned above, the selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site also includes: when the difference is less than or equal to the preset difference, maintaining the current proxy site as the proxy site; when the third communication success rate is greater than the second threshold and the fourth communication success rate is less than or equal to the second threshold, selecting the optimal candidate proxy site as the proxy site of the site; or when the third communication success rate is less than or equal to the second threshold and the fourth communication success rate is greater than or equal to the second threshold, maintaining the current proxy site as the proxy site of the site.

[0059] The first threshold value may be equal to or not equal to the second threshold value and may be reasonably set according to specific circumstances.

[0060] After selecting the current best candidate agent, STA needs to further determine whether it needs to initiate an agent change request by comparing the best candidate agent (represented by PCO 1) with the current agent site (represented by PCO 0). If the comparison finds that PCO 1 is more suitable than PCO 0 (which can be determined according to the existing method), it sends an agent change request frame to CCO via PCO 1. Otherwise, the process is terminated and waits for the next routing cycle to start again.

[0061] In this embodiment, the comparison method of PCO 0 and PCO 1 is as follows.

[0062] 1. Determine whether the communication success rates of PCO 0 and PCO 1 are both less than the threshold value. If so, jump to step 2; if the communication success rate of PCO 0 is less than or equal to the threshold value and the communication success rate of PCO 1 is greater than the threshold value, select PCO 1; if the communication success rate of PCO 0 is greater than or equal to the threshold value and the communication success rate of PCO 1 is less than or equal to the threshold value, or the communication success rate of PCO0 is less than or equal to the threshold value and the communication success rate of PCO 1 is equal to the threshold value, select PCO 0; if both are greater than the threshold value, jump to step 3; otherwise, jump to step 2;

[0063] 2. Determine whether the communication success rate of PCO 1 is greater than the communication success rate of PCO 0 by a certain value ∆S (this value can be set by the user in actual debugging to avoid frequent proxy changes, for example, ∆S=5), then select PCO 1, otherwise select PCO 0;

[0064] 3. Determine whether the level of PCO 1 is smaller than that of PCO 0. If so, select PCO 1; otherwise, select PCO 0.

[0065] From the perspective of the entire network, first, since the real-time communication effect is easily disturbed by external forces, the communication success rate between STA and its PCO will often fluctuate slightly. When the communication success rate is greater than the threshold, their communication is already relatively good, and there is no need to switch PCO in pursuit of a higher success rate. In order to avoid unreasonable frequent proxy changes of STAs in the network, when the communication success rate between STA and its PCO reaches a certain threshold, the proxy will not be changed. Second, for STA to select a more suitable candidate PCO and change it quickly and successfully, two conditions are required: First, in order to prevent a large number of STAs from starting the proxy change process at the same time, sending proxy change request frames, causing the channel to be busy and affecting normal business, the time for STA to initiate proxy changes should be as discrete as possible; second, select an optimal site from the neighboring site as a candidate proxy.

[0066] In various embodiments, the communication success rate between two stations (e.g., a neighboring STA or any one of the candidate PCOs and the STA) can be represented in the following two ways. (1) The direct communication success rate between the two stations. (2) The effective communication success rate between the two stations S=S1×S2, where S1 is the minimum communication success rate on the path from the station at the larger level of the two stations and through the station at the smaller level to the CCO (i.e., the communication success rate of the weakest connection), and S2 is the direct communication success rate between the two stations. In other words, from the perspective of the network system, there is also a minimum communication success rate S1 in the routing, and S=S1×S2 can more effectively characterize the communication success rate between the two nodes on the path, so as to screen more suitable candidate agents based on the effective communication success rate. When the success rate S is greater than a threshold value TR (e.g., 0.25), the success rate is considered to be relatively good.

[0067] In summary, the present invention creatively discretizes the moment when STAs in the network start proxy changes by controlling the timing when STAs select the optimal candidate PCO after the routing cycle ends, thereby preventing the channel from being busy due to a large number of STAs starting the proxy change process at the same time, thereby achieving efficient and orderly proxy changes without affecting the normal business operation of the network.

[0068] An embodiment of the present invention provides a method for changing a proxy site, which is executed by a site, and the method for changing includes: determining a proxy site according to the method for determining a proxy site; sending a first change request to a central coordinator via the proxy site when the proxy site is not the current proxy site, wherein the first change request includes information of the proxy site; starting a timer; when the timer starts a preset timeout period, determining whether a proxy change confirmation frame fed back by the central coordinator is received; and when the proxy change confirmation frame is received, confirming that the proxy site is successfully changed.

[0069] After each routing cycle, STA evaluates the communication quality with all neighboring STAs: After STA finds that there is a candidate PCO that is better than the current PCO, it initiates the proxy change process. At the same time, STA starts the timer. After receiving the proxy change request, CCO further evaluates whether the network topology level exceeds the limit (for example, the protocol requires a maximum of 15 levels). If the new PCO is OK, it performs the change operation and replies with a change confirmation frame. When the STA timer exceeds the preset timeout period, it determines whether it has received the proxy change confirmation frame fed back by CCO. If so, it confirms that the proxy change process is completed, thereby achieving the purpose of maintaining the routing of the entire network.

[0070] In one embodiment, the change method further includes: if the first proxy change confirmation frame is not received, determining whether the number of times the first change request is sent is greater than or equal to a preset number; if the number of times the first change request is sent is greater than or equal to the preset number, determining whether there is a new optimal candidate proxy site among the remaining sites of the plurality of neighboring sites except the proxy site, wherein the communication success rate of the new optimal candidate proxy site is greater than the communication success rate of the current proxy site, or the communication success rate of the new optimal candidate proxy site is equal to the communication success rate of the current proxy site and the level of the new optimal candidate proxy site is lower than the level of the current proxy site; sending a second change request to the central coordinator, wherein the second change request includes information of the new optimal candidate proxy site; starting the timer; if the timer starts the preset timeout period, determining whether a second proxy change confirmation frame fed back by the central coordinator is received; and if the second proxy change confirmation frame is received, confirming that the new optimal candidate proxy site is changed to a proxy site.

[0071] The entire agent change flow chart is as follows Figure 3 shown.

[0072] 1. After the routing cycle ends, the STA randomly delays for a time t=t1+t3+t4.

[0073] After the routing cycle ends, in order to prevent a large number of STAs from starting the proxy change process at the same time and sending proxy change request frames at the same time, causing the channel to be busy and affecting normal services, the STA starts a timer with a timeout period of t=t1+t3+t4, waits for the timer to time out, and jumps to step 2.

[0074] 2. Determine whether there is a candidate agent that is more suitable than the current site. If so, jump to step 3; otherwise, it is considered that no change is required and the current process ends.

[0075] Can a more suitable candidate proxy site be found according to the above method? If so, jump to step 3; otherwise, it is considered that no change is needed and the current process ends;

[0076] 3. Send an agent change request to CCO via the new candidate agent site, start timer T, set the timeout period, and wait for the agent change confirmation frame replied by CCO.

[0077] For example, set the timeout period to 5s.

[0078] 4. Determine whether the proxy change confirmation frame is received within the timeout period. If so, the proxy change is successful and the current process ends; otherwise, jump to step 5.

[0079] 5. Determine whether the number of retransmissions is greater than or equal to 3. If so, jump to step 6; otherwise, jump to step 3.

[0080] Of course, the retransmission number threshold of the present invention is not limited to 3 times, and can be reasonably set according to actual conditions.

[0081] 6. Check whether there are other candidate proxies that are more suitable than the current proxy site. If so, clear the number of retransmissions and jump to step 3; otherwise, end the current process.

[0082] That is, in addition to the proxy site (considered to be the optimal candidate proxy site), whether there are candidate proxies more suitable than the current proxy site among the multiple neighboring sites.

[0083] During the routing maintenance process after the network is established, the STAs in the network will comprehensively consider when to initiate a proxy change (discrete the time of initiating the change to reduce the probability of collision) and whether to initiate a proxy change (avoid initiating unnecessary changes) based on the communication between the STA and the neighboring stations. This will avoid increasing the network channel load on the one hand, and quickly complete the proxy change process on the other hand.

[0084] In order to quickly and effectively perform routing maintenance on multi-mode (e.g. dual-mode) communication networks, the present invention proposes a new algorithm. By optimizing the startup time of proxy change and the selection method of candidate proxies, STA can quickly complete the necessary proxy change process, allowing the entire network to converge quickly, and fully supporting the large-scale application of power line multi-mode (e.g. dual-mode) communication networks in power consumption information collection systems.

[0085] In summary, the present invention creatively discretizes the moment when the STA in the network starts the proxy change and determines the proxy site, and when the proxy site is not the current proxy site, sends a first change request to the central coordinator via the proxy site, wherein the first change request includes information of the proxy site; starts a timer; when the timer starts a preset timeout period, determines whether a first proxy change confirmation frame fed back by the central coordinator is received; and when the first proxy change confirmation frame is received, confirms that the proxy site is changed successfully, thereby preventing a large number of STAs from starting the proxy change process at the same time and causing the channel to be busy, achieving efficient and orderly proxy changes, and not affecting the normal business operation of the network.

[0086] A third aspect of the present invention provides a system for determining a proxy site, which is arranged on the site side, and the determination system includes: a starting device, which is used to start a timer after the routing cycle ends; a candidate selection device, which is used to select an optimal candidate proxy site from multiple neighboring sites according to parameters characterizing communication quality when the timer is started for a total preset time, wherein the total preset time is associated with a first time, a third time that depends on a second time and the level of the site, and a random number, and the sum of the first time, the third time and the random number is greater than 1 / N of the routing cycle, wherein N is the minimum number of discovery list messages sent within the routing cycle; and a proxy selection device, which is used to select a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

[0087] Preferably, the total preset duration satisfies the following formula:

[0088] t = t1 + t3 + t4, where t3 = (layer / M layer )×t2,

[0089] Wherein, t is the total preset duration; t1 is the first duration; t2 is the second duration, layer is the layer of the site, t3 is the third duration, and M layer is the maximum level of the network topology; t4 is the random number.

[0090] Preferably, the candidate selection device is used to select the optimal candidate proxy site from multiple neighboring sites according to parameters characterizing communication quality when the timer is started for a total preset duration, including: selecting the optimal candidate proxy site from multiple neighboring sites according to the communication success rate, the role of the neighboring site and the priority order of the hierarchy.

[0091] Preferably, the candidate selection device includes: a first candidate selection module, used to select a candidate proxy site from any two neighbor sites among a plurality of neighbor sites according to the communication success rate, the role of the neighbor site and the priority order of the hierarchy; a second candidate selection module, used to select a new candidate proxy site from the candidate proxy site and other neighbor sites according to the communication success rate, the role of the neighbor site and the priority order of the hierarchy, wherein the other neighbor sites are sites among the plurality of neighbor sites except the any two neighbor sites; a candidate acquisition module, used to acquire the latest candidate proxy site until the plurality of neighbor sites are traversed; and a third candidate selection module, used to select the latest candidate proxy site as the optimal candidate proxy site.

[0092] Preferably, the first candidate selection module includes: a communication success rate judgment unit, used to judge whether the first communication success rate between the first neighbor site and the site and the second communication success rate between the second neighbor site and the site are both greater than a first threshold; a role judgment unit, used to judge whether the roles of the first neighbor site and the second neighbor site are the same when the first communication success rate and the second communication success rate are both greater than the first threshold; a level judgment unit, used to judge whether the levels of the first neighbor site and the second neighbor site are the same when the roles of the first neighbor site and the second neighbor site are the same: when the levels of the first neighbor site and the second neighbor site are the same, the neighbor site with a higher communication success rate is selected as the candidate proxy site; or when the levels of the first neighbor site and the second neighbor site are different, the neighbor site with a lower level is selected as the candidate proxy site.

[0093] Preferably, the first candidate selection module further includes: a first candidate selection unit, configured to select a neighboring site with a higher communication success rate as the candidate proxy site when the first communication success rate or the second communication success rate is less than or equal to the first threshold.

[0094] Preferably, the first candidate selection module further includes: a second candidate selection unit, configured to select a neighbor site whose role is a proxy site as the candidate proxy site when the first neighbor site and the second neighbor site have different roles.

[0095] Preferably, the proxy selection device includes: a first judgment module, used to judge whether the third communication success rate between the optimal candidate proxy site and the site and the fourth communication success rate between the current proxy site and the site are both less than a second threshold; a second judgment module, used to judge that the difference between the third communication success rate and the fourth communication success rate is greater than a preset difference when the third communication success rate and the fourth communication success rate are both less than the second threshold; and a first proxy selection module, used to select the optimal candidate proxy site as the proxy site of the site when the difference is greater than the preset difference.

[0096] Preferably, the proxy selection device also includes: a comparison module, used for comparing the levels of the optimal candidate proxy site and the current proxy site when the third communication success rate and the fourth communication success rate are both greater than the second threshold; and a second proxy selection module, used for executing: when the level of the optimal candidate proxy site is less than the level of the current proxy site, selecting the optimal candidate proxy site as the proxy site of the site; or when the level of the optimal candidate proxy site is greater than or equal to the level of the current proxy site, maintaining the current proxy site as the proxy site of the site.

[0097] Preferably, the proxy selection device also includes: a maintaining module, used to maintain the current proxy site as the proxy site when the difference is less than or equal to the preset difference; a third proxy selection module, used to execute: when the third communication success rate is greater than the second threshold and the fourth communication success rate is less than or equal to the second threshold, selecting the optimal candidate proxy site as the proxy site of the site; or when the third communication success rate is less than or equal to the second threshold and the fourth communication success rate is greater than or equal to the second threshold, maintaining the current proxy site as the proxy site of the site.

[0098] The specific details and benefits of the system for determining a proxy site provided by the embodiment of the present invention can be found in the description of the method for determining a proxy site, which will not be repeated here.

[0099] A fourth aspect of the present invention provides a proxy site change system, which is arranged on the site side, and the change system includes: the proxy site determination system, which is used to determine the proxy site; a sending device, which is used to send a first change request to a central coordinator via the proxy site when the proxy site is not the current proxy site, wherein the first change request includes information of the proxy site; a starting device, which is used to start a timer; a confirmation frame judgment device, which is used to judge whether a proxy change confirmation frame fed back by the central coordinator is received when the timer starts a preset timeout period; and a confirmation device, which is used to confirm that the proxy site change is successful when the proxy change confirmation frame is received.

[0100] Preferably, the change system further comprises: a number judgment device, for judging whether the number of times the first change request is sent is greater than or equal to a preset number when the first proxy change confirmation frame is not received; and a candidate judgment device, for judging whether there is a new optimal candidate proxy site among the remaining sites except the proxy site among the plurality of neighboring sites when the number of times the first change request is sent is greater than or equal to the preset number, wherein the communication success rate of the new optimal candidate proxy site is greater than the communication success rate of the current proxy site, or the communication success rate of the new optimal candidate proxy site is equal to the communication success rate of the current proxy site and the level of the new optimal candidate proxy site is less than the level of the current proxy site, the sending device is further used to send a second change request to the central coordinator, wherein the second change request includes information of the new optimal candidate proxy site; the starting device is used to start the timer; the confirmation frame judgment device is further used to judge whether the proxy change confirmation frame fed back by the central coordinator is received when the timer starts the preset timeout period; and the confirmation device is further used to confirm that the new optimal candidate proxy site is changed to the proxy site when the proxy change confirmation frame is received.

[0101] The specific details and benefits of the proxy site change system provided by the embodiment of the present invention can be found in the description of the proxy site change method described above, which will not be repeated here.

[0102] A fifth aspect of the present invention provides a site, comprising: an execution device for executing the method for determining a proxy site or the method for changing a proxy site.

[0103] A sixth aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for determining a proxy site or the method for changing a proxy site is implemented.

[0104] A seventh aspect of the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for determining a proxy site or the method for changing a proxy site.

[0105] An eighth aspect of the present invention provides a chip, wherein the chip stores a computer program, and when the computer program is executed by the chip, the method for determining a proxy site or the method for changing a proxy site is implemented.

[0106] Specifically, this embodiment provides a chip, including: a processor; a memory for storing a computer program executed by the processor; the processor is used to read the computer program from the memory and execute the computer program to implement the method for determining a proxy site or the method for changing a proxy site.

[0107] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the present invention is not limited to the specific details in the above embodiments. Within the technical concept of the present invention, a variety of simple modifications can be made to the technical solution of the present invention, and these simple modifications all belong to the protection scope of the present invention.

[0108] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations.

[0109] Those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a single-chip microcomputer, a chip or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0112] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the present invention, they should also be regarded as the contents disclosed by the present invention.

Claims

1. A method for determining a proxy site, characterized in that: Executed by the site, the determination method includes: After the routing cycle ends, start the timer; In the case where the timer is started for a total preset duration, selecting an optimal candidate proxy site from a plurality of neighboring sites according to a parameter characterizing communication quality, wherein the total preset duration is associated with a first duration, a third duration, and a random number, and the sum of the first duration, the third duration, and the random number is greater than 1 / N of the routing period, wherein the third duration is associated with the second duration and the level of the site, and N is a minimum number of discovery list messages sent within the routing period; and A better one is selected from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

2. The determination method according to claim 1, characterized in that: The total preset duration satisfies the following formula: t = t1 + t3 + t4, where t3 = (layer / M layer )×t2, Wherein, t is the total preset duration; t1 is the first duration; t2 is the second duration, layer is the layer of the site, t3 is the third duration, and M layer is the maximum level of the network topology; t4 is the random number.

3. The determination method according to claim 1, characterized in that: The selecting the best candidate proxy site from a plurality of neighboring sites according to the parameter characterizing the communication quality comprises: The best candidate proxy site is selected from multiple neighbor sites based on the communication success rate, the role of the neighbor site, and the priority order of the hierarchy.

4. The determination method according to claim 3, characterized in that: The selecting the best candidate proxy site from a plurality of neighbor sites according to the communication success rate, the role of the neighbor site and the priority order of the hierarchy includes: Selecting a candidate proxy site from any two neighbor sites among the plurality of neighbor sites according to the communication success rate, the role of the neighbor site and the priority order of the hierarchy; Selecting a new candidate proxy site from the candidate proxy site and other neighbor sites according to the communication success rate, the role of the neighbor site, and the priority order of the hierarchy, wherein the other neighbor sites are sites other than the two neighbor sites among the multiple neighbor sites; until the plurality of neighboring sites are traversed to obtain the latest candidate proxy site; and The latest candidate proxy site is selected as the optimal candidate proxy site.

5. The determination method according to claim 4, characterized in that: Selecting a candidate proxy site from the first neighbor site and the second neighbor site includes: Determine whether a first communication success rate between the first neighboring site and the site and a second communication success rate between the second neighboring site and the site are both greater than a first threshold; When both the first communication success rate and the second communication success rate are greater than the first threshold, determining whether the roles of the first neighboring site and the second neighboring site are the same; In a case where the roles of the first neighbor site and the second neighbor site are the same, determining whether the levels of the first neighbor site and the second neighbor site are the same: In the case where the first neighboring station and the second neighboring station are at the same level, selecting a neighboring station with a higher communication success rate as the candidate proxy station; or In the case that the first neighbor site and the second neighbor site are at different levels, the neighbor site at a lower level is selected as the candidate proxy site.

6. The determination method according to claim 5, characterized in that: Selecting a candidate proxy site from the first neighbor site and the second neighbor site also includes: When the first communication success rate or the second communication success rate is less than or equal to the first threshold, a neighboring site with a higher communication success rate is selected as the candidate proxy site.

7. The determination method according to claim 5 or 6, characterized in that: Selecting a candidate proxy site from the first neighbor site and the second neighbor site also includes: In the case that the first neighboring site and the second neighboring site have different roles, the neighboring site whose role is a proxy site is selected as the candidate proxy site.

8. The determination method according to claim 1, characterized in that: The step of selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site includes: Determine whether a third communication success rate between the optimal candidate proxy site and the site and a fourth communication success rate between the current proxy site and the site are both less than a second threshold; In a case where both the third communication success rate and the fourth communication success rate are less than the second threshold, determining that a difference between the third communication success rate and the fourth communication success rate is greater than a preset difference; and When the difference is greater than the preset difference, the optimal candidate proxy site is selected as the proxy site of the site.

9. The determination method according to claim 8, characterized in that: The step of selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site further comprises: When the third communication success rate and the fourth communication success rate are both greater than the second threshold, comparing the levels of the optimal candidate proxy site and the current proxy site: In the case where the level of the optimal candidate proxy site is lower than the level of the current proxy site, selecting the optimal candidate proxy site as the proxy site of the site; or In the case that the level of the optimal candidate proxy site is greater than or equal to the level of the current proxy site, the current proxy site is maintained as the proxy site of the site.

10. The determination method according to claim 8 or 9, characterized in that: The step of selecting a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site further comprises: When the difference is less than or equal to the preset difference, maintaining the current proxy site as the proxy site; In a case where the third communication success rate is greater than the second threshold and the fourth communication success rate is less than or equal to the second threshold, selecting the optimal candidate proxy site as the proxy site of the site; or When the third communication success rate is less than or equal to the second threshold and the fourth communication success rate is greater than or equal to the second threshold, the current proxy site is maintained as a proxy site of the site.

11. A method for changing an agent site, characterized in that: Executed by the site, the change method includes: Determine the proxy site according to the method for determining the proxy site according to any one of claims 1 to 10; In a case where the proxy site is not the current proxy site, sending a first change request to a central coordinator via the proxy site, wherein the first change request includes information of the proxy site; Start the timer; When the timer starts for a preset timeout period, determining whether a first proxy change confirmation frame fed back by the central coordinator is received; and When the first proxy change confirmation frame is received, it is confirmed that the proxy site change is successful.

12. The method for changing a proxy site according to claim 11, characterized in that: The changing method also includes: In the case where the first proxy change confirmation frame is not received, determining whether the number of times the first change request is sent is greater than or equal to a preset number; In the case where the number of transmissions is greater than or equal to the preset number of times, determining whether there is a new optimal candidate proxy site among the remaining sites of the plurality of neighboring sites except the proxy site, wherein the communication success rate of the new optimal candidate proxy site is greater than the communication success rate of the current proxy site, or the communication success rate of the new optimal candidate proxy site is equal to the communication success rate of the current proxy site and the level of the new optimal candidate proxy site is lower than the level of the current proxy site; Sending a second change request to the central coordinator, wherein the second change request includes information of the new optimal candidate proxy site; Starting the timer; When the timer starts the preset timeout period, determining whether a second proxy change confirmation frame fed back by the central coordinator is received; and When the second proxy change confirmation frame is received, it is confirmed that the new optimal candidate proxy site is changed to the proxy site.

13. A system for determining a proxy site, characterized in that: Set at the site side, the determination system includes: A starting device, used to start the timer after the routing cycle ends; A candidate selection device, configured to select an optimal candidate proxy site from a plurality of neighboring sites according to a parameter characterizing communication quality when the timer is started for a total preset time, wherein the total preset time is associated with a first time, a third time and a random number, and the sum of the first time, the third time and the random number is greater than 1 / N of the routing period, wherein the third time is associated with a second time and a level of the site, and N is a minimum number of discovery list messages sent within the routing period; and The proxy selection device is used to select a better one from the optimal candidate proxy site and the current proxy site as the proxy site of the site.

14. The determination system according to claim 13, characterized in that: The total preset duration satisfies the following formula: t = t1 + t3 + t4, where t3 = (layer / M layer )×t2, Wherein, t is the total preset duration; t1 is the first duration; t2 is the second duration, layer is the layer of the site, t3 is the third duration, and M layer is the maximum level of the network topology; t4 is the random number.

15. The determination system according to claim 13, characterized in that: The candidate selection device is used to select the best candidate proxy site from multiple neighboring sites according to the parameter representing the communication quality when the timer is started for a total preset time, including: The best candidate proxy site is selected from multiple neighbor sites based on the communication success rate, the role of the neighbor site, and the priority order of the hierarchy.

16. The determination system according to claim 15, characterized in that: The candidate selection device comprises: A first candidate selection module, configured to select a candidate proxy site from any two neighbor sites among a plurality of neighbor sites according to a communication success rate, a role of a neighbor site, and a priority order of a hierarchy; A second candidate selection module, configured to select a new candidate proxy site from the candidate proxy site and other neighbor sites according to the communication success rate, the role of the neighbor site, and the priority order of the hierarchy, wherein the other neighbor sites are sites other than the two neighbor sites among the multiple neighbor sites; A candidate acquisition module, configured to traverse the plurality of neighboring sites to acquire the latest candidate proxy site; and The third candidate selection module is used to select the latest candidate proxy site as the optimal candidate proxy site.

17. The determination system according to claim 16, characterized in that: The first candidate selection module comprises: a communication success rate judging unit, configured to judge whether a first communication success rate between a first neighboring station and the station and a second communication success rate between a second neighboring station and the station are both greater than a first threshold; a role determination unit, configured to determine whether the roles of the first neighboring station and the second neighboring station are the same when both the first communication success rate and the second communication success rate are greater than the first threshold; a level determination unit, configured to determine whether the levels of the first neighbor site and the second neighbor site are the same when the roles of the first neighbor site and the second neighbor site are the same: In the case where the first neighboring station and the second neighboring station are at the same level, selecting a neighboring station with a higher communication success rate as the candidate proxy station; or In the case that the first neighbor site and the second neighbor site are at different levels, the neighbor site at a lower level is selected as the candidate proxy site.

18. The determination system according to claim 17, characterized in that: The first candidate selection module also includes: A first candidate selection unit is configured to select a neighboring site with a higher communication success rate as the candidate proxy site when the first communication success rate or the second communication success rate is less than or equal to the first threshold.

19. The determination system according to claim 17 or 18, characterized in that: The first candidate selection module also includes: The second candidate selecting unit is configured to select a neighboring site whose role is a proxy site as the candidate proxy site when the first neighboring site and the second neighboring site have different roles.

20. The determination system according to claim 13, characterized in that: The proxy selection device comprises: A first judgment module, used to judge whether a third communication success rate between the optimal candidate proxy site and the site and a fourth communication success rate between the current proxy site and the site are both less than a second threshold; a second judging module, configured to judge, when both the third communication success rate and the fourth communication success rate are less than the second threshold value, that a difference between the third communication success rate and the fourth communication success rate is greater than a preset difference; and The first proxy selection module is configured to select the optimal candidate proxy site as a proxy site for the site when the difference is greater than the preset difference.

21. The determination system according to claim 20, characterized in that The proxy selection device further comprises: a comparison module, configured to compare the levels of the optimal candidate proxy site and the current proxy site when both the third communication success rate and the fourth communication success rate are greater than the second threshold; and The second agent selection module is used to perform: In the case where the level of the optimal candidate proxy site is lower than the level of the current proxy site, selecting the optimal candidate proxy site as the proxy site of the site; or In the case that the level of the optimal candidate proxy site is greater than or equal to the level of the current proxy site, the current proxy site is maintained as the proxy site of the site.

22. The determination system according to claim 20 or 21, characterized in that: The proxy selection device further comprises: A maintaining module, configured to maintain the current proxy site as the proxy site when the difference is less than or equal to the preset difference; The third agent selection module is used to perform: In a case where the third communication success rate is greater than the second threshold and the fourth communication success rate is less than or equal to the second threshold, selecting the optimal candidate proxy site as the proxy site of the site; or When the third communication success rate is less than or equal to the second threshold and the fourth communication success rate is greater than or equal to the second threshold, the current proxy site is maintained as a proxy site of the site.

23. A system for changing an agent site, characterized in that: Set up at the site side, the change system includes: The system for determining a proxy site according to any one of claims 13 to 22, used for determining a proxy site; a sending device, configured to send a first change request to a central coordinator via the proxy site if the proxy site is not the current proxy site, wherein the first change request includes information of the proxy site; A starting device, used to start the timer; A confirmation frame judging device, used for judging whether a first proxy change confirmation frame fed back by the central coordinator is received when the timer starts a preset timeout period; and The confirmation device is used to confirm that the proxy site is changed successfully when the first proxy change confirmation frame is received.

24. The agent site changing system according to claim 23, characterized in that: The change system also includes: A number determination device, used for determining whether the number of times the first change request is sent is greater than or equal to a preset number when the first proxy change confirmation frame is not received; and a candidate determination device, configured to determine whether there is a new optimal candidate proxy site among the remaining sites of the plurality of neighboring sites except the proxy site, when the number of transmissions is greater than or equal to the preset number of times, wherein the communication success rate of the new optimal candidate proxy site is greater than the communication success rate of the current proxy site, or the communication success rate of the new optimal candidate proxy site is equal to the communication success rate of the current proxy site and the level of the new optimal candidate proxy site is less than the level of the current proxy site, The sending means is further used to send a second change request to the central coordinator, wherein the second change request includes information of the new optimal candidate proxy site; The starting device is used to start the timer; The confirmation frame determination device is further configured to determine whether a proxy change confirmation frame fed back by the central coordinator is received when the timer starts the preset timeout period; and The confirmation device is further configured to confirm changing the new optimal candidate proxy site to the proxy site when receiving the proxy change confirmation frame.

25. A site, characterized in that: The site comprises: an execution device for executing the method for determining a proxy site according to any one of claims 1-10 or the method for changing a proxy site according to any one of claims 11-12.

26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for determining a proxy site according to any one of claims 1 to 10 or the method for changing a proxy site according to any one of claims 11 to 12.

27. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for determining a proxy site according to any one of claims 1 to 10 or the method for changing a proxy site according to any one of claims 11 to 12.

28. A chip, characterized in that: The chip includes: a processor; a memory for storing a computer program executed by the processor; the processor is used to read the computer program from the memory and execute the computer program to implement the method for determining a proxy site described in any one of claims 1-10 or the method for changing a proxy site described in any one of claims 11-12.

Citation Information

Patent Citations

  • Parallel transmission method and device

    CN110392440A

  • HPLC communication networking method and device, storage medium and electronic equipment

    CN110661870A