Contention time slot optimization method, device, equipment and storage medium in dual-mode system

By dynamically allocating competition time slots in the dual-mode communication system, the problem of high wireless link conflicts is solved, the communication success rate and stability are improved, and the average meter reading delay is optimized.

CN116318259BActive Publication Date: 2024-08-23CHINA GRIDCOM +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310231524.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-08-23
Estimated Expiration
2043-03-01

AI Technical Summary

Technical Problem

In dual-mode communication systems, especially HPLC and HRF links, the lack of phase information and different carrier links in wireless links lead to high density of business packets and increased probability of collisions, resulting in communication delays and instability.

Method used

The competition time slot optimization method under the dual-mode system is adopted. The master node determines the agent node according to the network status, updates the wireless beacon flag value, configures the standard beacon frame, and dynamically allocates competition time slots to ensure that the station reports in the target time slot segment. text transmission to reduce the probability of conflict.

Benefits of technology

It effectively reduces the probability of site conflicts on the HRF link, improves communication success rate and stability, and optimizes the average meter reading delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116318259B
    Figure CN116318259B
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and computer-readable storage medium for optimizing contention time slots in a dual-mode system. The method for optimizing contention time slots in a dual-mode system includes: a master node determines a proxy node of a site that needs to participate in time slot optimization according to the network state of the dual-mode system, which is recorded as a target PCO, and obtains the time slot optimization fragment length according to the number of target PCOs and the number of sites loaded by the target PCO on an HRF link, and updates the wireless beacon flag value corresponding to the target PCO, and configures a standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain a first beacon frame; the proxy node updates the first beacon frame using the wireless beacon flag value in the first beacon frame to obtain a second beacon frame; the site determines the target time slot segment from the contention time slot according to the second beacon frame. The method can realize the reasonable dynamic allocation of contention time slots, order the competition within the time slot, and reduce the occurrence of conflicts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of dual-mode communication technology, and in particular to a contention time slot optimization method in a dual-mode system, a contention time slot optimization device in a dual-mode system, a contention time slot optimization equipment in a dual-mode system, and a computer-readable storage medium. Background Art

[0002] HPLC (Highspeed Power Line Carrier) and HPLC+HRF (Highspeed Radio Frequency) dual-mode communication technologies are used in civil power grids, photovoltaic power generation, electric vehicle smart charging, rail transit and other fields. It is used for power grid billing, electricity consumption information collection, power generation control, and signal command transmission. At present, the business and command information messages related to these applications are transmitted in the CSMA time slot of the beacon period in most cases, and in a few cases, they are transmitted in the bound CSMA time slot. On the HPLC link, since the stations are distributed on different phase lines, the CSMA time slot needs to be divided into 3 phase lines, and in order to reduce the communication delay of multi-phase lines, the CSMA time slot is further fragmented. The CSMA time slot notified in the beacon time slot only indicates the total time slot length belonging to a certain phase line. And the sum of the total time slot length of each phase line constitutes the length of the entire CSMA time slot. The entire CSMA time slot needs to be evenly divided according to the number of phase lines. The time slot of each phase line after division is arranged according to a certain algorithm, so that the final time slice of each phase line is relatively balanced in the distribution of the entire CSMA time slot. The station competes with other stations on the corresponding phase line based on its own phase information. The bound CSMA time slot also needs to be divided. The division algorithm is the same as that of the CSMA time slot. All bound CSMA time slots can only be assigned to the same service. The designated service can be determined by the bound CSMA time slot link identifier. The station that needs to send the corresponding service message competes with other stations on the corresponding phase line based on its own phase information. Since there is no distinction between phase lines on the wireless link, CSMA time slots and bound CSMA time slots are no longer divided according to phase lines. All stations compete freely in the entire CSMA time slot or bound CSMA time slot.

[0003] In related technologies, in open environments such as parking lots and villages, and in large communities with concentrated installation of photovoltaic power generation and electric meters, where the unit density is high, the wireless link does not have phase information, and the attenuation characteristics are different from those of the carrier link, and the theoretical rate of the wireless link is only 1 / 4 of that of the carrier link. As a result, the relative density of service messages on the wireless link per unit time is more than 10 times that of the carrier link, and the probability of conflict on the wireless channel is much higher than that on the carrier channel, which will cause communication delays and instability. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the purpose of the present invention is to propose a contention time slot optimization method, device, equipment and computer-readable storage medium in a dual-mode system to achieve reasonable dynamic allocation of contention time slots, thereby reducing the probability of site conflicts in the HRF link and improving the communication success rate.

[0005] To achieve the above-mentioned purpose, the first aspect of the present invention proposes a method for optimizing contention time slots in a dual-mode system, wherein the dual-mode system adopts HPLC and HRF dual-mode networking, and the dual-mode system includes a master node, multiple proxy nodes and multiple sites, and the method includes: the master node determines the proxy node of the site that needs to participate in the time slot optimization according to the network state of the dual-mode system, which is recorded as the target PCO, and obtains the time slot optimization fragment length according to the number of the target PCOs and the number of sites loaded by the target PCO on the HRF link, and updates the wireless beacon flag value corresponding to the target PCO, and configures a standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain a first beacon frame, wherein the time slot optimization fragment length is used to divide the contention time slot; after the proxy node receives the first beacon frame, it updates the first beacon frame using the wireless beacon flag value in the first beacon frame to obtain a second beacon frame; after the site receives the second beacon frame sent by its proxy node, it determines the target time slot segment from the contention time slot according to the second beacon frame to transmit the message in the target time slot segment.

