Dual-mode carrier communication system task scheduling method and related device
By obtaining STA packet information in the dual-mode carrier communication system and optimizing the communication method, the problem of long-term interaction process is solved, efficient STA coordination scheduling and business function execution is achieved, and the reliability and efficiency of the system are improved.
Patent Information
- Application Number
- CN202510597749.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-07-08
AI Technical Summary
In the prior art, the interaction process of the dual-mode carrier communication system in the station area takes a long time, resulting in low processing efficiency and is difficult to meet the diversified needs such as line branch identification and load curve acquisition.
By obtaining the STA packet information of the dual-mode carrier communication system, and according to the NTB reference value, NTB interval unit value and its own packet member serial number, the STA is triggered to execute business function instructions in a specified time sequence, and combined with the PCO branch broadcast, the communication method is optimized to shorten the interaction time.
It realizes unified coordinated scheduling of a large number of STAs, reduces the time-consuming interaction process, improves the reliability and stability of the dual-mode carrier communication system, and improves task execution efficiency and response speed.
Smart Images

Figure CN120281660A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of distribution communication, and relates to a task scheduling method and related device for a dual-mode carrier communication system. Background Art
[0002] Driven by the innovation of new technologies, the dual-mode carrier communication module of the distribution substation topology has been widely promoted and applied. Currently, with the continuous expansion of distribution service functions, there is an urgent need for a mechanism that can flexibly specify that all or some STAs (Stations) in the substation synchronously execute or sequentially execute specific logic at the same time to meet diversified requirements such as line branch identification and load curve acquisition.
[0003] Currently, the common solution to implement this mechanism is: after networking CCO (Central Coordinator), PCO (Proxy Coordinato), and STA, the CCO and other devices sequentially poll and send instructions to the PCO and STA one by one to achieve the corresponding data reading and writing control.
[0004] However, this common solution has the problem of long interaction process time. Taking the household meter STA branch detection task as an example, in a substation with 200 household meter STAs and 30 PCOs, the identification of a single household meter STA requires a process of issuing an instruction to the household meter STA once and querying the branch inspection results 30 times, which leads to an extremely time-consuming interaction process, thereby prolonging the entire processing cycle and reducing the processing efficiency. Summary of the Invention
[0005] The purpose of the present invention is to overcome the above-mentioned disadvantages of the prior art and provide a task scheduling method and related device for a dual-mode carrier communication system.
[0006] To achieve the above purpose, the present invention adopts the following technical solutions: In the first aspect of the present invention, a task scheduling method for a dual-mode carrier communication system is provided, including: obtaining STA grouping information of the dual-mode carrier communication system; sending the STA grouping information to STAs of the dual-mode carrier communication system; wherein, the STA grouping information is used to trigger an STA to obtain an execution NTB value according to the NTB reference value, NTB interval unit value, and its own subgroup member serial number in the target grouping information, and when its own NTB value reaches the execution NTB value, execute the service function instruction in the target grouping information; wherein, the target grouping information is the STA grouping information in which the subgroup members include itself; it is also used to trigger an STA with a communication type of PCO to send the STA grouping information to the STA that is connected below itself and included in the STA grouping information when the subgroup members in the STA grouping information include the STA connected below itself.
[0007] Optionally, obtaining the STA packet information of the dual-mode carrier communication system includes: for the STAs that need to be grouped in the dual-mode carrier communication system, grouping them in descending order of the communication topology hierarchy of the dual-mode carrier communication system and based on the requirement that the STAs in the same group are the downstream STAs of the same PCO or the downstream STAs of the parent PCO of the PCO, to obtain several STA groups; where, the PCO is an STA with the communication type of PCO; traversing each STA group: setting the NTB reference value, NTB interval unit value, service function instruction, and group member serial number of the current STA group, and constructing the STA packet information of the current STA group according to the NTB reference value, NTB interval unit value, service function instruction, and group member serial number of the current STA group, in combination with the group member information of the current STA group.
[0008] Optionally, setting the NTB reference value, NTB interval unit value, and group member serial number of the current STA group includes: obtaining the NTB reference value of the current STA group through the following formula: NTB reference value = T1 + (T2 + T3) × R1 Where, T1 is the current NTB value, T2 is the STA packet information broadcast time threshold; T3 is the redundant time; R1 is the NTB value conversion coefficient.
[0009] Obtaining the NTB interval unit value of the current STA group through the following formula: NTB interval unit value = (A + B × (C - 1)) × R2 Where, A is the NTB interval fixed configuration time, B is the communication topology hierarchy error time, C is the maximum value in the communication topology hierarchy of each group member of the current STA group, and R2 is the NTB interval unit value conversion coefficient.
[0010] Setting the group member serial numbers of the group members of the current STA group in descending or ascending order according to the TEI values of the group members of the current STA group.
[0011] Optionally, before sending the STA packet information to the STAs of the dual-mode carrier communication system, it further includes: dividing the STA packet information into several data packets, adding the total number of data packets and the data packet serial number to each data packet, and adding service function configuration parameters to the data packet with the data packet serial number being the first or the last.
[0012] Optionally, triggering the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value, and its own group member serial number in the target packet information includes: obtaining the execution NTB value through the following formula: Execution NTB value = A1 + B1 × C1 × R1 Among them, A1 is the NTB reference value in the target grouping information, B1 is the NTB interval unit value in the target grouping information, and C1 is the serial number of its own group members in the target grouping information; R1 is the NTB value conversion coefficient.
[0013] Optionally, when sending the STA grouping information to the STA of the dual-mode carrier communication system, when the number of group members of the STA grouping information is less than the preset number threshold, the STA grouping information is sent to the group members of the STA grouping information by using the point-to-point communication method, and the feedback information sent by the group members based on the STA grouping information is received, and the STA grouping information is continuously sent to the target group members until the STA grouping information broadcast time is reached; where the target group members are the group members who have not sent feedback information.
[0014] Optionally, it further includes: broadcasting packet confirmation information to the STA of the dual-mode carrier communication system; where the packet confirmation information is used to trigger the STA to detect whether it is included in the group members of the received STA grouping information, and when it is included, no processing is performed, when it is not included, it detects whether all the STA grouping information has been received, and when all the STA grouping information has been received, no processing is performed, when not all the STA grouping information has been received, it waits for a preset time, and when not all the STA grouping information has been received after the preset time, a feedback information indicating the missing STA grouping information is generated and fed back; it is also used to trigger the STA with the communication type of PCO to broadcast the packet confirmation information to the STA that is included in the STA grouping information and is connected to the STA when the group members of the received STA grouping information include the STA connected to the STA; when the feedback information is received, it detects whether the STA grouping information broadcast time has timed out, and when the STA grouping information broadcast time has timed out, no processing is performed, when the STA grouping information broadcast time has not timed out, the STA grouping information with broadcast failure is obtained according to the feedback information and broadcast to the STA of the dual-mode carrier communication system.
[0015] In a second aspect of the present invention, there is provided a task scheduling system for a dual-mode carrier communication system, comprising: a grouping module configured to obtain STA grouping information of the dual-mode carrier communication system; a broadcasting module configured to send the STA grouping information to the STAs of the dual-mode carrier communication system; wherein the STA grouping information is used to trigger an STA to obtain an execution NTB value according to the NTB reference value, the NTB interval unit value in the target grouping information and its own group member serial number, and to execute the service function instruction in the target grouping information when its own NTB value reaches the execution NTB value; wherein the target grouping information is the STA grouping information in which the group members include itself; and is further used to trigger an STA with a communication type of PCO to send the STA grouping information to the STA connected downstream of itself and included in the STA grouping information when the STA connected downstream of itself is included in the group members of the STA grouping information.
[0016] In a third aspect of the present invention, there is provided a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the above-mentioned task scheduling method for a dual-mode carrier communication system are implemented.
[0017] In a fourth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned task scheduling method for a dual-mode carrier communication system are implemented.
[0018] Compared with the prior art, the present invention has the following beneficial effects: The task scheduling method for the dual-mode carrier communication system of the present invention obtains the STA packet information of the dual-mode carrier communication system, then sends the STA packet information to the STA of the dual-mode carrier communication system, and enables the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value and its own group member serial number in the target packet information, and when its own NTB value reaches the execution NTB value, execute the service function instruction in the target packet information, realizing the unified coordinated scheduling of a large number of STAs, providing a new way for the functional logic scheduling and data interaction of the batch devices in the dual-mode carrier communication system. By grouping and sorting the STAs and combining the NTB values maintained by each STA itself, finally, in the case where the STAs in the dual-mode carrier communication system cannot directly communicate, the logic of the specified STA executing the corresponding service function instruction at the required time sequence is realized. At the same time, combined with the branch broadcast of the STA with the communication type of PCO, the communication time of the STA packet information is further shortened, and the interference to other lines is reduced. Generally speaking, the task scheduling method for the dual-mode carrier communication system of the present invention not only enhances the reliability and stability of the dual-mode carrier communication system, but also greatly reduces the time-consuming of the interaction process, and improves the overall task execution efficiency and response speed of the dual-mode carrier communication system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the conventional architecture of the dual-mode carrier communication system.
[0020] Figure 2 It is a flowchart of the task scheduling method for the dual-mode carrier communication system according to the embodiment of the present invention.
[0021] Figure 3 It is a schematic diagram of STA grouping according to the embodiment of the present invention.
[0022] Figure 4 It is a schematic diagram of the time axis of the reference NTB value according to the embodiment of the present invention.
[0023] Figure 5 It is a schematic diagram of the time axis of the execution NTB value according to the embodiment of the present invention.
[0024] Figure 6 It is a schematic diagram of the process of STA packet information distribution and confirmation according to the embodiment of the present invention.
[0025] Figure 7 It is a structural block diagram of the task scheduling system for the dual-mode carrier communication system according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0026] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings: See Figure 1 , which shows the conventional architecture of a dual-mode carrier communication system. The dual-mode carrier communication system generally includes a concentrator, a CCO, and an STA. The STA includes an STA with a communication type of PCO and an STA with a common communication type. Here, for the convenience of representation and description, the STA with a communication type of PCO is denoted as PCO. As a special STA, PCO can act as a communication agent between a common STA and the CCO.
[0029] Among them, the concentrator is connected to the CCO through a serial port and is used to send and receive interactive instruction data. The CCO is used to control the networking of the entire dual-mode carrier communication system and the STA communication. The concentrator and the gateway issue instructions to control the CCO to execute the task scheduling process. The STA is a communication node of the dual-mode carrier communication system, and uses a service serial port to implement device interaction data such as household meters and intelligent switches, and communicates with the CCO through PLC (Power Line Communication) or RF (Radio Frequency).
[0030] Typically, the CCO maintains a 32-bit timer as the Network Time Base (NTB). Its clock is provided by the CCO's 25 MHz clock. Both the PCO and the STA locally maintain a 32-bit timer, which should be synchronized with the CCO's timer in terms of frequency and absolute value, that is, the NTB value of the CCO (NTB_CCO), the NTB value of the PCO (NTB_PCO), and the NTB value of the STA (NTB_STA) are kept synchronized. The synchronized NTB values are sent by the CCO in the beacon timestamp in the central beacon. Each bit of the 32-bit timer can represent 1 / 25000000 seconds, so it can cycle through a total of 171.7986918 seconds.
[0031] See Figure 2 , in an embodiment of the present invention, a task scheduling method for a dual-mode carrier communication system is provided. Based on the combined application of grouping and NTB values, the logic of enabling a specified STA to execute corresponding service function instructions at the required timing is finally realized when STA in the dual-mode carrier communication system cannot directly communicate with each other.
[0032] Specifically, the task scheduling method for the dual-mode carrier communication system of the present invention includes the following steps: S1: Obtain the STA grouping information of the dual-mode carrier communication system.
[0033] S2: Send the STA grouping information to the STA of the dual-mode carrier communication system.
[0034] Among them, the STA grouping information is used to trigger the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value, and its own group member serial number in the target grouping information, and to execute the service function instruction in the target grouping information when its own NTB value reaches the execution NTB value; among them, the target grouping information is the STA grouping information in which the group members include itself; it is also used to trigger the STA with the communication type of PCO to send the STA grouping information to the STA that is connected below itself and included in the STA grouping information when the group members of the STA grouping information include the STA connected below itself.
[0035] The task scheduling method for the dual-mode carrier communication system of the present invention obtains the STA packet information of the dual-mode carrier communication system, then sends the STA packet information to the STA of the dual-mode carrier communication system, and enables the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value in the target packet information and its own group member serial number, and when its own NTB value reaches the execution NTB value, execute the service function instruction in the target packet information, so as to realize the unified coordinated scheduling of a large number of STAs, and provide a new way for the functional logic scheduling and data interaction of a batch of devices in the dual-mode carrier communication system. By grouping and sorting the STAs and combining the NTB values maintained by each STA itself, finally, in the case where the STAs in the dual-mode carrier communication system cannot directly communicate, the logic of enabling the specified STA to execute the corresponding service function instruction at the required time sequence is realized. At the same time, combined with the branch broadcast of the STA with the communication type of PCO, the communication time of the STA packet information is further shortened, and the interference to other lines is reduced. Generally speaking, the task scheduling method for the dual-mode carrier communication system of the present invention not only enhances the reliability and stability of the dual-mode carrier communication system, but also greatly reduces the time consumption of the interaction process, and improves the overall task execution efficiency and response speed of the dual-mode carrier communication system.
[0036] Explanatory, when using the STA with the communication type of PCO for branch forwarding, only when the STA directly connected below itself is included in the group members of the STA packet information, the STA packet information is sent to the STA directly connected below itself and included in the STA packet information, and when the STA directly connected below itself is not included in the group members of the STA packet information, there is no need to perform branch forwarding, so as to effectively reduce the communication interference in the dual-mode carrier communication system and further improve the communication reliability and efficiency of the dual-mode carrier communication system.
[0037] Explanatory, when sending the STA packet information to the STA of the dual-mode carrier communication system, it can be sent in a point-to-point manner according to the actual situation, or in a broadcast manner. Among them, when using the broadcast method for sending, when sending the STA packet information to the STA directly connected below itself and included in the STA packet information, the broadcast method can also be used together.
[0038] In a possible implementation manner, obtaining the STA packet information of the dual-mode carrier communication system includes: for the STAs that need to be packetized in the dual-mode carrier communication system, grouping them in the order from the largest to the smallest of the communication topology levels of the dual-mode carrier communication system, and based on the requirement that the STAs in the same packet are the downstream STAs of the same PCO or the downstream STAs of the parent PCO of the PCO, to obtain several STA groups; where, the PCO is an STA with the communication type of PCO; traversing each STA group: setting the NTB reference value, NTB interval unit value, service function instruction and group member serial number of the current STA group, and constructing the STA packet information of the current STA group according to the NTB reference value, NTB interval unit value, service function instruction and group member serial number of the current STA group, in combination with the group member information of the current STA group.
[0039] Explanatory, first determine the STAs that need to be packetized in the dual-mode carrier communication system. Among them, the STAs that need to be packetized can be determined according to the specific service function to be executed, that is, the STAs with the same service function to be executed are grouped together as the STAs that need to be packetized. In addition, if there are STAs that have been packetized and successfully executed the specified service function among the STAs with the same service function to be executed, they can no longer be packetized, that is, removed from the STAs that need to be packetized, while the STAs that have been packetized but have not successfully executed the specified service function can be re-added to the STAs that need to be packetized to re-perform the grouping and configure the packet information parameters to ensure the service function execution rate.
[0040] When performing the grouping of STAs, start from the largest to the smallest of the communication topology levels of the dual-mode carrier communication system. Generally, it is default to start grouping from the level with the largest communication topology level. Of course, it can also start grouping from the communication topology level of level 1 by modifying the configuration (where level 0 is the CCO). In addition, when grouping, it is necessary to be based on the communication topology structure, that is, the STAs in the same packet satisfy: either they are the downstream STAs of the same PCO, or they are the downstream STAs of the parent PCO of the PCO. Exemplarily, the CCO assigns a unique TEI (Terminal Equipment Identifier) to each STA. See Figure 3 , in the STA group marked with the packet serial number 0x0200, the PCOs of the group members are all STAs with TEI 3. In the STA group marked with the packet serial number 0x0300, among the group members, for the STA with TEI 12, its PCO is the STA with TEI 7; for the STA with TEI 18, its PCO is the STA with TEI 13; at the same time, the PCO of TEI 13 is also the STA with TEI 7, that is, the parent PCO of the STA with TEI 18 is the STA with TEI 7.
[0041] In a possible implementation, setting the NTB reference value of the current STA group includes: obtaining the NTB reference value of the current STA group through the following formula: NTB reference value = T1 + (T2 + T3) × R1 Wherein, T1 is the current NTB value, T2 is the STA grouping information broadcast time threshold; T3 is the redundant time; R1 is the NTB value conversion coefficient.
[0042] Explanatorily, the NTB reference value means that all STAs use this value as a reference. The STA with the member serial number 1 in the group in the STA grouping information uses the NTB reference value as its execution NTB value, and executes the corresponding service function instruction when its own NTB value reaches the NTB reference value.
[0043] Exemplarily, the calculation method of the STA grouping information broadcast time threshold T2 includes but is not limited to methods such as dynamic calculation and fixed value length. Among them, the dynamic calculation method can be: T2 = ((100 × maximum communication topology level) ÷ average communication success rate + broadcast interval) × number of broadcasts, with the unit of millisecond. The fixed value length method can directly set the STA grouping information broadcast time threshold T2 to 20 seconds or 30 seconds, etc. Similarly, the calculation method of the redundant time T2 also includes but is not limited to methods such as dynamic calculation and fixed value length, and generally adopts the fixed value length method, for example, directly set to 10 seconds.
[0044] In a possible implementation, setting the NTB interval unit value of the current STA group includes: obtaining the NTB interval unit value of the current STA group through the following formula: NTB interval unit value = (A + B × (C - 1)) × R2 Wherein, A is the NTB interval fixed configuration time, B is the communication topology level error time, C is the maximum value in the communication topology levels of the members of each subgroup of the current STA group, and R2 is the NTB interval unit value conversion coefficient.
[0045] Explanatorily, when calculating the NTB interval unit value, the NTB interval fixed configuration time A generally adopts 200 milliseconds. At the same time, for different STA groups, the NTB error caused by the communication topology level is fully considered, and then the communication topology level error time B is introduced. In actual use, the error redundancy increases by about 100 milliseconds for each additional layer of the communication topology level. Therefore, the communication topology level error time B is generally set to 100 milliseconds.
[0046] Exemplarily, in this embodiment, the unit value of the NTB interval unit is 250,000, corresponding to a 32-bit timer that can represent 1 / 25,000,000 seconds per bit, corresponding to 10 milliseconds. When the time unit is milliseconds, the NTB value conversion coefficient in this embodiment is 25,000, and the NTB interval unit value conversion coefficient is 0.1.
[0047] Exemplarily, referring to Figure 4 , if the current NTB value T1 is 250,000,000, the STA packet information broadcast time threshold T2 is 40 seconds, and the redundant time T3 is 10 seconds, then the NTB reference value is: 1,500,000,000.
[0048] Exemplarily, if the communication topology levels of the STAs in the current STA group are all level 1, that is, the STAs are directly connected to the CCO for communication, then the NTB interval unit value of the current STA group is the NTB interval fixed configuration time A multiplied by the NTB interval unit value conversion coefficient R2, that is, the NTB interval unit value is 20. If the maximum communication topology level of the STAs in the current STA group is level 4, then the NTB interval unit value of the current STA group is (200 + 100 × (4 - 1)) × 0.1 = 50.
[0049] In addition, the overflow of the existing 32-bit counter can be optimized by further expanding the counter bit width or combining calendar time, etc., to adapt to a dual-mode carrier communication system with a large number of STAs.
[0050] In a possible implementation, setting the subgroup member serial numbers of the current STA group includes: setting the subgroup member serial numbers of the subgroup members of the current STA group in ascending or descending order according to the TEI values of the subgroup members of the current STA group.
[0051] Exemplarily, referring again to Figure 3 , in the STA group marked with the packet serial number 0x0200, according to the ascending order of the TEI values: the subgroup member serial number of the STA with TEI 6 is 1, the subgroup member serial number of the STA with TEI 7 is 2, and the subgroup member serial number of the STA with TEI 8 is 3. According to the descending order of the TEI values: the subgroup member serial number of the STA with TEI 6 is 3, the subgroup member serial number of the STA with TEI 7 is 2, and the subgroup member serial number of the STA with TEI 8 is 1.
[0052] In a possible implementation, when setting the service function instructions of the current STA group, it can be implemented based on the function ID specified in advance by the service function. For example, each value from 0 to 255 represents a preset service function, and the corresponding service function executed by this STA group is indicated by setting the value of the function ID.
[0053] In a possible implementation, before sending the STA packet information to the STA of the dual-mode carrier communication system, it further includes: dividing the STA packet information into several data packets, adding the total number of data packets and the data packet sequence number to each data packet, and adding service function configuration parameters to the data packet with the first or last data packet sequence number.
[0054] Explanatory, by dividing the STA packet information into several data packets to control the amount of transmitted data, the stability of data transmission is further increased. At the same time, by adding service function configuration parameters to the data packet with the first or last data packet sequence number, the parameter configuration of the service function is realized.
[0055] Exemplary, when the STA packet information is sent in the form of multiple data packets, when the data packets of the STA packet information are not completely received by the PCO, the PCO can also send the received data packets to the STA connected below itself, so that when the missing data packets are retransmitted later, the STA connected below the PCO can obtain the complete STA packet information, thereby ensuring data integrity.
[0056] In addition, the number of retransmissions can also be added to the STA packet information. The number of retransmissions is used to represent the number of times the STA executes the service function instruction. Setting it to 0 means not executing repeatedly, 1 means repeating once, and so on.
[0057] Exemplary, referring to Table 1, it shows the content included in a feasible way of the STA packet information: Table 1
[0058] Among them, the STA has a unique MAC (Media Access Control) address in the dual-mode carrier communication system, which is used to accurately identify different STAs in the packet information.
[0059] In a possible implementation, the triggering of the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value and its own group member sequence number in the target packet information includes: Obtain the execution NTB value through the following formula: Execution NTB value = A1 + B1 × C1 × R1 Wherein, A1 is the NTB reference value in the target packet information, B1 is the NTB interval unit value in the target packet information, C1 is the sequence number of its own group member in the target packet information; R1 is the NTB value conversion coefficient.
[0060] Explanatory, referring to Figure 5After the STA receives the STA packet information containing itself, i.e., the target packet information, it calculates its own execution NTB value based on the NTB reference value, NTB interval unit value of the target packet information, and its own packet member serial number, and then calculates the time to wait by combining its current NTB value, and executes the service function instruction when its NTB value reaches the execution NTB value.
[0061] In a possible implementation manner, when sending the STA packet information to the STA of the dual-mode carrier communication system, when the number of members of the STA packet information is less than a preset number threshold, the STA packet information is sent to the members of the STA packet information by using a point-to-point communication method, and the feedback information sent by the members based on the STA packet information is received, and the STA packet information is continuously sent to the target members until the STA packet information broadcast time is reached; wherein, the target members are the members who have not sent feedback information.
[0062] Explanatory, when the number of members of the STA packet information is less than a preset number threshold, a point-to-point communication method is used to issue the STA packet information to ensure stable and reliable communication, and when the number of members of the STA packet information is not less than the preset number threshold, the STA packet information can be issued by using a broadcast method to reduce the issue time consumption.
[0063] Exemplarily, in the dual-mode carrier communication system, the STA packet information can be issued through RF or PLC. And it is default to send only one STA packet information at a time. Specifically, when issuing the STA packet information, all the STA packet information can be sent at once, or only one STA packet information can be issued separately. In addition, there may be a situation where the members of the packet do not accurately receive the STA packet information containing themselves before the STA packet information issue times out due to communication failure. In this case, the members who have not received the STA packet information are regrouped according to the above method.
[0064] In a possible implementation, the task scheduling method for the dual-mode carrier communication system further includes: broadcasting packet acknowledgment information to the STAs of the dual-mode carrier communication system; wherein, the packet acknowledgment information is used to trigger an STA to detect whether it is included in the member of the received STA packet information, and if it is included, no processing is performed; if it is not included, it detects whether all the STA packet information has been received, and if all the STA packet information has been received, no processing is performed; if not all the STA packet information has been received, it waits for a preset time, and if not all the STA packet information has been received after the preset time, it generates feedback information indicating the missing STA packet information and feeds it back; it is also used to trigger an STA with a communication type of PCO to send the packet acknowledgment information to the STA that is downstream of itself and included in the STA packet information when the member of the received STA packet information includes the STA downstream of itself; when receiving the feedback information, it detects whether the broadcast time of the STA packet information has timed out, and if the broadcast time of the STA packet information has timed out, no processing is performed; if the broadcast time of the STA packet information has not timed out, it obtains the STA packet information with broadcast failure according to the feedback information and broadcasts it to the STAs of the dual-mode carrier communication system.
[0065] Explanatory, through the packet acknowledgment information, it is possible to confirm whether each STA has accurately received the STA packet information, so as to ensure that the STAs that need to receive the STA packet information accurately receive the STA packet information, and it is also possible to re-transmit the STA packet information for the STAs with receiving failures, so as to ensure the reliable execution of the scheduling task.
[0066] Exemplarily, when the STA packet information includes service function configuration parameters, the packet acknowledgment information is further used to trigger an STA to detect whether it and the service function configuration parameters are included in the member of the received STA packet information, and if it is included and the service function configuration parameters are included, no processing is performed; if it is not included or the service function configuration parameters are not included, it detects whether all the STA packet information has been received, and if all the STA packet information has been received, no processing is performed; if not all the STA packet information has been received, it waits for a preset time, and if not all the STA packet information has been received after the preset time, it generates feedback information indicating the missing STA packet information and feeds it back.
[0067] In a possible implementation, refer to Figure 6 , which shows the process of sending STA packet information, packet acknowledgment information to the STAs of the dual-mode carrier communication system by the COO and receiving the feedback information.
[0068] Specifically, it includes the following detailed steps: Step 1: The CCO determines whether the number of members of the STA packet information to be sent is less than a preset number threshold. When the number of members of the STA packet information is less than the preset number threshold, the CCO uses a point-to-point communication method to send the STA packet information to the members of the STA packet information, and divides the STA packet information into multiple data packets for sending when sending. When the members receive it, they need to immediately reply with feedback information, and the feedback information includes the packet sequence number of the received data packet. If the CCO does not receive the feedback information after the timeout, it will retransmit the STA packet information until the maximum number of retransmissions is reached, and determine whether the sending time has timed out. If the sending time has not timed out, it will send the STA packet information to the next member, and so on until all data packets of the STA packet information are sent to all members and feedback information is obtained or the sending times out, and the process ends. When the number of members of the STA packet information is less than the preset number threshold, it enters Step 2.
[0069] Step 2: The CCO broadcasts and sends each data packet of each STA packet information in sequence according to the packet sequence number of the STA packet information. Based on the STA packet information, the STAs and PCOs in the communication topology need to perform corresponding processing. Among them, the STA needs to record after receiving the STA packet information; after the PCO receives the STA packet information, while recording the STA packet information, it also needs to parse the content of the received STA packet information. If the members include the STAs connected to the PCO, it will perform broadcast forwarding, otherwise it will not perform broadcast, so as to reduce the communication interference in the carrier network and improve the communication reliability and efficiency. Repeat the above process until the CCO finishes sending the STA packet information and then enters Step 3.
[0070] Step 3: The CCO determines whether the number of loop broadcasts is less than a preset value. If the number of loop broadcasts is less than the preset value, it will repeat Step 2. If the number of loop broadcasts is not less than the preset value, it will enter Step 4.
[0071] Step 4: The CCO broadcasts and sends packet confirmation information. Based on the packet confirmation information, the STAs and the PCO in the communication topology need to perform corresponding processing. Among them, for an STA, it is necessary to determine whether the member of the packet in the STA packet information that has been received and saved contains itself. If it does, it indicates that it has received its own packet content and no processing is required; if it does not, it is further necessary to determine whether all STA packet information has been received. If all has been received, it indicates that its own packet is not included in the current STA packet information and no processing is required; if not all has been received, it is necessary to wait for a set time T. The calculation method of the set time T includes but is not limited to set time T = the TEI of this STA × (broadcast interval time ÷ total number of STAs). Then, it sends the data packet sequence number of the missing STA packet information to the CCO. After the processing is completed, it enters Step 5. For the PCO, first, it determines whether the member of the packet in the STA packet information that has been received and saved contains itself. If it does, it indicates that it has received its own packet content and does not send the missing information to the CCO; if it does not, it is further necessary to determine whether all STA packet information has been received. If all has been received, it indicates that its own packet is not included in the current STA packet information and does not send the missing information to the CCO; if not all has been received, it is necessary to wait for a set time T and then send the data packet sequence number of the missing STA packet information to the CCO. Second, if not all STA packet information has been received, it is necessary to broadcast and forward the packet confirmation information; if all has been received, it determines whether the member of the STA packet information that has been received and saved contains the STA connected below itself. If it does, it broadcasts and forwards the packet confirmation information; if it does not, it does not broadcast and forward. After the processing is completed, it enters Step 5.
[0072] Exemplarily, the method for determining whether all STA packet information has been received is as follows: Parse the total number of data packets and the data packet sequence number in the STA packet information, sort the data packet sequence numbers in all the data packets received by the STA in sequence and calculate the total number. When the total number matches the total number of data packets, it indicates that all data packets have been received.
[0073] In addition, when the STA packet information contains service function configuration parameters, the above-mentioned operation for the STA to determine whether the group members in the received and saved STA packet information include itself needs to be changed to that for the STA to determine whether the group members in the received and saved STA packet information include itself and whether they include service function configuration parameters. When it includes itself and service function configuration parameters, no processing is performed. Otherwise, it is detected whether all STA packet information has been received. When all STA packet information has been received, no processing is performed. When not all STA packet information has been received, wait for the set time T. And when not all STA packet information has been received after the set time T, feedback information indicating the missing STA packet information is generated and fed back. At the same time, the above-mentioned operation for the PCO to first determine whether the group members in the received and saved STA packet information include itself needs to be changed to that for the PCO to first determine whether the group members in the received and saved STA packet information include itself and whether they include service function configuration parameters. When it includes itself and service function configuration parameters, no processing is performed. Otherwise, it is detected whether all STA packet information has been received. When all STA packet information has been received, no processing is performed. When not all STA packet information has been received, wait for the set time T. And when not all STA packet information has been received after the set time T, feedback information indicating the missing STA packet information is generated and fed back.
[0074] Step 5: The CCO waits for the missing packet sequence numbers sent by the STA within the beacon interval time, and then determines whether the broadcast times of the packet confirmation information are less than the corresponding preset values. If the broadcast times of the packet confirmation information are less than the corresponding preset values, repeat Step 4. If the broadcast times of the packet confirmation information are not less than the corresponding preset values, proceed to Step 6.
[0075] Step 6: The CCO determines based on the received missing packet sequence numbers whether it has received the missing packet sequence numbers sent by the group members. If it has received, it indicates that there is an STA that has not received the complete STA packet information and does not know whether it is in the STA group, and proceed to Step 7. If it has not received, the process indicates that all group members have received the STA packet information completely, and the process ends.
[0076] Step 7: The CCO determines whether the sending process duration times out. If the sending process duration does not time out, update the STA packet information to be sent to the packet corresponding to the missing packet sequence number and proceed to Step 1. If the sending process duration times out, that is, reaches the STA packet information broadcast time threshold, the process ends.
[0077] The following is the device embodiment of the present invention, which can be used to execute the method embodiment of the present invention. For the details not disclosed in the device embodiment, please refer to the method embodiment of the present invention.
[0078] See Figure 7 , in another embodiment of the present invention, a task scheduling system for a dual-mode carrier communication system is provided, which can be used to implement the above-mentioned task scheduling method for a dual-mode carrier communication system. Specifically, the task scheduling system for a dual-mode carrier communication system includes a grouping module and a broadcasting module.
[0079] Among them, the grouping module is used to obtain the STA grouping information of the dual-mode carrier communication system; the broadcasting module is used to send the STA grouping information to the STAs of the dual-mode carrier communication system; among them, the STA grouping information is used to trigger the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value in the target grouping information and its own group member serial number, and when its own NTB value reaches the execution NTB value, execute the service function instruction in the target grouping information; among them, the target grouping information is the STA grouping information in which the group members include itself; it is also used to trigger the STA with the communication type of PCO to send the STA grouping information to the STA that is connected below itself and included in the STA grouping information when the group members of the STA grouping information include the STA connected below itself.
[0080] All relevant contents of each step involved in the embodiment of the foregoing task scheduling method for a dual-mode carrier communication system can be cited in the function description of the corresponding functional module of the task scheduling method system for a dual-mode carrier communication system in the embodiment of the present invention, and will not be elaborated here.
[0081] The division of modules in the embodiments of the present invention is illustrative, merely a logical function division. In actual implementation, there may be other division methods. In addition, in each embodiment of the present invention, the functional modules can be integrated in one processor, or can exist independently physically, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
[0082] In another embodiment of the present invention, a computer device is provided. The computer device includes a processor and a memory. The memory is used to store a computer program. The computer program includes program instructions. The processor is used to execute the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, and is suitable for implementing one or more instructions. Specifically, it is suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function. The processor described in the embodiment of the present invention can be used for the operation of the task scheduling method of the dual-mode carrier communication system.
[0083] In another embodiment of the present invention, a storage medium is further provided, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is the memory device in the computer device and is used to store programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and, of course, the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, and the operating system of the terminal is stored in this storage space. And, one or more instructions suitable for being loaded and executed by the processor are also stored in this storage space. These instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor to implement the corresponding steps of the task scheduling method of the dual-mode carrier communication system in the above embodiments.
[0084] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0085] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0086] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implement the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0087] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 or multiple blocks.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: still can modify the specific implementation manners of the present invention or make equivalent replacements, and any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the protection scope of the claims of the present invention.
Claims
1. A task scheduling method for a dual-mode carrier communication system, characterized in that, Including: Obtaining STA packet information of a dual-mode carrier communication system; Sending the STA packet information to the STA of the dual-mode carrier communication system; Wherein, the STA packet information is used to trigger the STA to obtain an execution NTB value according to the NTB reference value, NTB interval unit value and its own group member serial number in the target packet information, and execute the service function instruction in the target packet information when its own NTB value reaches the execution NTB value; wherein, the target packet information is the STA packet information in which the group members include itself; it is also used to trigger the STA with the communication type of PCO to send the STA packet information to the STA that is connected downstream of itself and included in the STA packet information when the STA connected downstream of itself is included in the group members of the STA packet information.
2. The task scheduling method for the dual-mode carrier communication system according to claim 1, wherein, The obtaining of the STA packet information of the dual-mode carrier communication system includes: For the STAs that need to be grouped in the dual-mode carrier communication system, group them in the order from large to small of the communication topology levels of the dual-mode carrier communication system, and based on the requirement that the STAs in the same group are the STAs connected downstream of the same PCO or the STAs connected downstream of the parent PCO of the PCO, to obtain several STA groups; wherein, the PCO is the STA with the communication type of PCO; Traverse each STA group: set the NTB reference value, NTB interval unit value, service function instruction and group member serial number of the current STA group, and construct the STA packet information of the current STA group according to the NTB reference value, NTB interval unit value, service function instruction and group member serial number of the current STA group, in combination with the group member information of the current STA group.
3. The task scheduling method for the dual-mode carrier communication system according to claim 2, wherein Setting the NTB reference value, NTB interval unit value and group member serial number of the current STA group includes: Obtaining the NTB reference value of the current STA group through the following formula: NTB reference value = T1 + (T2 + T3) × R1 Wherein, T1 is the current NTB value, T2 is the STA packet information broadcast time threshold; T3 is the redundant time; R1 is the NTB value conversion coefficient; Obtaining the NTB interval unit value of the current STA group through the following formula: NTB interval unit value = (A + B × (C - 1)) × R2 Wherein, A is the NTB interval fixed configuration time, B is the communication topology level error time, C is the maximum value in the communication topology levels of the group members of the current STA group, R2 is the NTB interval unit value conversion coefficient; Set the group member serial numbers of the group members of the current STA group in the order from large to small or from small to large according to the TEI values of the group members of the current STA group.
4. The task scheduling method for the dual-mode carrier communication system according to claim 1, wherein Before sending the STA packet information to the STA of the dual-mode carrier communication system, it further includes: Dividing the STA packet information into several data packets, adding the total number of data packets and the data packet serial number to each data packet, and adding service function configuration parameters to the data packet with the data packet serial number being the first or the last.
5. The task scheduling method for a dual-mode carrier communication system according to claim 1, wherein The triggering the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value and its own group member serial number in the target packet information includes: Obtaining the execution NTB value through the following formula: Execution NTB value = A1 + B1 × C1 × R1 Among them, A1 is the NTB reference value in the target grouping information, B1 is the NTB interval unit value in the target grouping information, and C1 is the serial number of its own group members in the target grouping information; R1 is the NTB value conversion coefficient.
6. The task scheduling method for a dual-mode carrier communication system according to claim 1, characterized in that When sending the STA grouping information to the STA of the dual-mode carrier communication system, when the number of group members of the STA grouping information is less than the preset number threshold, the STA grouping information is sent to the group members of the STA grouping information by using the point-to-point communication method, and the feedback information sent by the group members based on the STA grouping information is received, and the STA grouping information is continuously sent to the target group members until the STA grouping information broadcast time is reached; among them, the target group members are the group members who have not sent feedback information.
7. The task scheduling method for the dual-mode carrier communication system according to claim 1, wherein It also includes: Broadcasting packet confirmation information to the STA of the dual-mode carrier communication system; among them, the packet confirmation information is used to trigger the STA to detect whether the group members of the received STA grouping information contain itself, and when it contains itself, no processing is performed, when it does not contain itself, it detects whether all the STA grouping information has been received, and when all the STA grouping information has been received, no processing is performed, when not all the STA grouping information has been received, it waits for a preset time, and when not all the STA grouping information has been received after the preset time, it generates feedback information indicating the missing STA grouping information and feeds it back; it is also used to trigger the STA with the communication type of PCO to broadcast the packet confirmation information to the STA under itself and included in the STA grouping information when the group members of the received STA grouping information contain the STA under itself. When the feedback information is received, it is detected whether the STA grouping information broadcast time has timed out, and when the STA grouping information broadcast time has timed out, no processing is performed, when the STA grouping information broadcast time has not timed out, the STA grouping information with broadcast failure is obtained according to the feedback information and broadcast to the STA of the dual-mode carrier communication system.
8. A task scheduling system for a dual-mode carrier communication system, characterized in that, It includes: A grouping module, which is used to obtain the STA grouping information of the dual-mode carrier communication system; A broadcasting module, which is used to send the STA grouping information to the STA of the dual-mode carrier communication system; Among them, the STA grouping information is used to trigger the STA to obtain the execution NTB value according to the NTB reference value, NTB interval unit value and the serial number of its own group members in the target grouping information, and when its own NTB value reaches the execution NTB value, execute the service function instruction in the target grouping information; among them, the target grouping information is the STA grouping information whose group members contain itself; it is also used to trigger the STA with the communication type of PCO to send the STA grouping information to the STA under itself and included in the STA grouping information when the group members of the STA grouping information contain the STA under itself.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it realizes the steps of the dual-mode carrier communication system task scheduling method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it realizes the steps of the dual-mode carrier communication system task scheduling method according to any one of claims 1 to 7.