[0006] In addition, the contention time slot optimization method in the dual-mode system of the embodiment of the present invention may also have the following additional technical features:

[0007] According to one embodiment of the present invention, configuring the standard beacon frame according to the wireless beacon flag value and the time slot optimized fragmentation length includes: obtaining the time slot optimized length and the time slot optimized advance reserved length in the contention time slot according to the time slot optimized fragmentation length, and configuring the standard beacon frame according to the wireless beacon flag value, the time slot optimized fragmentation length, the time slot optimized advance reserved length and the time slot optimized length.

[0008] According to one embodiment of the present invention, the network status includes the communication success rate on the HRF link of each node and the number of conflict backoffs of the HRF link in the previous beacon period, and the determining of the proxy node of the site that needs to participate in time slot optimization according to the network status of the dual-mode system includes: determining whether to turn on time slot optimization according to the communication success rate and the number of conflict backoffs; when it is determined to turn on time slot optimization, determining the site that needs to participate in time slot optimization; and obtaining the proxy node of the site that needs to participate in time slot optimization according to the network structure of the dual-mode system.

[0009] According to one embodiment of the present invention, the updating of the wireless beacon flag value corresponding to the target PCO includes: updating the wireless beacon flag value corresponding to the target PCO from a first value to a second value, wherein the first value indicates that only a wireless standard beacon is sent, or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the time slot ends; the second value indicates that only a wireless standard beacon is sent and its child nodes participate in time slot optimization, or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the time slot ends, and its child nodes participate in time slot optimization.

[0010] According to one embodiment of the present invention, the method of updating the first beacon frame using the wireless beacon flag value in the first beacon frame includes: when the wireless beacon flag value in the first beacon frame is the second value, adding a participation optimization flag bit with the first flag value in the first beacon frame; when the wireless beacon flag value in the first beacon frame is the first value, adding a participation optimization flag bit with the second flag value in the first beacon frame.

[0011] According to one embodiment of the present invention, the method also includes: if it is determined to turn on time slot optimization, then when configuring the standard beacon frame, a time slot optimization flag with a value of a third flag value is added to the standard beacon frame; if it is determined not to turn on time slot optimization, then when configuring the standard beacon frame, a time slot optimization flag with a value of a fourth flag value is added to the standard beacon frame.

[0012] According to one embodiment of the present invention, determining the target time slot segment from the contention time slot according to the second beacon frame includes: parsing the second beacon frame to obtain the value of the participation optimization flag, the value of the time slot optimization flag, the time slot optimization pre-reserved length and the time slot optimization length; determining the time slot optimization segment offset and length in the contention time slot according to the time slot optimization pre-reserved length and the time slot optimization length, wherein the contention time slot also includes a time slot optimization pre-reserved segment and a time slot optimization post-reserved segment; if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the third flag value, then determining that the target time slot segment is the time slot optimization pre-reserved segment or the time slot optimization post-reserved segment; if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the fourth flag value, then determining that the target time slot segment is any time slot segment in the contention time slot; if the value of the participation optimization flag is the first flag value, then determining that the target time slot segment is the time slot optimization segment.

[0013] According to one embodiment of the present invention, when the target time slot segment is the time slot optimization segment, message transmission is performed in the target time slot segment, including: parsing the second beacon frame to obtain a wireless beacon flag value and a time slot optimization slice length; arranging the proxy nodes whose wireless beacon flag value is the second value in the original order, and obtaining a time division slice sequence of the time slot optimization segment according to the arrangement result; transmitting a meter reading message and a downlink network management message in the time division slice of the downlink segment of the time slot optimization segment corresponding to the proxy node of the current site, and transmitting a meter reading response message and an uplink network management message in the time division slice of the uplink segment of the time slot optimization segment corresponding to the proxy node of the current STA.

[0014] According to an embodiment of the present invention, the downlink segment of the time slot optimization segment has one more slice than the uplink segment of the time slot optimization segment, and the slice is used for the master node to send a downlink message.

[0015] According to one embodiment of the present invention, the method further includes:

[0016] When the site initiates an agent change request, it first sends an agent change request message in the time slot optimization pre-reserved segment, and then sends the agent change request message in the time division slice of the uplink segment of the time slot optimization segment corresponding to the new agent node selected by the site.

[0017] To achieve the above-mentioned purpose, the second aspect of the present invention proposes a contention time slot optimization device under a dual-mode system, wherein the dual-mode system adopts HPLC and HRF dual-mode networking, the dual-mode system includes a master node, multiple proxy nodes and multiple sites, and the device includes: a first generation module, a second generation module and a determination module.

[0018] The first generation module is used for the master node to determine the proxy node of the site that needs to participate in the time slot optimization according to the network status of the dual-mode system, which is recorded as the target PCO, and obtain the time slot optimization fragment length according to the number of the target PCOs and the number of sites loaded by the target PCO on the HRF link, and update the wireless beacon flag value corresponding to the target PCO, and configure the standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain a first beacon frame, wherein the time slot optimization fragment length is used to divide the contention time slot; the second generation module is used for the proxy node to update the first beacon frame using the wireless beacon flag value in the first beacon frame to obtain a second beacon frame after receiving the first beacon frame; the determination module is used for the site to determine the target time slot segment from the contention time slot according to the second beacon frame after receiving the second beacon frame sent by its proxy node, so as to transmit the message in the target time slot segment.

[0019] To achieve the above-mentioned purpose, the third aspect of the present invention proposes a contention time slot optimization device in a dual-mode system, comprising: a memory, a processor and a computer program stored in the memory, and when the computer program is executed by the processor, it implements the above-mentioned contention time slot optimization method in the dual-mode system.

[0020] To achieve the above objectives, a fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the contention time slot optimization method in the dual-mode system is implemented.

[0021] The contention time slot optimization method, device, equipment and computer-readable storage medium in the dual-mode system of the embodiment of the present invention make the competition of messages on the HRF link orderly by reasonably and dynamically allocating the contention time slots, thereby reducing the probability of site conflicts in the HRF link, and at the same time, improving the stability and success rate of communication and optimizing the average meter reading delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 It is a flowchart of a method for optimizing contention time slots in a dual-mode system according to an embodiment of the present invention;

[0023] Figure 2 is a schematic diagram of the topological relationship of a dual-mode system according to an embodiment of the present invention;

[0024] Figure 3 It is a schematic diagram of a process of determining a proxy node of a site that needs to participate in time slot optimization according to an embodiment of the present invention;

[0025] Figure 4 This is a schematic diagram of a specific workflow of a master node according to an embodiment of the present invention;

[0026] Figure 5 It is a schematic diagram of a process of determining a target time slot segment from a contention time slot according to a second beacon frame according to an embodiment of the present invention;

[0027] Figure 6 is a schematic diagram of a beacon cycle time slot according to an embodiment of the present invention;

[0028] Figure 7 is a schematic diagram of a specific work flow of a site according to an embodiment of the present invention;

[0029] Figure 8 It is a schematic diagram of the structure of a contention time slot optimization device in a dual-mode system according to an embodiment of the present invention;

[0030] Fig. 9 It is a structural diagram of a contention time slot optimization device in a dual-mode system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0032] The following describes a contention time slot optimization method, apparatus, device, and computer-readable storage medium in a dual-mode system according to an embodiment of the present invention with reference to the accompanying drawings.

[0033] Figure 1 It is a flowchart of a method for optimizing contention time slots in a dual-mode system according to an embodiment of the present invention.

[0034] In this embodiment, the dual-mode system adopts HPLC and HRF dual-mode networking, and the dual-mode system includes a master node, multiple proxy nodes and multiple sites. Figure 2 As shown in FIG. 1 , the dual-mode system is a multi-level tree network with a master node (i.e., central coordinator, CCO) as the center and proxy nodes (i.e., proxy coordinator, PCO) as relay agents, connecting all stations (STAs). Each node (including CCO, PCO, STA) has its own corresponding TEI value.

[0035] It should be noted that the contention time slot may be a CSMA time slot or a bound CSMA time slot.

[0036] like Figure 1 As shown, the contention time slot optimization method in the dual-mode system includes:

[0037] S1, the master node determines the proxy node of the site that needs to participate in the time slot optimization according to the network status of the dual-mode system, recorded as the target PCO, and obtains the time slot optimization fragment length according to the number of target PCOs and the number of sites loaded by the target PCO on the HRF link, and updates the wireless beacon flag value corresponding to the target PCO, and configures the standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain the first beacon frame, wherein the time slot optimization fragment length is used to divide the contention time slot.

[0038] Specifically, the first preset value may be added to the standard beacon frame, including: adding the time slot optimization fragment length in the time slot allocation entry, and adding the wireless beacon flag value in the non-central beacon information field of the time slot allocation entry. The format of the time slot optimization fragment length is shown in Table 1.

[0039] Table 1

[0040] Fields Number of bytes Bit Field size definition Time slot optimized fragment length 2 0-7 8 bits Time slot optimization fragment size, unit: 10 milliseconds

[0041] As an example, the time slot optimization slice length is obtained according to the number of target PCOs and the number of sites loaded by the target PCOs on the HRF link, which may specifically include:

[0042] First, the loaded sites are divided into multiple intervals according to the number (for example, three intervals: 0-100, 101-200, and greater than 200), wherein different intervals correspond to different optimized slice lengths of the selected time slots.

[0043] Secondly, the master node counts the number of target PCOs in each interval and sorts them, recorded as n1, n2, n3..., where n1>n2>n3...

[0044] Then, the length of the optimized segment of the waiting time slot is calculated, wherein the length of the optimized segment of the waiting time slot=the length of the optimized fragment of the waiting time slot corresponding to n1×(2×the total number of target PCOs+1).

[0045] Afterwards, it is determined whether the length of the optimized segment of the waiting time slot is not greater than the total length of the contention time slot.

[0046] Finally, if it is not greater than, the length of the time slot optimization segment to be scheduled is used as the time slot optimization segment length; if it is greater than, the next level of time slot optimization segment length to be selected that is smaller than the current one is selected, the length of the time slot optimization segment to be scheduled is calculated, and the step of determining whether the length of the time slot optimization segment to be scheduled is not greater than the total length of the competing time slot is returned.

[0047] In some embodiments of the present invention, updating the wireless beacon flag value corresponding to the target PCO includes: updating the wireless beacon flag value corresponding to the target PCO from a first value to a second value, wherein the first value indicates that only a wireless standard beacon is sent (such as 0x01 in Table 2 below), or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the time slot ends (such as 0x02 in Table 2 below); the second value indicates that only a wireless standard beacon is sent and its child nodes participate in time slot optimization (such as 0x05 in Table 2 below), or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the time slot ends, and its child nodes participate in time slot optimization (such as 0x06 in Table 2 below).

[0048] Specifically, as shown in Table 2, the above definitions of 0x05 and 0x06 may be added to the wireless beacon flag of the non-central beacon information field to facilitate the master node to configure the standard beacon frame.

[0049] Table 2

[0050]

[0051] In some embodiments of the present invention, a standard beacon frame is configured according to a wireless beacon flag value and a time slot optimization fragmentation length, including: obtaining a time slot optimization length and a time slot optimization advance reserved length in a contention time slot according to the time slot optimization fragmentation length, and configuring a standard beacon frame according to the wireless beacon flag value, the time slot optimization fragmentation length, the time slot optimization advance reserved length and the time slot optimization length.

[0052] As an example, the time slot optimization length = the time slot optimization fragment length × (2 × the total number of target PCOs + 1), the time slot optimization advance reservation length = (the total length of the contention time slot - the time slot optimization length) ÷ 2.

[0053] Specifically, the above-mentioned increase in preset values ​​may also include increasing the time slot optimization advance reservation length and the time slot optimization length in the time slot allocation entry time slot information field. The time slot allocation entry time slot information field includes the time slot allocation entry CSMA time slot information field and the time slot allocation entry bound CSMA time slot information field. The format of the CSMA time slot optimization advance reservation length and the CSMA time slot optimization length in the time slot allocation entry CSMA time slot information field is shown in Table 3-1, and the format of the bound CSMA time slot optimization advance reservation length and the bound CSMA time slot optimization length in the time slot allocation entry bound CSMA time slot information field is shown in Table 3-2.

[0054] Table 3-1

[0055]

[0056] Table 3-2

[0057]

[0058] S2, after receiving the first beacon frame, the proxy node updates the first beacon frame using the wireless beacon flag value in the first beacon frame to obtain a second beacon frame.

[0059] In some embodiments of the present invention, the first beacon frame is updated using the wireless beacon flag value in the first beacon frame, including: when the wireless beacon flag value in the first beacon frame is a second value, adding a participation optimization flag bit with the first flag value in the first beacon frame; when the wireless beacon flag value in the first beacon frame is a first value, adding a participation optimization flag bit with the second flag value in the first beacon frame.

[0060] Among them, the first flag value can be 1, and the second flag value can be 0.

[0061] Specifically, the CCO may add a second preset value to the standard beacon frame payload, including: adding a participation optimization flag to the site capability entry. When the wireless beacon flag value is 0x05 or 0x06, the participation optimization flag to be sent is configured to be 1; otherwise, the participation optimization flag to be sent is configured to be 0.

[0062] As an example, the format of the optimization participation flag in the standard beacon frame is shown in Table 4.

[0063] Table 4

[0064]

[0065] In this implementation, the task load of the child node corresponding to the proxy node can be reduced by adding a new participation optimization flag. When the participation optimization flag is 0, the corresponding child node does not need to fully parse the time slot allocation entry; when the participation optimization flag is 1, the corresponding child node needs to fully parse the information of the non-central beacon field. The time slot allocation entry includes the non-central beacon information field, the time slot information field, etc.

[0066] S3, after receiving the second beacon frame sent by its proxy node, the station determines a target time slot segment from the contention time slot according to the second beacon frame, so as to transmit a message in the target time slot segment.

[0067] The contention time slot optimization method under the dual-mode system of the embodiment of the present invention makes the contention of messages on the HRF link orderly by reasonably and dynamically allocating the contention time slots, thereby reducing the probability of site conflicts in the HRF link, and at the same time, improves the stability and success rate of communication and optimizes the average meter reading delay.

[0068] In some embodiments of the present invention, the network status includes the communication success rate on the HRF link of each node, the number of conflict backoffs of the HRF link in the previous beacon period, such as Figure 3As shown, determining the proxy node of the site that needs to participate in time slot optimization according to the network status of the dual-mode system includes:

[0069] S21, determining whether to enable time slot optimization according to the communication success rate and the number of conflict avoidance times.

[0070] It should be noted that the time slot optimization can be enabled when the minimum communication success rate on a certain routing path is less than the preset communication success rate, or the conflict backoff number of the master node is greater than the preset conflict backoff number.

[0071] Specifically, the communication success rate may include a downlink communication success rate and an uplink communication success rate. The master node may obtain and parse the communication success rate information field of the communication success rate reporting message to determine the operating status of the HRF link, that is, the communication success rate on the HRF link of each node. For the format of the communication success rate reporting message, see Table 5.

[0072] Table 5

[0073]

[0074] As an example, after the network optimization is completed (i.e., the network topology is stable), the master node can make a comprehensive decision on whether to enable time slot optimization during the beacon construction phase of each beacon cycle based on the communication success rate, the number of conflict backoffs of the HRF link in the previous beacon cycle, and whether there is currently a high load demand for meter reading across the entire network.

[0075] It should be noted that the number of conflict avoidance times can be calculated and stored by the master node itself after a beacon period.

[0076] S22: When it is determined to start the time slot optimization, a site that needs to participate in the time slot optimization is determined.

[0077] Specifically, when the minimum communication success rate on a certain routing path is less than the preset communication success rate and time slot optimization is turned on, all wireless network access nodes on the routing path whose minimum communication success rate is less than the preset communication success rate participate in time slot optimization. When the conflict backoff number of the master node is greater than the preset conflict backoff number and time slot optimization is turned on, all wireless network access nodes directly connected to the master node participate in time slot optimization. Among them, if the time slot optimization is turned on by both the communication success rate and the conflict backoff number, the site that needs to participate in the time slot optimization can be determined based on the two trigger conditions. S23, obtain the proxy node of the site that needs to participate in the time slot optimization according to the network structure of the dual-mode system.

[0078] In some embodiments of the present invention, the contention time slot optimization method under the dual-mode system also includes: if it is determined to turn on the time slot optimization, then when configuring the standard beacon frame, a time slot optimization flag with a value of the third flag value is added to the standard beacon frame; if it is determined not to turn on the time slot optimization, then when configuring the standard beacon frame, a time slot optimization flag with a value of the fourth flag value is added to the standard beacon frame.

[0079] Specifically, the above-mentioned addition of the first preset value may also include adding a time slot optimization flag in the time slot allocation entry, and the time slot optimization flag includes a CSMA time slot optimization flag and a bound CSMA time slot optimization flag. When the time slot optimization flag is a third flag value, it indicates that the corresponding site turns on time slot optimization. When the time slot optimization flag is a fourth flag value, it indicates that the corresponding site freely competes in the entire contention time slot.

[0080] As an example, the third flag value is 1, and the fourth flag value is 0. The format of the time slot optimization flag bit in the standard beacon frame can be seen in Table 6.

[0081] Table 6

[0082]

[0083] Next, combine Figure 4 , an example is used to illustrate the specific workflow of the master node:

[0084] S41, determining whether the network optimization is completed.

[0085] S42: If completed, determine whether to enable time slot optimization according to the network status of the dual-mode system.

[0086] S43, if the time slot optimization is turned on, then an optimization participation flag bit and a time slot optimization flag bit with a value of 1 are added to the beacon frame and statistics are collected on the sites participating in the time slot optimization and their corresponding proxy node information.

[0087] S44, update the wireless beacon flag value in the corresponding proxy node from 0x00 or 0x01 to 0x05 or 0x06.

[0088] S45, configuring a standard beacon frame according to the wireless beacon flag value and the time slot optimized fragment length.

[0089] S46, if the network optimization is not completed or the time slot optimization is not enabled, an optimization participation flag and a time slot optimization flag with a value of 0 are added to the beacon frame, and the time slot optimization fragment length is configured to be 0.

[0090] S47, configure the time slot optimization pre-reserved segment length and the time slot optimization segment length to 0, and configure a standard beacon frame.

[0091] In some embodiments of the present invention, Figure 5 As shown, determining a target time slot segment from a contention time slot according to a second beacon frame includes:

[0092] S31, parse the second beacon frame to obtain the value of the participation optimization flag, the value of the time slot optimization flag, the time slot optimization advance reservation length and the time slot optimization length.

[0093] S32, determining the offset and length of the time slot optimization segment in the contention time slot according to the time slot optimization pre-reserved length and the time slot optimization length, wherein the contention time slot also includes the time slot optimization pre-reserved segment and the time slot optimization post-reserved segment.

[0094] Specifically, the time slot optimization advance reservation length can be used as the time slot optimization segment offset in the contention time slot, and the time slot optimization length can be used as the time slot optimization segment length in the contention time slot.

[0095] Take CSMA time slot as an example, Figure 6 As shown, the reserved time slot optimization in the CSMA time slot is reserved in advance for nodes that do not participate in the time slot optimization to send network management message packets and service packets. The reserved time slot optimization in the CSMA time slot is reserved in the later stage to avoid the situation where some service packets that need to be replied appear across the beacon period.

[0096] S33, if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the third flag value, the target time slot segment is determined to be a time slot optimization pre-reserved segment or a time slot optimization post-reserved segment to avoid the time slot optimization segment in the contention time slot.

[0097] S34: If the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the fourth flag value, the target time slot segment is determined to be any time slot segment in the contention time slot.

[0098] S35: If the value of the flag bit participating in the optimization is the first flag value, the target time slot segment is determined to be a time slot optimization segment.

[0099] Specifically, the time slot optimization segment is sliced ​​in a time division multiple access (TDMA) manner, and each wireless proxy node and its subnodes send network management message packets and service messages in their respective slices in turn, and the stations still compete for transmission in their respective slices in a CSMA manner.

[0100] In some embodiments of the present invention, when the target time slot segment is a time slot optimization segment, message transmission is performed in the target time slot segment, including:

[0101] S351, parse the second beacon frame to obtain the wireless beacon flag value and the time slot optimization fragment length.

[0102] S352, arrange the proxy nodes whose wireless beacon flag values ​​are the second value in the original order, and obtain the time division slicing sequence of the time slot optimization segment according to the arrangement result.

[0103] It should be noted that the original sequence is the order in which the beacon sending order of each PCO node is sorted by the reused master node in order to maintain the network and ensure that each PCO node can send beacons in a hierarchical and progressive manner.

[0104] As an example, a time division slicing sequence of the time slot optimization segment is obtained according to the arrangement result. Specifically, according to the arrangement result, a time slot optimization slice can be reserved, each node of the sequential sorting result corresponds to a time slot optimization slice, and each node of the reverse sorting result corresponds to a time slot optimization slice, and the time division slicing sequence of the time slot optimization segment can be obtained by combining them.

[0105] S353, transmit the meter reading message and the downlink network management message in the time division slice of the downlink segment of the time slot optimization segment corresponding to the proxy node of the current site, and transmit the meter reading response message and the uplink network management message in the time division slice of the uplink segment of the time slot optimization segment corresponding to the proxy node of the current STA.

[0106] As an example, the allocation of time slot fragments in the time slot optimization section adopts an order consistent with the time slot allocation to ensure the cascade relationship of the routing with the minimum cost.

[0107] It should be noted that the TDMA timing of the uplink segment is consistent with the proxy beacon timing in the non-central beacon information field to ensure that the logical sequence of nodes on the same routing path remains unchanged; the downlink segment timing is sorted according to the order of the proxy nodes participating in the optimization in the contention time slot.

[0108] Specifically, the downlink segment is in the reverse order of the uplink segment, and the time slot optimization downlink segment has one more slice with TEI of 0 than the time slot optimization uplink segment. The slice is used for the master node to send a downlink message.

[0109] For example, how each STA participating in time slot optimization sends information in the time slot corresponding to the terminal device identifier of its proxy node. Figure 6As shown, the TEI4 node sends downlink service messages, network management message messages, etc. in the downlink TEI1 slice; the TEI5 and TEI6 nodes send downlink service messages, network management message messages, etc. in the downlink TEI2 slice; the TEI8 node sends downlink service messages, network management message messages, etc. in the downlink TEI4 slice; the TEI8 node sends uplink service messages, network management message messages, etc. in the uplink TEI4 slice; the TEI5 and TEI6 nodes send uplink service messages, network management message messages, etc. in the uplink TEI2 slice; the TEI4 node sends uplink service messages, network management message messages, etc. in the uplink TEI1 slice.

[0110] Next, combine Figure 7 , using an example to illustrate the specific workflow of the site:

[0111] S51, determining whether the second beacon frame is a standard beacon frame.

[0112] S52: If it is a standard beacon frame, determine whether the flag bit for participating in optimization is 1.

[0113] S53, if the participation optimization flag is 1, parse the non-central beacon information field in the second beacon frame to construct the contention time slot optimization segment timing; parse the time slot information field in the second beacon frame to determine the time slot optimization segment offset and length in the contention time slot; calculate the time slot segment corresponding to the corresponding proxy node according to the time slot optimization segment length, and send the message in the corresponding segment.

[0114] S54: If the participation optimization flag is not 1, the time slot allocation entry is parsed, and it is determined whether the time slot optimization flag is 1.

[0115] S55, if the time slot optimization flag is 1, parse the time slot information field in the second beacon frame, determine the time slot optimization segment offset and length in the contention time slot, and send a message in the time slot optimization pre-reserved segment or the time slot optimization post-reserved segment.

[0116] S56: If the second beacon frame is not a standard beacon frame or the time slot optimization flag is 0, a message is sent in any time slot segment in the contention time slot.

[0117] In some embodiments of the present invention, the contention time slot optimization method in the dual-mode system further includes:

[0118] When a site initiates an agent change request, it first sends the agent change request message in the time slot optimization pre-reserved segment, and then sends the agent change request message in the time division slice of the uplink segment of the time slot optimization segment corresponding to the new agent node selected by the site.

[0119] Specifically, when the site is in the contention time slot optimization on state, if the site initiates an agent change request, the agent change request message may be sent in the time slot optimization pre-reserved segment of the contention time slot in priority. When the time slot optimization pre-reserved segment of the contention time slot is occupied, the agent change request message is sent in the time division slice of the uplink segment of the time slot optimization segment corresponding to the new proxy node selected by the site, rather than in the time division slice of the uplink segment of the time slot optimization segment corresponding to the original proxy of the site.

[0120] Corresponding to the above embodiment, the present invention further proposes a contention time slot optimization device in a dual-mode system.

[0121] Figure 8 It is a schematic diagram of the structure of a contention time slot optimization device in a dual-mode system according to an embodiment of the present invention.

[0122] The dual-mode system uses HPLC and HRF dual-mode networking. The dual-mode system includes a master node, multiple agent nodes and multiple sites, such as Figure 8 As shown, the contention time slot optimization device in the dual-mode system includes: a first generation module 10, a second generation module 20 and a determination module 30.

[0123] The first generation module 10 is used for the master node to determine the proxy node of the site that needs to participate in the time slot optimization according to the network status of the dual-mode system, recorded as the target PCO, and obtain the time slot optimization fragment length according to the number of target PCOs and the number of sites loaded by the target PCO on the HRF link, and update the wireless beacon flag value corresponding to the target PCO, and configure the standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain the first beacon frame, wherein the time slot optimization fragment length is used to divide the contention time slot.

[0124] The second generating module 20 is used for the proxy node to update the first beacon frame by using the wireless beacon flag value in the first beacon frame to obtain the second beacon frame after receiving the first beacon frame.

[0125] The determination module 30 is used for determining a target time slot segment from contention time slots according to the second beacon frame after the station receives the second beacon frame sent by its proxy node, so as to transmit a message in the target time slot segment.

[0126] It should be noted that, for other specific implementations of the contention time slot optimization device in a dual-mode system according to an embodiment of the present invention, reference may be made to the specific implementations of the contention time slot optimization method in a dual-mode system according to the above embodiment of the present invention.

[0127] The contention time slot optimization device in the dual-mode system of the embodiment of the present invention can realize the reasonable dynamic allocation of contention time slots, make the contention in the time slots orderly, and reduce the occurrence of conflicts.

[0128] Corresponding to the above embodiment, the present invention further proposes a contention time slot optimization device in a dual-mode system.

[0129] Fig. 9 It is a structural diagram of a contention time slot optimization device in a dual-mode system according to an embodiment of the present invention.

[0130] like Fig. 9 As shown, the contention time slot optimization device 400 in the dual-mode system includes: a memory 401, a processor 402 and a computer program stored in the memory 401. The memory 401 and the processor 402 are connected, such as through a bus 403. Optionally, the contention time slot optimization device 400 in the dual-mode system may also include a transceiver 404. When the computer program is executed by the processor 402, the contention time slot optimization method in the dual-mode system described above is implemented. It should be noted that in actual applications, the transceiver 404 is not limited to one, and the structure of the contention time slot optimization device 400 in the dual-mode system does not constitute a limitation on the embodiments of the present invention.

[0131] Processor 402 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the present invention. Processor 402 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0132] The bus 403 may include a path to transmit information between the above components. The bus 403 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 403 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0133] The memory 401 is used to store a computer program corresponding to the contention time slot optimization method in the dual-mode system of the above embodiment of the present invention, and the computer program is controlled and executed by the processor 402. The processor 402 is used to execute the computer program stored in the memory 401 to implement the content shown in the above method embodiment.

[0134] in, Fig. 9 The contention time slot optimization device 400 in the dual-mode system is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.

[0135] It should be understood that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0136] At the same time, the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0137] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0138] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0139] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A contention time slot optimization method in a dual-mode system, characterized in that: The dual-mode system adopts high-speed power line carrier communication (HPLC) and high-speed wireless communication (HRF) dual-mode networking, the dual-mode system includes a master node, multiple proxy nodes and multiple sites, and the method includes: The master node determines the proxy node of the site that needs to participate in the time slot optimization according to the network state of the dual-mode system, recorded as the target proxy node (PCO), obtains the time slot optimization fragment length according to the number of the PCOs and the number of sites loaded by the PCOs on the HRF link, updates the wireless beacon flag value corresponding to the PCO, and configures the standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain a first beacon frame, wherein the time slot optimization fragment length is used to divide the contention time slot; After receiving the first beacon frame, the proxy node updates the first beacon frame using the wireless beacon flag value in the first beacon frame to obtain a second beacon frame; After receiving the second beacon frame sent by its proxy node, the station determines a target time slot segment from the contention time slot according to the second beacon frame, so as to transmit a message in the target time slot segment; The updating of the wireless beacon flag value corresponding to the PCO includes: The wireless beacon flag value corresponding to the PCO is updated from a first value to a second value, wherein the first value indicates that only a wireless standard beacon is sent, or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the contention time slot ends; the second value indicates that only a wireless standard beacon is sent, and a child node of the PCO participates in time slot optimization, or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the contention time slot ends, and a child node of the PCO participates in time slot optimization; The updating of the first beacon frame by using the wireless beacon flag value in the first beacon frame includes: When the wireless beacon flag value in the first beacon frame is the second value, a participation optimization flag bit with a value of the first flag value is added to the first beacon frame, and the participation optimization flag bit is used to inform the child node of the PCO whether to participate in time slot optimization; when the wireless beacon flag value in the first beacon frame is the first value, a participation optimization flag bit with a value of the second flag value is added to the first beacon frame; wherein, when the value of the participation optimization flag bit is the second flag value, the corresponding child node does not need to fully parse the time slot allocation entry, and when the value of the participation optimization flag bit is the first flag value, the corresponding child node needs to fully parse the information of the non-central beacon field; The method further comprises: If it is determined to turn on the time slot optimization, then when configuring the standard beacon frame, a time slot optimization flag bit with a value of the third flag value is also added to the standard beacon frame; if it is determined not to turn on the time slot optimization, then when configuring the standard beacon frame, a time slot optimization flag bit with a value of the fourth flag value is also added to the standard beacon frame; wherein, when the time slot optimization flag bit is the third flag value, it indicates that the corresponding station turns on the time slot optimization, and, when the time slot optimization flag bit is the fourth flag value, it indicates that the corresponding station freely competes in the entire contention time slot; The step of determining a target time slot segment from a contention time slot according to the second beacon frame includes: Parse the second beacon frame to obtain the value of the participation optimization flag, the value of the time slot optimization flag, the time slot optimization pre-reserved length and the time slot optimization length; determine the time slot optimization segment offset and length in the contention time slot according to the time slot optimization pre-reserved length and the time slot optimization length, wherein the contention time slot also includes a time slot optimization pre-reserved segment and a time slot optimization post-reserved segment; if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the third flag value, then determine that the target time slot segment is the time slot optimization pre-reserved segment or the time slot optimization post-reserved segment; if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the fourth flag value, then determine that the target time slot segment is any time slot segment in the contention time slot; if the value of the participation optimization flag is the first flag value, then determine that the target time slot segment is the time slot optimization segment.

2. The contention time slot optimization method in a dual-mode system according to claim 1, characterized in that: The configuring a standard beacon frame according to the wireless beacon flag value and the time slot optimized fragment length includes: The time slot optimization length and the time slot optimization advance reservation length in the contention time slot are obtained according to the time slot optimization fragmentation length, and the standard beacon frame is configured according to the wireless beacon flag value, the time slot optimization fragmentation length, the time slot optimization advance reservation length and the time slot optimization length.

3. The contention time slot optimization method in a dual-mode system according to claim 2, characterized in that: The network status includes the communication success rate on the HRF link of each node and the number of conflict backoffs of the HRF link in the previous beacon period. The determining of the proxy node of the site that needs to participate in the time slot optimization according to the network status of the dual-mode system includes: Determine whether to enable time slot optimization according to the communication success rate and the number of conflict backoff times; When it is determined to start time slot optimization, the sites that need to participate in time slot optimization are determined; The proxy node of the site that needs to participate in time slot optimization is obtained according to the network structure of the dual-mode system.

4. The contention time slot optimization method in a dual-mode system according to claim 1, characterized in that: When the target time slot segment is the time slot optimization segment, transmitting a message in the target time slot segment includes: Parsing the second beacon frame to obtain a wireless beacon flag value and a time slot optimized fragment length; Arrange the proxy nodes whose radio beacon flag values ​​are the second values ​​in the original order, and obtain the time division slicing sequence of the time slot optimization segment according to the arrangement result; In the time division slice of the downlink segment of the time slot optimization segment corresponding to the proxy node of the current site, the meter reading message and the downlink network management message are transmitted, and in the time division slice of the uplink segment of the time slot optimization segment corresponding to the proxy node of the current STA, the meter reading response message and the uplink network management message are transmitted.

5. The contention time slot optimization method in a dual-mode system according to claim 4, characterized in that: The downlink segment of the time slot optimization segment has one more segment than the uplink segment of the time slot optimization segment, and the segment is used for the master node to send a downlink message.

6. The contention time slot optimization method in a dual-mode system according to claim 1, characterized in that: The method further comprises: When the site initiates an agent change request, it first sends an agent change request message in the time slot optimization pre-reserved segment, and then sends the agent change request message in the time division slice of the uplink segment of the time slot optimization segment corresponding to the new agent node selected by the site.

7. A contention time slot optimization device in a dual-mode system, characterized in that: The dual-mode system adopts high-speed power line carrier communication (HPLC) and high-speed wireless communication (HRF) dual-mode networking, the dual-mode system includes a master node, multiple proxy nodes and multiple sites, and the device includes: A first generation module is used for the master node to determine the proxy node of the site that needs to participate in the time slot optimization according to the network status of the dual-mode system, which is recorded as a target proxy node (PCO), and obtain the time slot optimization fragment length according to the number of the PCOs and the number of sites loaded by the PCO on the HRF link, and update the wireless beacon flag value corresponding to the PCO, and configure the standard beacon frame according to the wireless beacon flag value and the time slot optimization fragment length to obtain a first beacon frame, wherein the time slot optimization fragment length is used to divide the contention time slot, wherein the updating of the wireless beacon flag value corresponding to the PCO includes: updating the wireless beacon flag value corresponding to the PCO from a first value to a second value, wherein the first value indicates that only a wireless standard beacon is sent, or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the contention time slot ends; the second value indicates that only a wireless standard beacon is sent, and the child node of the PCO participates in the time slot optimization, or a high-speed carrier beacon is sent and a wireless standard beacon is sent after the contention time slot ends, and the child node of the PCO participates in the time slot optimization; A second generating module, configured for, after the proxy node receives the first beacon frame, to update the first beacon frame using the wireless beacon flag value in the first beacon frame to obtain a second beacon frame; A determination module, configured to determine a target time slot segment from the contention time slot according to the second beacon frame after the station receives the second beacon frame sent by its proxy node, so as to transmit a message in the target time slot segment; The updating of the first beacon frame by using the wireless beacon flag value in the first beacon frame includes: When the wireless beacon flag value in the first beacon frame is the second value, a participation optimization flag bit with a value of the first flag value is added to the first beacon frame, and the participation optimization flag bit is used to inform the child node of the PCO whether to participate in time slot optimization; when the wireless beacon flag value in the first beacon frame is the first value, a participation optimization flag bit with a value of the second flag value is added to the first beacon frame; wherein, when the value of the participation optimization flag bit is the second flag value, the corresponding child node does not need to fully parse the time slot allocation entry, and when the value of the participation optimization flag bit is the first flag value, the corresponding child node needs to fully parse the information of the non-central beacon field; When configuring the standard beacon frame, the first generating module is further used to: If it is determined to enable time slot optimization, a time slot optimization flag bit with a third flag value is added to the standard beacon frame; if it is determined not to enable time slot optimization, a time slot optimization flag bit with a fourth flag value is added to the standard beacon frame; wherein, when the time slot optimization flag bit is the third flag value, it indicates that the corresponding station enables time slot optimization, and, when the time slot optimization flag bit is the fourth flag value, it indicates that the corresponding station freely competes in the entire contention time slot; The step of determining a target time slot segment from a contention time slot according to the second beacon frame includes: Parse the second beacon frame to obtain the value of the participation optimization flag, the value of the time slot optimization flag, the time slot optimization pre-reserved length and the time slot optimization length; determine the time slot optimization segment offset and length in the contention time slot according to the time slot optimization pre-reserved length and the time slot optimization length, wherein the contention time slot also includes a time slot optimization pre-reserved segment and a time slot optimization post-reserved segment; if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the third flag value, then determine that the target time slot segment is the time slot optimization pre-reserved segment or the time slot optimization post-reserved segment; if the value of the participation optimization flag is the second flag value, and the value of the time slot optimization flag is the fourth flag value, then determine that the target time slot segment is any time slot segment in the contention time slot; if the value of the participation optimization flag is the first flag value, then determine that the target time slot segment is the time slot optimization segment.

8. A contention time slot optimization device in a dual-mode system, characterized in that: include: A memory, a processor and a computer program stored in the memory, wherein when the computer program is executed by the processor, the contention time slot optimization method in a dual-mode system according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the contention time slot optimization method in a dual-mode system according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Dual-mode adaptive MAC (Media Access Control) access method and system with security constraint fallback mechanism

    CN122871425A