WO2022001867A1 - 一种电力线通信plc方法及装置 - Google Patents
一种电力线通信plc方法及装置 Download PDFInfo
- Publication number
- WO2022001867A1 WO2022001867A1 PCT/CN2021/102345 CN2021102345W WO2022001867A1 WO 2022001867 A1 WO2022001867 A1 WO 2022001867A1 CN 2021102345 W CN2021102345 W CN 2021102345W WO 2022001867 A1 WO2022001867 A1 WO 2022001867A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- node
- information
- time slot
- indication information
- nodes
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/54—Systems for transmission via power distribution lines
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/54—Systems for transmission via power distribution lines
- H04B3/544—Setting up communications; Call and signalling arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/16—Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
Definitions
- the present application relates to the field of communication technologies, and in particular, to a PLC method and device for power line communication.
- Power line communication is a communication method that transmits data and media information through power lines.
- a PLC system generally includes a first node and a plurality of second nodes connected to the first node.
- the first node can be used as a modem in the PLC system, and during the communication process, in order to reduce information interference, the first node and each second node usually transmit information through different time slots.
- the time slots occupied by each second node are usually determined in a unified scheduling manner or a competition manner.
- the first node allocates time slots to each second node uniformly.
- the first node performs a dynamic bandwidth assignment (DBA) calculation every other media access control (MAC) cycle, through
- the DBA calculates to determine whether each second node can occupy the channel in the next MAC cycle, and accordingly generates and transmits medium access plan (MAP) information for bandwidth allocation, wherein the MAP information is used to indicate that in the next MAC cycle
- the second node of the time slot may be occupied.
- DBA dynamic bandwidth assignment
- MAC media access control
- Each second node can use the MAP information to determine whether it can occupy the time slot of the next MAC cycle.
- the second node that needs to send information listens to the occupancy of the channel, and when it detects that the channel is currently occupied, the second node waits for a period of time and then listens again; When the channel is idle, the second node determines that it can currently occupy the channel.
- the smoothness of the PLC network is not stable, and when the time slots occupied by each second node are determined in a unified scheduling manner, the MAP information is sometimes lost during the sending process.
- the second node cannot determine whether it can occupy the time slot of the next MAC cycle, so the second node will be in a waiting state in the next MAC cycle until the MAP information is obtained again. Therefore, this method will cause waste of transmission time, increase transmission delay, and reduce communication efficiency.
- each second node when the time slot occupied by each second node is determined through competition, if there are multiple second nodes that need to send information, the multiple second nodes will send information at the same time after detecting that the channel is idle, resulting in the occurrence of Information conflict affects the transmission of information and also reduces communication efficiency.
- embodiments of the present application provide a PLC method and device for power line communication.
- an embodiment of the present application provides a PLC method for power line communication.
- the method is applied to a PLC network, where the PLC network includes a first node and at least one other node, and the method includes:
- the first node generates first information, the first information includes first indication information, and the first indication information is used to indicate the time slot occupation sequence of the other nodes except the first node, and the The first indication information is also used to indicate whether the first node occupies the next time slot;
- the first node sends the first information.
- At least one second node in the PLC network can determine the time slot occupied by itself according to the first information sent by the first node, without the need for the first node to send MAP information in each MAC cycle, so it is subject to the instability of the PLC network.
- the impact is small, and the waste of transmission time and bandwidth can be reduced, the communication efficiency of the PLC network can be improved, and different nodes can occupy different time slots, thereby avoiding conflict of data information of different nodes.
- the first information further includes data information
- the other nodes include the second node
- the method further includes:
- the first node receives feedback information sent by the second node, where the feedback information includes second indication information and third indication information, and the second indication information is used to indicate whether the second node sending the feedback information is The data information is received correctly, and the third indication information is used to indicate whether the second node that sends the feedback information occupies the next time slot.
- the feedback information it can be determined whether the second node sending the feedback information will occupy the next time slot, if the third indication information indicates that the second node sending the feedback information will occupy the next time slot, then
- the first node and other second nodes in the PLC network do not occupy the next time slot, so that data information conflict of different nodes can be avoided.
- the third indication information is further used to indicate the time slot occupation sequence of nodes other than the second node that sends the feedback information.
- other nodes in the PLC network can also determine the time slots that can be occupied by themselves according to the third indication information.
- the first information is a data physical layer MSG PHY frame
- the MSG PHY frame includes a first frame header
- the first frame header includes the first indication information
- the feedback information is an acknowledgment physical layer ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the third indication information
- the first information further includes fourth indication information, where the fourth indication information is used to indicate whether the first node correctly receives the last piece of received information.
- the first information is an acknowledgment physical layer ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the fourth indication information
- the first information is an underlying physical layer Final PHY frame
- the Final PHY frame includes a third frame header
- the third frame header includes the first indication information
- An optional design also includes:
- the first node In the first time period after sending the first indication information, if the other nodes are in a silent state, the first node sends the first information again.
- the time slot occupation sequence is indicated by the difference between node identifiers, and the node identifiers include the identifier of the first node and the identifier of the second node.
- the data amount of the difference between the node identifiers is small, and the time slot occupation order is indicated by the difference between the node identifiers, which can save the data amount of the first information, reduce the occupation of network resources, and improve the Communication efficiency of PLC network.
- an embodiment of the present application provides a PLC method for power line communication.
- the method is applied to a PLC network, where the PLC network includes at least two nodes, and the at least two nodes include a first node and a second node.
- the methods described include:
- the second node receives first information, the first information includes first indication information, and the first indication information is used to indicate the time slot occupation sequence of the other nodes except the first node, and the The first indication information is also used to indicate whether the first node occupies the next time slot;
- the second node determines to occupy the next time slot.
- the second node in the PLC network determines the time slots that can be occupied by itself according to the time slot occupation sequence indicated by the first information, so that the first node does not need to generate and send MAP information in each MAC cycle, and it is not affected by the PLC network.
- the influence of stability is small, and the waste of transmission time and bandwidth is reduced, communication efficiency can be improved, and information conflict of different nodes can be avoided.
- the at least two nodes further include a third node, and the method further includes:
- the second node If in the time slot occupation sequence indicated by the first indication information, the second node is ranked second in the time slot occupation sequence, and the third node is ranked first in the time slot occupation sequence , and the first indication information indicates that the first node will not occupy the next time slot, then the second node waits for the third node to finish sending data information, and then the second node occupies the first time slot again.
- the conflict between the data information sent by the second node and the data information sent by the third node can be avoided, and the communication efficiency of the PLC network can be improved.
- the at least two nodes further include a fourth node, and the fourth node also sends feedback information
- the method further includes:
- the second node If in the time slot occupation sequence indicated by the first indication information, the second node is ranked first in the time slot occupation sequence, and the first indication information indicates that the first node will not occupy the next one time slot, and when the feedback information sent by the fourth node indicates that the fourth node occupies the next time slot, the second node keeps a silent state in the next time slot.
- the second node when it is determined according to the feedback information sent by the fourth node that the fourth node occupies the next time slot, the second node keeps a silent state in the next time slot, thereby avoiding data sent by the second node
- the information conflicts with the data information sent by the fourth node, which improves the communication efficiency of the PLC network.
- An optional design also includes:
- the second node After the second node fails to parse the first indication information, it keeps a silent state.
- the first information further includes data information
- the method further includes:
- the second node is a receiving node of the data information included in the first information, and after receiving the first indication information, the second node sends feedback information through a first channel, the first channel and the The second channel is different, and the second channel is the channel occupied by the second node when sending data information through the time slot indicated by the time slot occupation sequence;
- the feedback information includes second indication information and third indication information, the second indication information is used to indicate whether the second node sending the feedback information correctly receives the data information, and the third indication information The information is used to indicate whether the second node sending the feedback information occupies the next time slot.
- the method further includes:
- each node in the PLC network is in a silent state, or after the fifth node completes the sending of data information, or the second node completes the After the data information is sent, the second node generates and sends the second information, wherein the fifth node is a node that is ranked in front of the second node in the time slot occupation sequence;
- the second information includes second indication information, where the second indication information is used to indicate the time slot occupation sequence of other nodes in the PLC network, and is also used to indicate whether the second node occupies the next time slot.
- the second node can also generate and send second information, so as to indicate the time slot occupation sequence of other nodes in the PLC network through the second information, so that other nodes in the PLC network can follow the instructions of the second information. , to determine the time slot that it can occupy.
- an embodiment of the present application provides a power line communication PLC device, the device is applied to a PLC network, the PLC network includes a first node and at least one other node, and the device includes:
- a processing unit configured to generate first information, where the first information includes first indication information, and the first indication information is used to indicate the time slot occupation sequence of the other nodes except the first node, where the The first indication information is also used to indicate whether the first node occupies the next time slot;
- a transceiver unit configured to send the first information.
- the first information further includes data information, and the other nodes include the second node;
- the transceiver unit is further configured to receive feedback information sent by a second node, where the feedback information includes second indication information and third indication information, where the second indication information is used to indicate the first node sending the feedback information. Whether the second node receives the data information correctly, the third indication information is used to indicate whether the second node that sends the feedback information occupies the next time slot.
- the third indication information is further used to indicate the time slot occupation sequence of other second nodes other than the second node that sends the feedback information, or to indicate the other second nodes and the Describe the time slot occupation sequence of the first node.
- the first information is a data physical layer MSG PHY frame
- the MSG PHY frame includes a first frame header
- the first frame header includes the first indication information
- the feedback information is an acknowledgment physical layer ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the third indication information
- the first information further includes fourth indication information, where the fourth indication information is used to indicate whether the first node correctly receives the last piece of received information.
- the first information is an acknowledgment physical layer ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the fourth indication information
- the first information is an underlying physical layer Final PHY frame
- the Final PHY frame includes a third frame header
- the third frame header includes the first indication information
- the transceiver unit is further configured to send the first information again.
- the time slot occupation sequence is indicated by a difference between node identifiers, and the node identifiers include an identifier of the first node and an identifier of the second node.
- an embodiment of the present application provides a PLC device for power line communication.
- the device is applied to a PLC network.
- the PLC network includes at least two nodes, and the at least two nodes include a first node and a second node.
- the device includes: a transceiver unit and a processing unit;
- the transceiver unit is configured to receive first information, where the first information includes first indication information, and the first indication information is used to indicate the time slot occupation sequence of the other nodes except the first node, The first indication information is further used to indicate whether the first node occupies the next time slot;
- the second node is ranked first in the time slot occupation sequence, and the first indication information indicates that the first node will not occupy the next a time slot, and the processing unit is configured to determine that the second node occupies the next time slot.
- the at least two nodes further include a third node
- the processing unit is further configured to wait for the third node to finish sending data information, and then determine the second node Re-occupy the time slot after the third node completes the sending of data information, or the processing unit is further configured to wait for the third node to be silent for a preset duration, and then determine that the second node occupies the preset duration later time slot.
- the at least two nodes further include a fourth node, and the fourth node also sends feedback information
- the processing unit is further configured to determine that the second node is silent in the next time slot state.
- the processing unit is further configured to, after the second node fails to parse the first indication information, determine that the second node remains in a silent state.
- the first information further includes data information
- the second node is a receiving node of the data information included in the first information
- the The transceiver unit is further configured to send feedback information through a first channel, where the first channel is different from the second channel, and the second channel is the time slot indicated by the second node through the time slot occupation sequence to send information. occupied channel;
- the feedback information includes second indication information and third indication information, the second indication information is used to indicate whether the second node sending the feedback information correctly receives the data information, and the third indication information The information is used to indicate whether the second node sending the feedback information occupies the next time slot.
- the second node is the last second node indicated by the time slot occupation sequence
- the processing unit is further configured to generate second information, wherein the fifth node is a node that is ranked before the second node in the time slot occupation sequence;
- the transceiver unit is further configured to send the second information
- the second information includes second indication information, where the second indication information is used to indicate the time slot occupation sequence of other nodes in the PLC network, and is also used to indicate whether the second node occupies the next time slot.
- an embodiment of the present application provides a terminal device, which is applied to a PLC network, the terminal device includes a processor and a memory, the memory stores a computer program, and the processor executes the computer program stored in the memory. A program, so that the terminal device executes the method according to the first aspect.
- an embodiment of the present application provides a terminal device, which is applied to a PLC network, the terminal device includes a processor and a memory, the memory stores a computer program, and the processor executes the computer program stored in the memory. a program, so that the terminal device executes the method according to the second aspect.
- an embodiment of the present application provides a readable storage medium, where the readable storage medium is used to store an instruction, and when the instruction is executed, the method according to the first aspect is implemented.
- an embodiment of the present application provides a readable storage medium, where the readable storage medium is used to store an instruction, and when the instruction is executed, the method according to the second aspect is implemented.
- an embodiment of the present application provides a computer program product containing instructions, when the computer program product is run on an electronic device, the electronic device can implement all or part of the embodiments corresponding to the first aspect step.
- an embodiment of the present application provides a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device can implement all or part of the embodiments corresponding to the second aspect step.
- an embodiment of the present application provides a power line communication PLC system, including:
- the PLC device according to the fourth aspect.
- An embodiment of the present application provides a PLC method.
- a first node in a PLC network generates and sends first information, wherein the first information includes first indication information, and the first indication information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information includes first indication information
- the first indication information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the
- the first target node needs to generate and send MAP information in each MAC cycle, and each second target node needs to generate and send MAP information according to the MAP information received in each cycle. , to determine whether it can occupy the time slot of the next MAC cycle.
- the first node after the first node generates the first information, other nodes in the PLC network can sequentially determine the time slots that can be occupied by themselves according to the time slot occupation sequence indicated by the first information.
- other nodes in the PLC network can determine the time slot occupied by themselves according to the first information sent by the first node, without the need for the first node to
- the MAC periodically sends the MAP information, so it is less affected by the instability of the PLC network, and can reduce the waste of transmission time and bandwidth, and improve the communication efficiency of the PLC network.
- the solution provided by the embodiment of the present application can reduce the conflict between data information of different nodes, and can correspondingly improve the communication efficiency.
- FIG. 1 is a schematic diagram of a scenario of time slot allocation disclosed in the prior art
- Fig. 2 is a scene schematic diagram of another time slot allocation disclosed in the prior art
- FIG. 3 is a schematic workflow diagram of a PLC method disclosed in an embodiment of the application.
- FIG. 4 is a schematic workflow diagram of another PLC method disclosed in an embodiment of the application.
- FIG. 5 is a schematic diagram of PHY information in a PLC method disclosed in an embodiment of the present application.
- FIG. 6 is a schematic workflow diagram of another PLC method disclosed in an embodiment of the application.
- FIG. 7 is a schematic workflow diagram of another PLC method disclosed in an embodiment of the application.
- FIG. 8 is a schematic diagram of information sent by each node in a PLC method disclosed in an embodiment of the present application.
- FIG. 9 is a schematic structural diagram of a PLC device disclosed in an embodiment of the application.
- FIG. 10 is a schematic structural diagram of another PLC device disclosed in an embodiment of the application.
- FIG. 11 is a schematic structural diagram of a terminal device disclosed in an embodiment of the present application.
- PLC is a communication method that transmits data and media information over power lines.
- a PLC network it usually includes multiple nodes.
- the PLC network usually includes a domain controller (domain master, DM) and an end node (end point, EP); in the IEEE1901.1 standard related to the PLC network,
- the PLC network usually includes a central coordinator (central coordinator, CCO), a station (station, STA) and the like.
- different nodes in order to reduce the interference between information of different nodes, different nodes usually transmit data information through different time slots, that is, different nodes occupy different time slots when performing data transmission.
- the time slots occupied by each node can be determined through unified scheduling or competition.
- the nodes in the PLC network are divided into a first target node and a second target node.
- the nodes in the PLC network include DM and EP
- the DM is the first target node
- the EP is the second target node
- the nodes in the PLC network include CCO and STA
- the CCO is the The first target node
- the STA is the second target node.
- the first target node uniformly allocates time slots to each of the second target nodes.
- the first target node performs a dynamic bandwidth assignment (DBA) calculation every other MAC cycle, and each second target node is determined through the DBA calculation. Whether the time slot of the next MAC cycle can be occupied, and MAP information is generated and sent accordingly.
- the MAP information is used to indicate the second target node that can occupy the time slot in the next MAC cycle.
- the MAP information usually includes the node identifier of each second target node and the corresponding relationship of the time slots that the second target node can occupy.
- each second target node in the PLC network After receiving the MAP information, each second target node in the PLC network determines the time slot that can be occupied by itself according to the MAP information and its own node identifier, so as to transmit data information through the time slot that can be occupied by itself. Specifically, the second target node queries the time slot corresponding to its own node identifier in the MAP information, and uses the time slot corresponding to its own node identifier as a time slot that it can occupy.
- the second target node if a certain second target node determines according to the MAP information that it can occupy a time slot in the next MAC cycle, the second target node usually occupies the time slot of the next MAC cycle to send data information. If one of the second target nodes determines according to the MAP information that it cannot occupy a time slot in the next MAC cycle, the second target node temporarily does not transmit data information.
- the first target node and the at least one second target node in the PLC network are usually plugged into the socket together with the plug of the household appliance, resulting in the problem of poor stability of the PLC network.
- the following factors will reduce the stability of the PLC network:
- the working state of household appliances will change.
- the washing machine will switch between the rinsing working state and the dehydrating working state during the working process, and the refrigerator will switch between the cooling working state and the heat preservation working state. Will shift etc.
- the noise generated by household appliances will also change, thus affecting the stability of the PLC network;
- Household appliances at work will cause channel changes.
- each second target node in the PLC network cannot obtain the MAP information of the MAC cycle.
- each second target node cannot determine the time slot that it can occupy within the MAC cycle. Therefore, even if the MAP information indicates that a certain second target node occupies the time slot of the next MAC cycle, the second target node will be in a waiting state in the next MAC cycle and cannot transmit data information until the second target node obtains the time slot again.
- MAP information The second target node needs to wait at least one MAC cycle before it can obtain the MAP information again. Therefore, within at least one MAC cycle, each second target node in the PLC network will be in a waiting state and cannot send data. information, which will cause waste of transmission time, increase the transmission delay, and reduce the transmission efficiency of the PLC network.
- each second target node when one MAC cycle is 40ms, if the MAP information generated by the first target node within a certain MAC cycle is lost, each second target node cannot determine which second target node can occupy the next target node according to the MAP information.
- the time slot of the MAC cycle In this case, each second target node is in a waiting state and will not send data information.
- each second target node needs to wait for at least one MAC cycle (that is, at least 40ms) before receiving the MAP information.
- the waiting time of each second target node causes the transmission delay of the PLC network to increase, which is wasted Transmission time, the transmission efficiency of the PLC network is reduced.
- each node in the PLC network can determine the time slot occupied by itself through competition.
- This scheme is usually based on carrier sense multiple access with collision avoidance (CSMA/CA) and carrier sense multiple access with collision avoidance. Listen to multiple access/collision detection (carrier sense multiple access with collision detectio, CSMA/CD) and other competition backoff mechanisms.
- CSMA/CA carrier sense multiple access with collision avoidance
- CSMA/CD carrier sense multiple access with collision detectio
- the node If it detects that the channel of the PLC network is currently occupied, the node will After waiting for a period of time, it will listen again; if it is detected that the channel of the PLC network is idle, the node will occupy the current time slot to send data information.
- the multiple nodes will listen to the occupancy of the channel of the PLC network, and when they sense that the channel of the PLC network is idle, the multiple nodes will monitor the occupancy of the channel of the PLC network. Each node will send data information. In this case, the data information sent by the multiple nodes will have information conflict, thereby affecting the transmission of information and reducing the communication efficiency of the PLC network.
- FIG. 2 a schematic diagram of the competition method shown in FIG. 2 is disclosed, wherein the rectangular box in FIG. 2 represents the channel.
- node 1 in the PLC network needs to send data
- node 1 will listen to the channel occupancy of the PLC network.
- the channel is occupied by node 2, therefore, the node 1 will detect that the channel is busy.
- the node 1 cannot occupy the current time slot to send data information, and the node 1 is waiting After time t1, the occupancy of the channel is monitored again.
- the node 1 listens again the channel is occupied by the node 3.
- the node 1 will still hear that the channel is busy. In this case, the node 2 waits for t2 and listens again. channel occupancy. If after time t2, the channel is not occupied by other nodes in the PLC network, the node 1 will detect that the channel is idle, so as to occupy the channel and send data information through the current time slot.
- the node 2 may also need to send data, so the node 2 will also monitor the channel occupancy.
- the node 1 detects that the channel is idle
- the node 2 also detects that the channel is idle, and in this case, the node 2 also occupies the channel to send data information. Therefore, the data information sent by the node 1 and the node 2 may collide, causing the data information of the node 1 and the node 2 to fail to be sent.
- the PLC method is applied to a PLC network
- the PLC network includes at least two nodes.
- at least two nodes may include a first node and at least one other node. It can be understood that, among the at least two nodes, nodes other than the first node may be referred to as other nodes.
- the at least one other node may further include a second node, a third node, a fourth node, and the like.
- the first node and the other nodes may be various forms of nodes in the PLC network.
- the first node and the other node may be the DM or EP in the PLC network;
- the A node and the other nodes may be CCOs or STAs in a PLC network.
- the types of the first node and the other nodes may be the same or different.
- the first node in the G.hn standard related to the PLC network, the first node may be a DM, and the other nodes may be an EP , or, some of the other nodes may be DMs, and the rest of the other nodes and the first node may be EPs; in the IEEE1901.1 standard related to PLC networks, some of the other nodes may be CCOs, and the rest of the other nodes may be CCOs
- the other nodes and the first node may be STAs, which are not limited in this embodiment of the present application.
- the first node and the other nodes may also be other types of nodes, which are not limited in this embodiment of the present application.
- the PLC method provided by the embodiment of the present application includes the following steps:
- Step S11 the first node generates first information.
- the first information includes first indication information, where the first indication information is used to indicate the time slot occupation sequence of the other nodes except the first node, and the first indication information is also used for Indicates whether the first node occupies the next time slot.
- the time slot refers to the time slice occupied by each node in the PLC network for data transmission, and the length of each time slot is usually 10*2n ns.
- the configuration of each node in the network the value range of n is usually 0 to 7.
- the value of n is 5.
- the length of each time slot is 10*25ns.
- the first node In a PLC network, the first node sometimes needs to send data information. In this case, the first node will occupy the time slot of the PLC network to send data information. In the solution provided by the embodiment of the present application, the first node An indication message may be used to indicate whether the first node occupies the next time slot.
- the other nodes in the PLC network are in a silent state and cannot occupy the time slot. After the first node finishes sending the data information, one of the other nodes can occupy the time slot, so as to avoid conflict of data information of different nodes.
- the first node may further determine the time slot occupation order of the other nodes in the PLC network, and indicate the time slot occupation order of the other nodes through the first indication information.
- the first indication information is used to indicate the time slot occupation sequence of the two or more other nodes; if there is only one other node in the PLC network, then The first indication information is used to indicate whether this other node can occupy the next time slot.
- the first indication information may also be used to indicate the number of other nodes corresponding to the time slot occupation sequence.
- the first indication information may further include a field, and the field may indicate the value of "five", which is used for Indicates that the first information indicates the time slot occupation order of five other nodes.
- Step S12 the first node sends the first information.
- the first node may generally send the first information in the form of broadcasting.
- the other nodes in the PLC network can acquire the first information, and determine the time slots that can be occupied by themselves according to the first information.
- the second node 1 determines whether the first node occupies the next time slot according to the first indication information, if the first The indication information indicates that the first node occupies the next time slot, and the second node 1 temporarily does not send data information through this time slot (that is, does not occupy this time slot). If a node does not occupy the next time slot, the second node 1 determines that it can occupy the next time slot.
- the second node 2 since in the time slot occupation sequence, the node preceding the second node 2 is the second node 2, the second node 2 monitors the data information transmission status of the second node 1, and if according to As a result of the monitoring, it is determined that the second node 1 has completed sending data information, or, according to the monitoring result, it is determined that the second node 1 has not sent information within a period of time, then the second node 2 determines that it can occupy the current time slot.
- the second node 3 monitors the data information transmission status of the second node 2 . If it is determined according to the monitoring result that the second node 2 has completed sending data information, or, according to the monitoring result, it is determined that the second node 2 has not sent data information within a period of time, the second node 3 determines that it Can occupy the current time slot.
- other nodes in the PLC network can determine the time slots that can be occupied by themselves, and complete the sending of data information through the time slots that can be occupied by themselves.
- An embodiment of the present application provides a PLC method.
- a first node in a PLC network generates and sends first information, wherein the first information includes first indication information, and the first indication information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information includes first indication information
- the first indication information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the first node occupies the next time slot.
- the first information uses It is used to indicate the time slot occupation order of the other nodes except the first node, and to indicate whether the
- the first target node needs to generate and send MAP information in each MAC cycle, and each second target node needs to generate and send MAP information according to the MAP information received in each cycle. , to determine whether it can occupy the time slot of the next MAC cycle.
- the first node after the first node generates the first information, other nodes in the PLC network can sequentially determine the time slots that can be occupied by themselves according to the time slot occupation sequence indicated by the first information.
- other nodes in the PLC network can determine the time slot occupied by themselves according to the first information sent by the first node, without the need for the first node to
- the MAC periodically sends the MAP information, so it is less affected by the instability of the PLC network, and can reduce the waste of transmission time and bandwidth, and improve the communication efficiency of the PLC network.
- the solution provided by the embodiment of the present application can reduce the conflict between data information of different nodes, and can correspondingly improve the communication efficiency.
- the first node may send the first information in various situations.
- the first information may be generated in the process of sending the data information, and the first information may further include data information, that is, the first information.
- the information includes first indication information and data information to be sent by the first node, so that the first indication information can be sent to each node in the PLC network in the process of data transmission.
- the method further includes the following steps:
- Step S13 the first node receives the feedback information sent by the second node.
- the feedback information includes second indication information and third indication information, the second indication information is used to indicate whether the second node sending the feedback information correctly receives the data information, and the third indication information The information is used to indicate whether the second node sending the feedback information occupies the next time slot.
- the other nodes include the second node, and at least one second node may be included in the other nodes.
- the destination node of the data information will send feedback information to the first node.
- the destination node of the data information may be one second node among the other nodes, or the destination node of the data information may be two or more second nodes among the other nodes.
- the node sending the feedback information may be a second node among the other nodes, or may be two or more second nodes among the other nodes.
- the first node may receive feedback information sent by at least one second node.
- the first information further includes data information
- the first information usually also includes a destination address of the data information
- the destination address is usually located in the frame header of the first information.
- other nodes in the PLC network receive the first information, and compare the destination address of the data information with its own address, if the other nodes in the other nodes receive the first information If the second node determines that its own address is the same as the destination address of the data information, the second node determines that it is the destination node of the data information, and sends feedback information to the first node.
- the feedback information includes second indication information and third indication information, where the second indication information is used to indicate whether the second node that sends the feedback information correctly receives the data information. If, through the second indication information, the first node determines that the second node that sent the feedback information did not correctly receive the data information, the first node may send the data information to the second node again.
- the third indication information is used to indicate whether the second node that sends the feedback information occupies the next time slot, and the second node that sends the feedback information usually sends the feedback information in a broadcast form, In this case, each node in the PLC network can usually receive the feedback information. If the third indication information indicates that the second node sending the feedback information will occupy the next time slot, nodes other than the second node sending the feedback information in the PLC network will not occupy the next time slot , to avoid conflict of data information of different nodes.
- the third indication information is also used to indicate the time slot occupation sequence of other nodes other than the second node sending the feedback information, or to indicate the time slots of the other second node and the first node. Occupancy order.
- the first information can be used to indicate the occupancy sequence of time slots
- the feedback information can also be used to indicate the occupancy sequence of time slots.
- the nodes in the PLC network may receive information sent by different nodes and used to indicate the order of time slot occupation, such as first information and feedback information. If a certain node in the PLC network receives information sent by different nodes to indicate the occupancy sequence of time slots, the node usually determines the time slots that it can occupy by using the most recently received information that can be used to indicate the occupied sequence of time slots.
- a certain node in the PLC network first receives the first information sent by the first node, and the first indication information in the first information indicates the time slot occupation of other nodes in the PLC network other than the first node Then, the node receives the feedback information of the second node in the PLC network, and the third indication information in the feedback information indicates the time slot occupation sequence of other nodes other than the second node that sent the feedback information , in this case, if the first information indicates that the first node does not occupy the next time slot, and the feedback information indicates that the sending node of the feedback information does not occupy the next time slot, the The nodes of the first information and the feedback information determine the time slots that can be occupied by themselves according to the time slot occupation sequence indicated by the third indication information in the feedback information.
- the first information generated by the first node may be of various types.
- the first information is a data physical layer (message physical frame, MSG PHY) frame
- the MSG PHY frame includes a first frame header
- the first frame header includes the first indication information.
- the first node if the first node needs to send data information to other nodes, the first node usually sends an MSG PHY frame, and the MSG PHY frame includes the data information that the first node needs to send.
- the first indication information may be loaded in the MSG PHY frame of the first node, the MSG PHY frame including the first indication information may be acquired, and the MSG PHY frame including the first indication information may be used as The first information, that is, the first information may be an MSG PHY frame.
- the first indication information is usually located in the first frame header of the MSG PHY frame, where the first frame header may be referred to as a physical layer frame (physical frame, PHY) frame header
- the first indication information is used to indicate whether the first node occupies the next time slot. If the first information is an MSG PHY frame, after receiving the first information, other nodes in the PLC network can determine the first indication information in the first frame header of the MSG PHY frame through the first indication information. Whether a node will occupy the next time slot. If the first indication information indicates that the first node will occupy the next time slot, the other nodes will not occupy the next time slot, so that the conflict of data information sent by nodes in the PLC network can be avoided.
- a "continue send flag” field may be included, and this field may occupy 1 bit.
- the "continue send flag” field When the first node needs to occupy the next time slot, in the "continue send flag” field.
- Set 1 in the "send flag” field when the first node does not need to occupy the next time slot, set 0 in the "continue send flag” field, or do not add any character in the "continue send flag” field.
- other nodes that have received the MSG PHY frame can determine whether the first node occupies the next time slot based on the "continue send flag" field in the first frame header of the MSG PHY frame.
- the feedback information may be an acknowledgement character physical frame (ACK PHY) frame.
- ACK PHY acknowledgement character physical frame
- a second frame header is included in the ACK PHY frame, and the second frame header includes the third indication information.
- the node in the PLC network can determine the second node that sends the feedback information through the third indication information included in the second header of the ACK PHY frame Whether to occupy the next time slot. Further, if the third indication information is also used to indicate the time slot occupation sequence of the node that receives the ACK PHY frame, the node in the PLC network can also determine its own occupation after receiving the ACK PHY frame. time slot.
- the first information includes data information
- the first information further includes fourth indication information, where the fourth indication information is used to indicate whether the first node correctly receives the last piece of received information.
- the first node may also receive data information sent by other nodes in the PLC network, and after receiving the data information sent by other nodes, if the first node determines that it is the data information the receiving node, the first node feeds back the first information including the fourth indication information.
- a certain other node in the PLC network sends data information to the first node, and the first node receives the data information sent by the other node and determines that it is the owner of the data information. After the receiving node, it is determined whether it has correctly received the data information sent by the other nodes, and the fourth indication information is determined accordingly.
- the first node also determines the first indication information according to whether it needs to occupy the next time slot and the time slot occupation sequence of other nodes in the PLC network. Then, the first node determines and sends the first information according to the first indication information and the fourth indication information.
- the first node if a piece of information received by the first node indicates that the sending node of the information will occupy the next time slot, the first node usually does not occupy the next time slot to avoid the occurrence of information conflict.
- the first information is usually an acknowledgement character physical frame (ACK PHY) frame
- ACK PHY acknowledgement character physical frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the first frame header.
- the first information may also be a final physical layer (final physical frame, Final PHY) frame.
- the Final PHY frame includes a third frame header, and the third frame header includes the first indication information.
- Each node in the PLC network may also send a Final PHY frame.
- the first information sent by the first node may be a Final PHY frame.
- the first node usually does not generate an MSG PHY frame, and in this case, the first information generated by the first node may be a Final PHY frame.
- the first information may be an MSG PHY frame, an ACK PHY frame or a Final PHY frame.
- the present application discloses an example of a PHY frame.
- the PHY frame may be as shown in FIG. 5 .
- the PHY frame usually includes a preamble field (ie, a preamble field), a frame header (ie, a header), an additional channel estimation (additional channel estimation, ace) field, and message protocol data.
- a preamble field ie, a preamble field
- a frame header ie, a header
- an additional channel estimation additional channel estimation, ace
- message protocol data ie, MPDU
- MPDU transmission protocol data unit
- IFG inter-frame gap
- the PHY frame header usually includes a frame type (frame type, FT) field, a frame-type specific field (frame-type specific field, FTSF) field and a reserved (ie reserved) field.
- FT frame type
- FTSF frame-type specific field
- reserved ie reserved
- the first indication information included in the first information may be loaded in any one of the FT field, the FTSF field, and the reserved field. If there is space in other fields in the PHY frame header, the first indication information may also be loaded in other fields with space, which is not limited in this embodiment of the present application.
- a new field may be extended in the PHY frame header, and the first indication information may be loaded in the extended new field.
- solutions provided by the embodiments of the present application may also adopt other forms of PHY frames, which are not limited in the embodiments of the present application.
- the first node needs to determine the time slot occupation sequence of other nodes in the PLC network, so as to generate the first information.
- the first node may determine the time slot occupation order of other nodes in the PLC network in various ways.
- the first node may determine the time slot occupation order of other nodes in the PLC network through dynamic bandwidth assignment (dynamic bandwidth assignment, DBA) calculation.
- dynamic bandwidth assignment dynamic bandwidth assignment
- the first node may determine, according to the feedback information, the data transmission requirement of the second node that sends the feedback information, and further determine the time slot occupation sequence according to the data transmission requirement of the second node.
- the first node after the first node sends the first information, it receives feedback information from the second node 1, the feedback information indicates that the second node 1 does not need to occupy the next time slot, and sends the first time slot again. After receiving a message, feedback information from the second node 2 is received, and the feedback information indicates that the second node 2 needs to occupy the next time slot. In this case, the first node may determine that the second node 1 does not need to occupy the next time slot. data is sent, and the second node 2 needs to send data.
- the time slot occupation order of the second node 2 is located in the time slot occupation order of the second node 1 prior to the sequence so that the second node 2 can preferentially occupy the time slot.
- the first node may jointly determine the time slot occupation sequence through DBA calculation and feedback information from the second node.
- the embodiment of the present application includes the following operations:
- Step S21 the first node determines the flow rate change rate of the PLC network.
- the flow of the PLC network refers to the size of the amount of data sent by the PLC network in a unit time, and the flow of the PLC network can usually be in megabits per second (million bits per second, Mbps) and gigabits per second (Mbps). It is expressed in units such as bits per second (gigabit bits per second, Gbps).
- the rate of change of the flow of the PLC network refers to the magnitude of the change of the flow of the PLC network.
- Step S22 the first node compares the rate of change of the flow of the PLC network with the first threshold, and determines whether the rate of change of the flow of the PLC network is greater than the first threshold, if so, perform the operation of step S23, if not, The operation of step S24 is performed.
- Step S23 When the rate of change of the flow of the PLC network is greater than the first threshold, the first node determines the time slot occupation sequence of the other nodes through the feedback information. Then, the operation of step S25 is performed again.
- the first node can determine to send the feedback through the feedback information Whether the second node of the information has data transmission requirements, and determines the time slot occupation sequence of the other nodes accordingly.
- Step S24 when the rate of change of the flow of the PLC network is not greater than the first threshold, the first node determines the time slot occupation sequence of the other nodes through DBA calculation. Then, the operation of step S25 is performed again.
- the first node can use the DBA calculation to determine the slot occupation order.
- Step S25 the first node generates and sends the first information.
- the time slot occupation order can be determined according to the network state of the PLC network.
- the DBA calculation method is used to determine the time slot occupation order.
- the time slot occupation sequence is determined through the feedback information, so that in the process of determining the time slot occupation sequence, the network state of the PLC network can be considered, so that the time slot occupation sequence determined by the first node can be determined. It is closer to the needs of each node in the PLC network.
- the first node In the first time period after sending the first indication information, if the other second nodes are in a silent state, the first node sends the first information again.
- a certain node is in a silent state, which means that the node does not send data information, but can receive data information.
- the first node can send the first information again, so as to avoid a phenomenon that other nodes in the PLC network cannot send data information because they have not received the first information.
- the duration of the first time period can generally be determined according to the number of other nodes in the PLC network, and generally, the greater the number of the other nodes, the longer the duration of the first time period.
- the first information is used to indicate the time slot occupation sequence of other nodes in the PLC network.
- the time slot occupation sequence of other nodes in the PLC network may be indicated by the node identifier of each node.
- the time slot occupation sequence is represented by a difference between node identifiers, and the node identifiers include the identifier of the first node and the identifiers of the other nodes, that is,
- the time slot occupation sequence is represented by the difference between the node identifier of the first node and the node identifiers of other nodes.
- other nodes in the PLC network can determine the node identifier of the first node through previous interactions with the first node.
- the other nodes after acquiring the first information, can The node identifier of the self and the node identifier of the first node can determine the time slot occupied by the self.
- the MAP information in the prior art generally includes the node identifiers of each node in the PLC network, and the time slots corresponding to the node identifiers.
- the difference between the node identifiers has a smaller amount of data. Therefore, by indicating the time slot occupation sequence by the difference between the node identifiers, it is possible to reduce the number of first The data volume of the information is further reduced, thereby further reducing the network resources required for the transmission of the first information and saving bandwidth resources.
- the first indication information may include the difference between the node identifiers sorted according to the time slot occupation order.
- the other nodes in the PLC network include the second node 1, the second node 2 and the second node 3, if the time slot occupation sequence is the second node 1, the second node 2 and the second node in sequence 3.
- the difference between the node identifiers of the second node 1 and the first node, the difference between the node identifiers of the second node 2 and the first node, and The differences between the node identifiers of the second node 3 and the first node are sorted in order.
- the time slot occupation sequence can be determined according to the order of the differences between the node identifiers in the first indication information.
- the first indication information may further include the sorting sequence number of the time slot occupation order corresponding to the difference between the node identifiers.
- the other nodes in the PLC network include the second node 1, the second node 2 and the second node 3, if the time slot occupation sequence is the second node 1, the second node 2 and the second node in sequence 3.
- the first indication information includes not only the difference between the node identifier of the first node and the node identifiers of the second node 1, the second node 2, and the second node 3, respectively, and It also includes a sorting sequence number of the time slot occupation order corresponding to each difference value, and the time slot occupation sequence of each second node is indicated by the sorting sequence number.
- the present application provides a PLC method through the above embodiments.
- a PLC method through the above embodiments.
- an example is disclosed below.
- the PLC includes a first node and at least one other node, the other nodes include three second nodes, and the three second nodes are the second node 1 , the second node 2 and the second node respectively 3.
- the first node may generate first information, where the first information includes first indication information, and the first indication information is used to indicate time slots of other nodes except the first node Occupancy sequence, and indicating whether the first node occupies the next time slot.
- the first node may also send the first information in a broadcast form.
- the first node may add the first indication information to the sent data information, and in this case, the first information also includes data information.
- the first information may be an MSG PHY frame, the MSG PHY frame includes a first frame header, and the first frame header includes the first indication information.
- the destination node of the data information may also send feedback information.
- the first node needs to send data information to the second node 1 , and the first information further includes the destination address of the second node 1 .
- the second node 2 and the second node 3 After receiving the first information, other nodes in the PLC network will determine whether they need to acquire the data information included in the first information based on the destination address included in the first information. In this case, the second node 2 and the second node 3 will determine that they do not need to obtain the data information, that is, the second node 2 and the second node 3 are not the receiving nodes of the data information, and the corresponding , the second node 2 and the second node 3 will not send feedback information.
- the second node 1 may determine that it needs to receive the data information contained in the first information, that is, the second node 1 is the data information
- the receiving node of therefore generates and sends feedback information.
- the feedback information usually includes second indication information and third indication information, wherein the second indication information is used to indicate whether the second node that sends the feedback information correctly receives the data information, and the first The three indication information is used to indicate whether the second node sending the feedback information occupies the next time slot.
- the second node 1 When the second node 1 generates the feedback information, if it is determined according to the first indication information included in the first information that the first node occupies the next time slot, the second node 1 usually does not The next time slot will be occupied to avoid information conflict between the second node 1 and the first node. Correspondingly, the third indication information will instruct the second node 1 not to occupy the next time slot. In addition, if it is determined according to the first indication information included in the first information that the first node does not occupy the next time slot, and the second node 1 needs to send data information to other nodes, the second Node 1 may occupy the next time slot, and correspondingly, the third indication information will indicate that the second node 1 occupies the next time slot.
- the second node 1 may also determine the time slot occupation sequence of other nodes (for example, the first node, the second node 2, and the second node 3), and use the third indication information to indicate the self-determined The order of slot occupancy of other nodes.
- the feedback information may be an ACK PHY frame, the ACK PHY frame includes a second frame header, and the second frame header includes the third indication information.
- the second node 1 may send the feedback information in a broadcast manner, so the first node, the second node 2 and the second node 3 usually receive the feedback information.
- the second node 2 and the second node 3 would receive different information indicating the order of timeslot occupancy, in which case the second node 2 and the second node 3 would normally be based on the most
- the information received late determines the time slot that it can occupy.
- the second node 2 and the second node 3 will receive the first information sent by the first node and the feedback information sent by the second node 1, and both the first information and the feedback information can indicate the order of time slot occupation , and the receiving time of the feedback information is late.
- the second node 2 and the second node 3 will determine the time slot that they can occupy according to the indication of the feedback information received later.
- the first information is an MSG PHY frame.
- the first node may also generate other forms of first information, where the first information includes fourth indication information in addition to the first indication information, The fourth indication information is used to indicate whether the first node correctly receives the last piece of received information.
- the first node receives data information sent by the second node 1, and the data information sent by the second node 1 includes the destination address of the first node.
- the first node The node may generate first information including fourth indication information, where the fourth indication information is used to indicate whether it has correctly received the data information sent by the second node 1 .
- the fourth indication information indicates that the first node has not correctly received the data information sent by the second node 1, after receiving the fourth indication information, the second node 1 will often The data information is sent to the first node again to prevent the first node from missing the data information.
- the first information may be an ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the fourth indication information
- the first information sent by the first node may also be a Final PHY frame, the Final PHY frame includes a third frame header, and the third frame header includes the first indication information.
- the first node detects the status of other nodes (eg, the second node 1, the second node 2, and the second node 3), if after sending the first information During the first time period, other nodes in the PLC network are in a silent state, and the first node sends the first information again.
- other nodes eg, the second node 1, the second node 2, and the second node 3
- a PLC method for power line communication is provided.
- the method is applied to a PLC network, and the PLC network includes at least two nodes.
- the at least two nodes include a first node and a second node, and the method includes:
- Step S31 the second node receives the first information.
- the first information includes first indication information, where the first indication information is used to indicate the time slot occupation sequence of the nodes other than the first node, and the first indication information is also used for Indicates whether the first node occupies the next time slot.
- the first node in the PLC network determines the time slot occupation sequence of other nodes other than the first node, and generates the first information accordingly. Then, the first node sends the first information in a broadcast form, so that other nodes in the PLC network can acquire the first information.
- the PLC network usually includes a first node and other nodes other than the first node, the other nodes include at least one second node, and the second node that executes the solutions of the embodiments of the present application may be the at least one second node. any one of the second nodes.
- the other nodes may further include a third node and/or a fourth node, etc., which is not limited in this embodiment of the present application.
- the PLC network includes a first node and other nodes other than the first node, and the first node and the other nodes may be any nodes in the PLC network.
- the first node and the other node may be the DM or EP in the PLC network; in the IEEE1901.1 standard related to the PLC network, the A node and the other nodes may be CCOs or STAs in a PLC network.
- the types of the first node and the other nodes may be the same or different.
- the first node in the G.hn standard related to the PLC network, the first node may be a DM, and the other nodes may be an EP , or, some of the other nodes may be DMs, and the rest of the other nodes and the first node may be EPs; in the IEEE1901.1 standard related to PLC networks, some of the other nodes may be CCOs, and the rest of the other nodes may be CCOs
- the other nodes and the first node may be STAs, which are not limited in this embodiment of the present application.
- the first node and the other nodes may also be other types of nodes, which are not limited in this embodiment of the present application.
- the second node may be a DM or an EP, or the second node may be a CCO or a STA.
- Step S32 if in the time slot occupation sequence indicated by the first indication information, the second node is ranked first in the time slot occupation sequence, and the first indication information indicates that the first node does not The next time slot will be occupied, and the second node determines to occupy the next time slot.
- the second node If the second node is ranked first in the time slot occupation sequence, it indicates that the second node can occupy the time slot after the first node does not occupy the time slot. In this case, if the first node does not occupy the time slot An indication information indicates that the first node will not occupy the next time slot, and the second node determines to occupy the next time slot.
- the second node occupies the next time slot, which means that if the second node needs to send data, the second node can occupy the next time slot to perform data transmission. Data transmission, if the second node has no demand for data transmission, the second node keeps a silent state in the next time slot.
- the second node determines whether the first node will occupy the next time slot according to the time slot occupation sequence indicated by the received first information, and, in the first When two nodes are ranked first in the time slot occupation sequence, and the first indication information indicates that the first node will not occupy the next time slot, the second node can occupy the next time slot. If the first node needs to send data, the second node can send data information through the next time slot.
- An embodiment of the present application provides a PLC method.
- a first node in a PLC network generates first information for indicating a time slot occupation sequence of a second node, and the second node in the PLC network can pass the The first information is to determine the time slot occupation sequence, and based on this, determine the time slot that can be occupied by itself.
- the second node in the PLC network determines the time slots that it can occupy according to the time slot occupation sequence indicated by the first information, so that the first node does not need to generate and send MAP information in each MAC cycle , compared with the existing first solution, in the solution provided by the embodiment of the present application, the information sent by the first node is reduced, so that it is less affected by the instability of the PLC network, and the waste of transmission time and bandwidth is reduced. Improve communication efficiency.
- the second node in the PLC network can determine the time slot occupation order according to the first information, so as to avoid the conflict of information of different nodes.
- the solution provided by the embodiment of the present application can also improve the communication efficiency of the PLC network.
- the MAP information includes the node identifier of each second node and the time slot corresponding to the node identifier, resulting in a large amount of data in the MAP information, and the first node needs to
- the MAP information is generated and sent once in each MAC cycle, and the MAP information is sent more frequently, thus consuming a large amount of bandwidth.
- the second node determines the time slot occupied by itself according to the first information generated by the first node, and the first node does not need to generate and send MAP information in each MAC cycle, thus reducing the need for the first node to send information
- the frequency of the first information is smaller than that of the MAP information. Therefore, compared with the existing first solution, the solution provided by the embodiment of the present application can also effectively reduce the waste of bandwidth.
- the at least two nodes further include a third node
- the method further includes:
- the second node If in the time slot occupation sequence indicated by the first indication information, the second node is ranked second in the time slot occupation sequence, and the third node is ranked first in the time slot occupation sequence , and the first indication information indicates that the first node will not occupy the next time slot, then the second node waits for the third node to finish sending data information, and then the second node occupies the first time slot again.
- the third node if the third node is silent for a preset duration, it indicates that the third node does not need to send data information, and in this case, the second node can occupy the time slot after the preset duration.
- the third node may occupy the next time slot .
- the second node may occupy the time slot after the third node completes the information sending, or the second node determines that the third node does not need to send data information, and the second node may occupy the Set the time slot after the duration.
- the at least two nodes further include a fourth node, and the fourth node also sends feedback information.
- the fourth node may be any node in the PLC network.
- the fourth node in the G.hn standard related to the PLC network, the fourth node may be a DM or EP, and in the IEEE1901.1 standard related to the PLC network, the fourth node may be a CCO or a STA. This embodiment of the present application This is not limited.
- the feedback information sent by the fourth node may include an indication of whether the fourth node needs to occupy the next time slot.
- the following steps are also included:
- the second node If in the time slot occupation sequence indicated by the first indication information, the second node is ranked first in the time slot occupation sequence, and the first indication information indicates that the first node will not occupy the next one time slot, and when the feedback information sent by the fourth node indicates that the fourth node occupies the next time slot, the second node keeps a silent state in the next time slot.
- the first indication information indicates that the first node will not occupy the next time slot, and the feedback information sent by the fourth node indicates that the fourth node occupies the next time slot, it indicates that the fourth node
- the next time slot may be used to transmit information.
- the second node keeps a silent state in the next time slot, so that the data information of the second node can be prevented from colliding with the data information sent by the fourth node.
- the second node may receive information sent by different nodes, and if the information sent by the sending node of one piece of information indicates that the sending node will occupy the next time slot, the second node will The two nodes usually do not occupy the next time slot, so as to avoid conflict between the data information sent by the second node and the data information sent by the sending node.
- the second node After the second node fails to parse the first indication information, it keeps a silent state.
- the second node After receiving the first information, the second node parses the first indication information included therein, so as to determine a time slot occupation sequence indicated by the first indication information according to the parsing result.
- failure may occur, for example, due to the impact of PLC network oscillation, the second node does not receive the complete first indication information, resulting in the first indication Parsing of the message failed.
- the second node After the second node fails to parse the first indication information, because the time slot occupied by itself cannot be determined through the first indication information, the second node keeps a silent state and does not send data information.
- the second node can usually determine the time slots that it can occupy again, and use its own Occupied time slots to send data information. For example, when the second node is in a silent state, the second node may also receive the first information sent again by the first node, and the second node may also receive feedback information sent by other nodes. The second node can determine the time slot that can be occupied by itself according to the first information and the feedback information sent again by the first node.
- the first information sent by the first node may be in various forms.
- the first information further includes data information.
- the second node after receiving the first information, the second node further determines whether it is the receiving node of the data information according to the destination address of the data information included in the first information , wherein, if the destination address of the data information included in the first information is the address of the second node, the second node is a receiving node of the data information.
- the method further includes the following steps:
- the second node After receiving the first indication information, the second node sends feedback information through the first channel.
- the first channel is different from the second channel, and the second channel is a channel occupied by the second node when sending data information through the time slot indicated by the time slot occupation sequence.
- a first channel is set for feedback information sent by each node
- the second channel is the channel occupied by the second node when sending data information through the time slot indicated by the time slot occupation sequence, that is, In other words, when each node in the PLC network sends data information and feedback information, the occupied channels are often different. Therefore, regardless of whether the time slot occupation sequence indicates whether a node can occupy a time slot, the node can send the data through the first channel. Feedback.
- the feedback information includes second indication information and third indication information, the second indication information is used to indicate whether the second node sending the feedback information correctly receives the data information, and the third indication information The information is used to indicate whether the second node sending the feedback information occupies the next time slot.
- the second node determines the third indication information according to its own data sending requirement. Wherein, if the first indication information received by the second node indicates that the first node needs to occupy the next time slot, the third indication information generally indicates that the second node does not occupy the next time slot. In addition, if the first indication information received by the second node does not indicate that the first node needs to occupy the next time slot and the second node needs to send data information, the third indication information usually indicates the The second node occupies the next time slot.
- the third indication information may only need to include a preset character. In this case, after receiving the feedback information, other nodes determine the time slots that they can occupy based on the time slot occupation order indicated by the first information.
- the feedback information since the feedback information only needs to include preset characters, the data amount of the feedback information can be reduced. Therefore, when transmitting the feedback information, less network resources are consumed, and the Reduce the occupation of bandwidth resources.
- the method further includes the following steps:
- each node in the PLC network is in a silent state, or after the fifth node completes sending the data information, or the second node completes the data information After the transmission, the second node generates and transmits the second information.
- the fifth node is a node that is ranked before the second node in the time slot occupation sequence.
- the second information includes second indication information, where the second indication information is used to indicate the time slot occupation sequence of other nodes in the PLC network, and is also used to indicate whether the second node occupies the next time slot.
- Other nodes in the PLC network can receive the second information, and after receiving the second information, determine the time slot that can be occupied by themselves according to the second indication information.
- the second node may also generate second information in the following situations:
- each node in the PLC network is in a silent state.
- each node in the PLC network If each node in the PLC network is in a silent state within the third time period after receiving the first indication information, it indicates that each node in the PLC network does not need to send data, or the PLC network does not need to send data.
- Each node in the network fails to parse the information used to indicate the occupied sequence of the time slots, so that the data information cannot be sent.
- the second node generates and sends the second information, so that other nodes in the PLC network can, according to the received second information, Determine the time slots that can be occupied by itself.
- the duration of the third time period is generally related to the number of nodes in the PLC network, and generally, the greater the number of nodes, the longer the duration of the third time period.
- the fifth node completes the sending of data information, wherein the fifth node is a node that is ranked in front of the second node in the time slot occupation sequence.
- the second node can occupy the next node time slot, in this case, the second node can generate and send the second information, so that other nodes in the PLC network can determine the time slot that can be occupied by themselves according to the second information.
- the second information may further include the data information that the second node needs to send.
- the second node Since the second node is the last second node indicated by the time slot occupation sequence, after completing its own data transmission, the second node can generate and send second information, so as to facilitate other nodes in the PLC network According to the second information, the time slot that can be occupied by itself is determined.
- the second information may be information in various forms, and in one possible implementation manner, the second information may be a final physical frame (final physical frame, Final PHY) frame.
- the second information may include the data information sent by the second node.
- the second information may also be MSG PHY frame.
- each node in the PLC network may receive different information for indicating the order of time slot occupation, such as first information, second information and feedback information. If a node receives two or more pieces of information for indicating the order of time slot occupation, the node usually determines the time slot that it can occupy according to the last received information.
- the PLC network includes a first node and at least one other node, the other nodes include three second nodes, and the three second nodes are the second node 1 , the second node 2 and the second node respectively.
- Node 3 in addition, other nodes in the PLC network may also include a third node, a fourth node, a fifth node, and the like.
- the first node may generate first information, where the first information includes first indication information, and the first indication information is used to indicate time slots of other nodes except the first node Occupancy sequence, and indicating whether the first node occupies the next time slot.
- the first node may also send the first information in a broadcast form.
- Other nodes in the PLC network may receive the first information.
- the second node 1 determines that it can occupy the next time slot. occupy the next time slot.
- the second node 2 If in the time slot occupation order indicated by the first indication information, the second node 2 is arranged in the second position of the time slot occupation order, and the third node is arranged in the time slot occupation order
- the first node that is, the third node is arranged in front of the second node 2
- the first indication information indicates that the first node will not occupy the next time slot
- the second node 2 will Monitoring the transmission of the data information of the third node, and occupying the time slot after the third node completes the transmission of the data information after the third node completes the transmission of the data information.
- the second node 2 waits for the third node to be silent for a preset period of time, The second node further occupies the time slot after the preset duration.
- the first information may further include data information
- the receiving node of the data information is a fourth node.
- the fourth node may further Sending feedback information, correspondingly, each node in the PLC network can receive the feedback information.
- the second node 1 If in the time slot occupation sequence indicated by the first indication information, the second node 1 is ranked first in the time slot occupation sequence, and the second node 1 determines through the feedback information If the fourth node occupies the next time slot, the second node 1 keeps a silent state in the next time slot to avoid conflict between the data information sent by itself and the data information sent by the fourth node.
- each second node in the PLC network fails to parse the first indication information, each second node keeps a silent state until receiving the next piece of information for indicating the order of time slot occupation, and then passes the The information received again determines the time slot that can be occupied by itself.
- the fourth node and the fifth node in the PLC network after the third node, the fourth node and the fifth node in the PLC network fail to parse the first indication information, they usually remain in a silent state until the next piece of information for indicating the order of time slot occupation is received. .
- the first information may include data information.
- other nodes in the PLC network other than the first node determine whether they are the The receiving node of data information.
- the second node 1 may also send feedback information through the second channel.
- the second node 1 can generate second information, so that other nodes can determine the time slots that can be occupied by themselves according to the second information.
- the second information may be a Final PHY frame.
- the second node 1 is the last second node indicated by the time slot occupation sequence, in the time slot occupation sequence, the node ranked first before the second node is the fifth node, and the second node The node 1 will monitor the data sending situation of the fifth node, and after the fifth node completes sending the data information, the second node 1 can generate and send the second information.
- the second information may be a Final PHY frame.
- the data information to be sent may be loaded in the second information, and in this case, the second information may also be an MSG PHY frame.
- the second node 1 may also generate and send the second information, which In this case, the second information may be a Final PHY frame.
- a node in the PLC network can often receive a plurality of pieces of information for indicating the order of time slot occupation, for example, the first information, the feedback information and the second information can be received. If a node receives two or more pieces of information that can be used to indicate the order of time slot occupation, the node usually determines the time slot that it can occupy by using the latest received information.
- FIG. 8 is a schematic diagram of information sent by each node in the PLC network.
- the PLC network includes four nodes, any one of which can be the first node, the remaining three nodes are the second nodes, and the three second nodes are the second node 1 and the second node 2 respectively. and the second node 3.
- the following steps are included:
- the first node generates and sends the first information.
- the first information may also include data information, and correspondingly, the first information may be an MSG PHY frame; in addition, if the first node needs to If feedback information is sent to other nodes, the first information may also be the feedback information, in this case, the first information may be an ACK PHY frame; or, the first information may also be a Final PHY frame .
- the first information further includes the destination address of the receiving node of the data information.
- the first information includes first indication information, where the first indication information is used to indicate the time slot occupation sequence of the nodes other than the first node, and the first indication information is also used to indicate the whether the first node occupies the next time slot, and the first indication information is usually located in the frame header of the first information.
- whether the first node occupies the next time slot can be indicated by the field "Continue send flag", and if the Continue send flag field is set to 1 , it means that the first node will occupy the next time slot. If the Continue send flag field is set to 0, it means that the first node will not occupy the next time slot. Among them, the Continue send flag field can usually occupy 1 bit.
- the time slot occupancy order of nodes other than the first node is indicated by a difference between the node identification of the first node and the node identification of the at least one second node, wherein the difference Values are arranged according to the slot occupancy order.
- the difference Values are arranged according to the slot occupancy order.
- the first information includes a plurality of “next send ID” (next send ID) fields arranged in sequence, and each field includes a node identifier corresponding to another node If the other nodes include the second node 1, the second node 2 and the second node 3, and the first node determines that the time slot occupation sequence is the second node 1, the second node 2 and the second node Node 3, then the first information includes at least three next send ID fields arranged in sequence, and the first next send ID field includes the difference between the node ID of the first node and the node ID of the second node 1 value, the second next send ID field contains the difference between the node ID of the first node and the node ID of the second node 2, and the third next send ID field contains the node ID of the first node and the first node ID The difference between the node identifiers of the two nodes 3. Among them, each next send ID field usually occupies 2 bits.
- the first information may further include a field for indicating the number of second nodes corresponding to the time slot occupation sequence.
- this field may be a "next node number" field, and if the The first information is only used to indicate the time slot occupation order of the three second nodes, and this field contains the value of "three".
- the first node After generating the first information, the first node sends the first information in a broadcast form, so that other nodes in the PLC network can obtain the first information.
- the first information includes data information
- other nodes in the PLC network determine whether they are based on the destination address of the receiving node of the data information in the first information. is the receiving node, and the receiving node generates and sends feedback information, where the feedback information includes second indication information and third indication information, where the second indication information is used to indicate the Whether the second node receives the data information correctly, the third indication information is used to indicate whether the second node that sends the feedback information occupies the next time slot.
- the second node 2 is set as the receiving node of the data information.
- the second node 2 after receiving the first information, the second node 2 generates and sends feedback information, wherein the The feedback information may be an ACK PHY frame.
- a "will send flag” (will send flag) field can be set, and this field indicates whether the second node sending the feedback information occupies the next time slot.
- the will send flag field is set to 1, it means that the second node that sends the feedback information will occupy the next time slot, and if the will send flag field is set to 0, it means that the second node that sends the feedback information does not. will occupy the next time slot.
- the will send flag field can usually occupy 1 bit.
- the second node 2 can also determine the time slot occupation order of other nodes in the PLC network, and load the time slot occupation order determined by itself in the feedback information.
- the feedback information further includes a plurality of sequentially arranged "next send ID" fields, and the plurality of sequentially arranged "next send ID” fields indicate the second The time slot occupation sequence determined by node 2.
- the feedback information includes at least three next send ID fields arranged in sequence, the first A next send ID field contains the difference between the node identifier of the first node and the node identifier of the second node 1, and the second next send ID field contains the node identifier of the first node and the second node 2.
- the difference value of the node identification of , the third next send ID field contains the difference between the node identification of the first node and the node identification of the second node 3.
- each next send ID field usually occupies 2 bits.
- the feedback information may not include the next send ID field, but include a specific character, and the specific character is used to indicate that the time slot occupation order determined by the second node 2 is the same as the time slot occupation order indicated by the first information.
- the second node 2 does not occupy the next time slot, that is, the will send flag field in the feedback information sent by the second node 2 is set to 0.
- the second node 1 receives the first information and the feedback information sent by the second node 2 . Since the second node 1 receives the feedback information sent by the second node 2 later, the second node 1 may, when neither the first node nor the second node 2 occupy the next time slot, The time slot occupied by the second node 2 is determined according to the feedback information sent by the second node 2 .
- the second node 1 occupies the next time slot. a time slot. In this case, if the second node 1 needs to send data, it can send data through the time slot that it can occupy, and if the second node 1 does not need to send data, it can keep a silent state.
- the second node 2 In the time slot occupation sequence indicated by the feedback information, the second node 2 is located one position after the second node 1. In this case, the second node 2 monitors the second node 1 data transmission situation.
- the second node 2 determines that it can occupy the second node 1 after the second node 1 completes the sending of the data information The time slot after the completion of the transmission of data information.
- the second node 2 monitors that the second node 1 has been silent within the preset T1 time period, the second node 2 considers that the second node 1 does not need to send data information, and determines that it can The time slot after the T1 time period is occupied.
- the second node 2 if the second node 2 fails to parse the feedback information, the second node 2 keeps a silent state until it receives the information indicating the order of time slot occupation again, and then determines itself through the information received again. Occupable time slot.
- the second node 3 monitors the data transmission situation of the second node 2 .
- the second node 3 determines that it can occupy the second node 2 after waiting for the second node 2 to complete the sending of the data information The time slot after the completion of the transmission of data information.
- the second node 3 monitors that the second node 2 has been silent within the preset T2 time period, the second node 3 considers that the second node 2 does not need to send data information, and determines that it can Occupies the time slot after the T2 time period.
- the second node 3 if the second node 3 fails to parse the feedback information, the second node 3 keeps a silent state until it receives the information indicating the order of timeslot occupation again, and then determines itself through the information received again. Occupable time slot.
- the The second node 3 monitors that in the third time period after receiving the first information, each node in the PLC network is in a silent state, or, in the time slot occupation sequence, the first information is ranked in the first
- the node before the second node 3 ie, the second node 2
- the second node 3 may also generate and send the second information .
- the second information includes second indication information
- the second indication information is used to indicate the time slot occupation sequence of other nodes in the PLC network, and is also used to indicate whether the second node occupies the next time slot gap.
- other nodes in the PLC network ie, the first node, the second node 1, and the second node 2 can determine the time slots that they can occupy according to the second information.
- the second information may be a Final PHY frame.
- the second information may also include data information that the second node 3 needs to send, in this case, the second information may also be an MSG PHY frame .
- the second information sent by the second node 3 may include a "will send flag” field, and use this field to indicate whether it needs to occupy the next time slot.
- the second information may also include a plurality of sequentially arranged "next send ID” fields, and the time slot occupation sequence determined by the second node 3 is indicated by the plurality of sequentially arranged "next send ID” fields.
- an embodiment of the present application further provides a power line communication PLC device, where the device is applied to a PLC network, and the PLC network includes the first node and at least one other node.
- the apparatus includes: a processing unit 110 and a transceiver unit 120 .
- the processing unit 110 is configured to generate first information, where the first information includes first indication information, and the first indication information is used to indicate time slots of other nodes except the first node Occupancy sequence, the first indication information is further used to indicate whether the first node occupies the next time slot.
- the transceiver unit 120 is configured to send the first information.
- the first information may be information in various forms.
- the first information further includes data information.
- the transceiver unit 120 is further configured to receive feedback information sent by the second node.
- the feedback information includes second indication information and third indication information, where the second indication information is used to indicate whether the second node sending the feedback information correctly receives the data information, and the third indication information is used for to indicate whether the second node sending the feedback information occupies the next time slot.
- the other nodes include the second node.
- the third indication information is further used to indicate the time slot occupation sequence of other nodes other than the second node that sends the feedback information.
- the first information is a data physical layer MSG PHY frame
- the MSG PHY frame includes a first frame header
- the first frame header includes the first indication information
- the feedback information is an acknowledgment physical layer ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the third indication information
- the first information further includes fourth indication information, where the fourth indication information is used to indicate whether the first node correctly receives the last piece of received information.
- the first information is an acknowledgment physical layer ACK PHY frame
- the ACK PHY frame includes a second frame header
- the second frame header includes the fourth indication information
- the first information is an underlying physical layer Final PHY frame
- the Final PHY frame includes a third frame header
- the third frame header includes the first indication information
- the transceiver unit in the first time period after sending the first indication information, if the other nodes are in a silent state, the transceiver unit is further configured to send the first indication information again. first information.
- the time slot occupation sequence is indicated by a difference between node identifiers, and the node identifiers include the identifier of the first node and the identifiers of the other nodes.
- an embodiment of the present application further provides a power line communication PLC device, the device is applied to a PLC network, the PLC network includes at least two nodes, and the at least two nodes include the first node and the second node.
- the apparatus includes: a processing unit 210 and a transceiver unit 220 .
- the transceiver unit 220 is used for receiving the first information.
- the first information includes first indication information, where the first indication information is used to indicate the time slot occupation order of the nodes other than the first node, and the first indication information is also used to indicate the Describe whether the first node occupies the next time slot.
- the second node is ranked first in the time slot occupation sequence, and the first indication information indicates that the first node will not occupy the next a time slot, and the processing unit 210 is configured to determine that the second node occupies the next time slot.
- the at least two nodes further include a third node.
- the second node is arranged in the second position of the time slot occupation sequence
- the third node is arranged in the time slot occupation sequence.
- the processing unit 210 is further configured to wait for the third node to finish sending the data information, and then It is determined that the second node reoccupies the time slot after the third node completes the sending of data information, or the processing unit 210 is further configured to wait for the third node to be silent for a preset period of time before determining the second node The node occupies the time slot after the preset duration.
- the at least two nodes further include a fourth node, and the fourth node also sends feedback information.
- the processing unit 210 is further configured to determine that the second node remains in the next time slot silent state.
- the processing unit 210 is further configured to, after the second node fails to parse the first indication information, determine that the second node remains in a silent state.
- the first information may include various forms.
- the first information further includes data information
- the second node is a receiving node of the data information included in the first information.
- the transceiver unit 220 is further configured to send feedback information through a first channel, where the first channel is different from the second channel, and the second channel is The channel occupied by the second node when sending information through the time slot indicated by the time slot occupation sequence.
- the feedback information includes second indication information and third indication information, the second indication information is used to indicate whether the second node sending the feedback information correctly receives the data information, and the third indication information The information is used to indicate whether the second node sending the feedback information occupies the next time slot.
- the processing unit 210 is further configured to generate the first node.
- the fifth node is a node prior to the second node in the time slot occupation sequence.
- the transceiver unit 220 is further configured to send the second information.
- the second information includes second indication information
- the second indication information is used to indicate the time slot occupation sequence of other nodes in the PLC network, and is also used to indicate whether the second node occupies the next time slot gap.
- an embodiment of the present application further provides a terminal device.
- the terminal device includes: a processor 1101 and a memory, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, the implementation of FIG. 3 , All or part of the steps in the embodiments corresponding to FIG. 4 and FIG. 6 .
- the terminal device may further include: a transceiver 1102 and a bus 1103 , and the memory includes a random access memory 1104 and a read-only memory 1105 .
- the processor is respectively coupled to the transceiver, the random access memory and the read only memory through the bus.
- the basic input and output system solidified in the read-only memory or the bootloader in the embedded system is used to boot the system to start, and the device is guided to enter a normal operation state. After the device enters the normal operation state, the application program and the operating system are run in the random access memory, so that the terminal device executes all or part of the steps in the embodiments corresponding to FIG. 3 , FIG. 4 and FIG. 6 .
- the device in the embodiment of the present invention may correspond to the PLC device in the embodiment corresponding to FIG. 9 , and the processor or the like in the device may implement the functions and/or functions of the device in the embodiment corresponding to FIG. 9 .
- the various steps and methods implemented are not repeated here for brevity.
- an embodiment of the present application further provides a terminal device.
- the terminal device includes: a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program stored in the memory, all or part of the steps in the embodiment corresponding to FIG. 7 are implemented.
- the terminal device may further include: a transceiver and a bus, and the memory includes a random access memory and a read-only memory.
- the processor is respectively coupled to the transceiver, the random access memory and the read only memory through the bus.
- the basic input and output system solidified in the read-only memory or the bootloader booting system in the embedded system is used to start the system, and the device is guided to enter a normal operation state. After the device enters the normal operating state, the application program and the operating system are run in the random access memory, so that the terminal device executes all or part of the steps in the embodiment corresponding to FIG. 7 .
- the device in the embodiment of the present invention may correspond to the PLC device in the embodiment corresponding to FIG. 10 , and the processor or the like in the device may implement the functions and/or functions of the device in the embodiment corresponding to FIG. 10 .
- the various steps and methods implemented are not repeated here for brevity.
- an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes instructions.
- the storage medium of the computer-readable medium can be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, referred to as: ROM) or a random access memory (English: random access memory, referred to as: RAM), etc. .
- an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes instructions.
- the storage medium of the computer-readable medium can be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, referred to as: ROM) or a random access memory (English: random access memory, referred to as: RAM), etc. .
- Another embodiment of the present application further provides a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device can implement the embodiments including the corresponding embodiments in FIG. 3 , FIG. 4 , and FIG. 6 . all or part of the steps.
- Another embodiment of the present application further provides a computer program product containing instructions, when the computer program product runs on an electronic device, the electronic device can implement all or part of the steps in the embodiment corresponding to FIG. 7 . .
- the embodiment of the present application also discloses a power line communication PLC system, and the PLC system includes:
- the PLC device in the embodiment corresponding to FIG. 9 above, and the processor and the like in the device can implement the functions and/or various steps and methods implemented by the device in the embodiment corresponding to FIG. 9 , For the sake of brevity, it will not be repeated here;
- a software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
- a storage medium may be coupled to the processor such that the processor may read information from, and store information in, the storage medium.
- the storage medium can also be integrated into the processor.
- the processor and storage medium may be provided in the ASIC, and the ASIC may be provided in the UE. Alternatively, the processor and the storage medium may also be provided in different components in the UE.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Small-Scale Networks (AREA)
- Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
Abstract
本申请公开一种PLC方法及装置。该方法中,PLC网络中的第一节点生成第一信息并发送,其中,所述第一信息中包括第一指示信息,所述第一指示信息用于指示PLC网络中除第一节点以外的其他节点的时隙占用顺序,以及指示所述第一节点是否占用下一个时隙。通过所述第一信息,PLC网络内的其他节点可确定自身占用的时隙,无需第一节点在每个MAC周期发送MAP信息,因此受到PLC网络不稳定的影响较小,能够减少传输时间和带宽的浪费,以及提高PLC网络的通信效率。并且,本申请的方案中,PLC网络内的其他节点可根据第一信息指示的时隙占用顺序确定自身占用的时隙,能够使不同的节点占用不同的时隙,从而能够避免不同节点的数据信息出现冲突,提高PLC网络的通信效率。
Description
本申请要求于2020年6月29日提交中国国家知识产权局、申请号为202010608029.3、申请名称为“一种电力线通信PLC方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,具体涉及一种电力线通信PLC方法及装置。
电力线通信(power line communication,PLC)是一种通过电力线传输数据和媒体信息的通信方式。在一个PLC系统中,通常包括第一节点以及与所述第一节点相连接的多个第二节点。其中,第一节点可作为PLC系统中的调制解调器,并且在通信过程中,为了减少信息干扰,第一节点与各个第二节点通常通过不同时隙进行信息传输。
目前,各个第二节点占用的时隙通常通过统一调度方式或者竞争方式确定。在统一调度方式中,第一节点统一为各个第二节点分配时隙。具体的,参见图1所示的场景示意图,该方式中,第一节点每隔一个媒体接入控制(media access control,MAC)周期,进行一次动态带宽分配(dynamic bandwidth assignment,DBA)计算,通过DBA计算确定在下一个MAC周期中,各个第二节点是否可占用信道,据此生成用于带宽分配的媒介接入计划(medium access plan,MAP)信息并发送,其中,MAP信息用于指示在下一个MAC周期中,可占用时隙的第二节点。各个第二节点可通过该MAP信息,确定自身是否可占用下一个MAC周期的时隙。另外,在竞争方式中,需要发送信息的第二节点侦听信道的占用情况,当侦听到信道当前被占用时,所述第二节点在等待一段时间后,再次进行侦听;当侦听到信道空闲时,所述第二节点确定自身当前可占用信道。
但是,PLC网络通畅不太稳定,当通过统一调度方式确定各个第二节点占用的时隙时,所述MAP信息在发送过程中有时会丢失。当某一个MAC周期的MAP信息丢失时,第二节点无法确定自身是否可占用下一个MAC周期的时隙,因此该第二节点在下一个MAC周期会处于等待状态,直到再次获取到MAP信息。因此,这种方式会造成传输时间的浪费,增加传输时延,降低通信效率。另外,当通过竞争方式确定各个第二节点占用的时隙时,如果有多个第二节点需要发送信息,所述多个第二节点在侦听到信道空闲之后,会同时发送息,导致出现信息冲突,影响信息的发送,同样会降低通信效率。
发明内容
为了解决现有技术中存在的PLC的通信效率低的问题,本申请实施例提供一种电力线通信PLC方法及装置。
第一方面,本申请实施例提供一种电力线通信PLC方法,所述方法应用于PLC网络,所述PLC网络包括第一节点和至少一个其他节点,所述方法包括:
所述第一节点生成第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;
所述第一节点发送所述第一信息。
通过上述步骤,PLC网络内的至少一个第二节点可根据第一节点发送的第一信息确定自身占用的时隙,无需第一节点在每个MAC周期发送MAP信息,因此受到PLC网络不稳定的影响较小,并且能够减少传输时间和带宽的浪费,提高PLC网络的通信效率,并且,能够使不同的节点占用不同的时隙,从而避免不同节点的数据信息出现冲突。
一种可选的设计中,所述第一信息还包括数据信息,所述其他节点包括所述第二节点,所述方法还包括:
所述第一节点接收第二节点发送的反馈信息,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
通过所述反馈信息,能够确定发送所述反馈信息的第二节点是否会占用下一个时隙如果所述第三指示信息表明发送所述反馈信息的第二节点会占用下一个时隙,则
PLC网络内的第一节点和其他的第二节点不会占用所述下一个时隙,从而能够避免不同节点的数据信息出现冲突。
一种可选的设计中,所述第三指示信息还用于指示发送所述反馈信息的第二节点之外的其他节点的时隙占用顺序。
通过上述步骤,PLC网络中的其他节点还可根据所述第三指示信息确定自身可占用的时隙。
一种可选的设计中,所述第一信息为数据物理层MSG PHY帧,所述MSG PHY帧包括第一帧头,所述第一帧头包括所述第一指示信息;
所述反馈信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第三指示信息。
一种可选的设计中,所述第一信息还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收到的信息。
一种可选的设计中,所述第一信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第四指示信息。
一种可选的设计中,所述第一信息为托底物理层Final PHY帧,所述Final PHY帧包括第三帧头,所述第三帧头包括所述第一指示信息。
一种可选的设计中,还包括:
在发送所述第一指示信息之后的第一时间段内,若所述其他节点均处于静默状态,所述第一节点再次发送所述第一信息。
通过上述步骤,能够避免出现所述至少一个第二节点由于未接收到第一信息,从而无法发送数据信息的现象。
一种可选的设计中,所述时隙占用顺序通过节点标识之间的差值来指示,所述节 点标识包括所述第一节点的标识和所述第二节点的标识。
其中,所述节点标识之间的差值的数据量较小,所述时隙占用顺序通过节点标识之间的差值来指示,能够节省第一信息的数据量,减少网络资源的占用,提高PLC网络的通信效率。
第二方面,本申请实施例提供一种电力线通信PLC方法,所述方法应用于PLC网络,所述PLC网络包括至少两个节点,所述至少两个节点包括第一节点和第二节点,所述方法包括:
所述第二节点接收第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点确定占用下一个时隙。
通过上述步骤,PLC网络内的第二节点根据第一信息指示的时隙占用顺序,确定自身可占用的时隙,从而无需第一节点在每个MAC周期生成并发送MAP信息,受到PLC网络不稳定的影响较小,以及减少传输时间和带宽的浪费,能够提高通信效率,并且,能够避免不同节点的信息出现冲突。
一种可选的设计中,所述至少两个节点还包括第三节点,所述方法还包括:
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点等待所述第三节点发送完数据信息后,所述第二节点再占用所述第三节点完成数据信息发送后的时隙,或者所述第二节点等待所述第三节点静默预设时长后,所述第二节点再占用所述预设时长后的时隙。
通过上述步骤,能够避免所述第二节点发送的数据信息与所述第三节点发送的数据信息出现冲突,提高PLC网络的通信效率。
一种可选的设计中,所述至少两个节点还包括第四节点,所述第四节点还发送反馈信息,所述方法还包括:
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,并且所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙时,所述第二节点在所述下一个时隙保持静默状态。
通过上述步骤,在根据第四节点发送的反馈信息确定第四节点占用下一个时隙时,所述第二节点在所述下一个时隙保持静默状态,从而避免所述第二节点发送的数据信息与所述第四节点发送的数据信息出现冲突,提高PLC网络的通信效率。
一种可选的设计中,还包括:
所述第二节点在解析所述第一指示信息失败之后,保持静默状态。
一种可选的设计中,所述第一信息还包括数据信息,所述方法还包括:
所述第二节点为所述第一信息中包括的数据信息的接收节点,在接收到所述第一 指示信息之后,所述第二节点通过第一信道发送反馈信息,所述第一信道与第二信道不同,所述第二信道为所述第二节点通过所述时隙占用顺序指示的时隙发送数据信息时占用的信道;
其中,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
一种可选的设计中,如果所述第二节点为所述时隙占用顺序指示的最后一个第二节点,所述方法还包括:
如果接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,或者,第五节点完成数据信息的发送之后,或者,所述第二节点完成数据信息的发送之后,所述第二节点生成并发送第二信息,其中,所述第五节点为在所述时隙占用顺序中,排在所述第二节点前一位的节点;
所述第二信息包括第二指示信息,所述第二指示信息用于指示所述PLC网络内其他节点的时隙占用顺序,以及还用于指示所述第二节点是否占用下一个时隙。
通过上述步骤,第二节点还能够生成并发送第二信息,以便通过所述第二信息,指示PLC网络内其他节点的时隙占用顺序,使PLC网络内其他节点根据所述第二信息的指示,确定自身可占用的时隙。
第三方面,本申请实施例提供一种电力线通信PLC装置,所述装置应用于PLC网络,所述PLC网络包括第一节点和至少一个其他节点,所述装置包括:
处理单元,用于生成第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;
收发单元,用于发送所述第一信息。
一种可选的设计中,所述第一信息还包括数据信息,所述其他节点包括所述第二节点;
所述收发单元还用于,接收第二节点发送的反馈信息,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
一种可选的设计中,所述第三指示信息还用于指示发送所述反馈信息的第二节点之外的其他第二节点的时隙占用顺序,或者指示所述其他第二节点和所述第一节点的时隙占用顺序。
一种可选的设计中,所述第一信息为数据物理层MSG PHY帧,所述MSG PHY帧包括第一帧头,所述第一帧头包括所述第一指示信息;
所述反馈信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第三指示信息。
一种可选的设计中,所述第一信息还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收到的信息。
一种可选的设计中,所述第一信息为确认物理层ACK PHY帧,所述ACK PHY 帧包括第二帧头,所述第二帧头包括所述第四指示信息。
一种可选的设计中,所述第一信息为托底物理层Final PHY帧,所述Final PHY帧包括第三帧头,所述第三帧头包括所述第一指示信息。
一种可选的设计中,在发送所述第一指示信息之后的第一时间段内,若所述其他节点均处于静默状态,所述收发单元还用于,再次发送所述第一信息。
一种可选的设计中,所述时隙占用顺序通过节点标识之间的差值来指示,所述节点标识包括所述第一节点的标识和所述第二节点的标识。
第四方面,本申请实施例提供一种电力线通信PLC装置,所述装置应用于PLC网络,所述PLC网络包括至少两个节点,所述至少两个节点包括第一节点和第二节点,所述装置包括:收发单元和处理单元;
所述收发单元用于接收第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,所述处理单元用于确定所述第二节点占用下一个时隙。
一种可选的设计中,所述至少两个节点还包括第三节点,
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述处理单元还用于,等待所述第三节点发送完数据信息后,再确定所述第二节点再占用所述第三节点完成数据信息发送后的时隙,或者所述处理单元还用于,等待所述第三节点静默预设时长后,再确定所述第二节点占用所述预设时长后的时隙。
一种可选的设计中,所述至少两个节点还包括第四节点,所述第四节点还发送反馈信息,
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,并且所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙时,所述处理单元还用于,确定所述第二节点在所述下一个时隙保持静默状态。
一种可选的设计中,所述处理单元还用于,在所述第二节点在解析所述第一指示信息失败之后,确定所述第二节点保持静默状态。
一种可选的设计中,所述第一信息还包括数据信息,所述第二节点为所述第一信息中包括的数据信息的接收节点,在接收到所述第一指示信息之后,所述收发单元还用于,通过第一信道发送反馈信息,所述第一信道与第二信道不同,所述第二信道为所述第二节点通过所述时隙占用顺序指示的时隙发送信息时占用的信道;
其中,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
一种可选的设计中,所述第二节点为所述时隙占用顺序指示的最后一个第二节点;
如果接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,或者,第五节点完成数据信息的发送之后,或者,所述第二节点完成数据信息的发送之后,所述处理单元还用于,生成第二信息,其中,所述第五节点为在所述时隙占用顺序中,排在所述第二节点前一位的节点;
所述收发单元还用于,发送所述第二信息;
所述第二信息包括第二指示信息,所述第二指示信息用于指示所述PLC网络内其他节点的时隙占用顺序,以及还用于指示所述第二节点是否占用下一个时隙。
第五方面,本申请实施例提供一种终端装置,应用于PLC网络,所述终端装置包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器执行所述存储器中存储的计算机程序,以使所述终端装置执行如第一方面所述的方法。
第六方面,本申请实施例提供一种终端装置,应用于PLC网络,所述终端装置包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器执行所述存储器中存储的计算机程序,以使所述终端装置执行如第二方面所述的方法。
第七方面,本申请实施例提供一种可读存储介质,所述可读存储介质用于存储指令,当所述指令被执行时,实现如第一方面所述的方法。
第八方面,本申请实施例提供一种可读存储介质,所述可读存储介质用于存储指令,当所述指令被执行时,实现如第二方面所述的方法。
第九方面,本申请实施例提供一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备可实施第一方面对应的实施例中的全部或部分步骤。
第十方面,本申请实施例提供一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备可实施第二方面对应的实施例中的全部或部分步骤。
第九方面,本申请实施例提供一种电力线通信PLC系统,包括:
第三方面所述的PLC装置;
第四方面所述的PLC装置。
本申请实施例提供一种PLC方法,在该方法中,PLC网络中的第一节点生成第一信息并发送,其中,所述第一信息中包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,以及指示所述第一节点是否占用下一个时隙。通过所述第一信息,PLC网络内的其他节点可确定自身占用的时隙。
现有的第一种方案(即第一目标节点统一调度的方案)中,第一目标节点需要在每个MAC周期生成并发送MAP信息,各个第二目标节点根据每个周期接收到的MAP信息,确定自身是否可占用下一MAC周期的时隙。
而本申请实施例提供的方案中,第一节点生成第一信息之后,PLC网络内的其他节点可根据所述第一信息指示的时隙占用顺序,依次确定自身可占用的时隙。
与现有的第一种方案相比,本申请实施例提供的方案中,PLC网络内的其他节点可根据第一节点发送的第一信息确定自身占用的时隙,无需第一节点在每个MAC周期发送MAP信息,因此受到PLC网络不稳定的影响较小,并且能够减少传输时间和带宽的浪费,提高PLC网络的通信效率。
并且,本申请实施例的方案中,PLC网络内的其他节点可根据第一信息指示的时隙占用顺序确定自身占用的时隙,能够使不同的节点占用不同的时隙,从而避免不同节点的数据信息出现冲突,因此,与现有的第二种方案(即竞争方案)相比,本申请实施例提供的方案能够减少不同节点的数据信息之间的冲突,相应的也能够提高通信效率。
图1为现有技术公开的一种时隙分配的场景示意图;
图2为现有技术公开的又一种时隙分配的场景示意图;
图3为本申请实施例公开的一种PLC方法的工作流程示意图;
图4为本申请实施例公开的又一种PLC方法的工作流程示意图;
图5为本申请实施例公开的一种PLC方法中的PHY信息的示意图;
图6为本申请实施例公开的又一种PLC方法的工作流程示意图;
图7为本申请实施例公开的又一种PLC方法的工作流程示意图;
图8为本申请实施例公开的一种PLC方法中,各个节点发送的信息示意图;
图9为本申请实施例公开的一种PLC装置的结构示意图;
图10为本申请实施例公开的又一种PLC装置的结构示意图;
图11为本申请实施例公开的一种终端装置的结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
为了下述各实施例的描述清楚简洁,首先给出相关技术的简要介绍:
PLC是一种通过电力线传输数据和媒体信息的通信方式。在一个PLC网络中,通常包括多个节点。示例性的,在PLC网络相关的G.hn标准中,PLC网络中通常包括域控制器(domain master,DM)和终端节点(end point,EP);在PLC网络相关的IEEE1901.1标准中,所述PLC网络中通常包括中央协调器(central coordinator,CCO)和站点(station,STA)等。
另外,在PLC网络中,为了减少不同节点的信息之间的干扰,不同的节点通常通过不同时隙传输数据信息,即不同的节点在进行数据传输时,所占用的时隙不同。目前,各个节点占用的时隙可通过统一调度或者竞争两种方式确定。
在统一调度方式中,将PLC网络中的节点划分为第一目标节点和第二目标节点。其中,当PLC网络中的节点包括DM和EP时,则DM为所述第一目标节点,EP为所述第二目标节点;当PLC网络中的节点包括CCO和STA时,则CCO为所述第一目标节点,STA为所述第二目标节点。并且,在这一方法中,第一目标节点统一为各个 第二目标节点分配时隙。具体的,参见图1所示的场景示意图,在该方式中,第一目标节点每隔一个MAC周期,进行一次动态带宽分配(dynamic bandwidth assignment,DBA)计算,通过DBA计算确定各个第二目标节点是否可占用下一个MAC周期的时隙,据此生成MAP信息并发送。其中,MAP信息用于指示在下一个MAC周期中,可占用时隙的第二目标节点。具体的,所述MAP信息中通常包括各个第二目标节点的节点标识以及所述第二目标节点可占用的时隙的对应关系。
PLC网络中的各个第二目标节点在接收到MAP信息之后,根据该MAP信息以及自身的节点标识,确定自身可占用的时隙,以便通过所述自身可占用的时隙传输数据信息。具体的,所述第二目标节点查询所述MAP信息中,自身的节点标识所对应的时隙,将所述自身的节点标识所对应的时隙作为自身可占用的时隙。
其中,如果某一个第二目标节点根据所述MAP信息,确定自身在下一个MAC周期内可占用时隙,则该第二目标节点通常会占用下一个MAC周期的时隙发送数据信息。如果其中一个第二目标节点根据所述MAP信息,确定自身在在下一个MAC周期内不可占用时隙,则该第二目标节点暂时不传输数据信息。
但是,在PLC网络中的所述第一目标节点与所述至少一个第二目标节点通常与家用电器的插头共同插接至插座中,导致PLC网络存在稳定性差的问题。其中,以下几个因素会降低PLC网络的稳定性:
(1)家用电器的插拔会为PLC网络带来噪声,并且,家用电器在工作状态中,也会为PLC网络带来噪声,该噪声会影响PLC网络的稳定性;
(2)家用电器会产生电气冲击干扰,特别是广播电视会对PLC网络带来窄带干扰,该干扰会降低PLC网络的稳定性;
(3)家用电器的工作状态会发生变化,例如,洗衣机在工作过程中,会发生漂洗工作状态与脱水工作状态之间的切换,冰箱会发生制冷工作状态和保温工作状态之间的切换,空调会换挡等。随着家用电器的工作状态的变化,家用电器产生的噪声也会发生变化,从而影响PLC网络的稳定性;
(4)家用电器在工作中,会引发信道的变化,进入工作状态的家用电器越多,占用的信道越多,而信道的变化也会影响PLC网络的稳定性。
在通过统一调度方式确定各个第二目标节点占用的时隙的过程中,受到PLC网络稳定性差的问题,MAP信息在发送过程中有时会丢失。
如果某一个MAC周期的MAP信息丢失,PLC网络中的各个第二目标节点无法获取该MAC周期的MAP信息,相应的,各个第二目标节点无法在该MAC周期内确定自身可占用的时隙,因此即使该MAP信息指示某一个第二目标节点占用下一个MAC周期的时隙,该第二目标节点在下一个MAC周期也会处于等待状态,无法传输数据信息,直到该第二目标节点再次获取到MAP信息。而所述第二目标节点需要至少等待一个MAC周期之后,才能再次获取到MAP信息,因此,在至少一个MAC周期的时间内,PLC网络内的各个第二目标节点会处于等待状态,无法发送数据信息,从而会造成传输时间的浪费,增加传输时延,降低PLC网络的传输效率。
示例性的,当一个MAC周期为40ms时,如果第一目标节点在某一MAC周期内生成的MAP信息丢失,则各个第二目标节点无法根据MAP信息确定哪一个第二目标 节点能够占用下一个MAC周期的时隙。这种情况下,各个第二目标节点均处于等待状态,不会发送数据信息。并且,所述各个第二目标节点需要等待至少一个MAC周期(即至少等待40ms),才能够接收到MAP信息,所述各个第二目标节点等待的时间导致PLC网络的传输时延增加,浪费了传输时间,PLC网络的传输效率降低。
另外,PLC网络中的各个节点可通过竞争方式确定自身占用的时隙,该方案通常基于带有冲突避免的载波侦听多路访问(carrier sense multiple access with collision avoid,CSMA/CA)和载波侦听多路访问/冲突检测(carrier sense multiple access with collision detectio,CSMA/CD)等竞争退避机制实现。具体的,在这一方案中,如果PLC网络中的某一个节点需要发送数据信息,该节点会侦听PLC网络的信道的占用情况,如果侦听到PLC网络的信道当前被占用,所述节点会在等待一段时间后,再次进行侦听;如果侦听到PLC网络的信道空闲,所述节点再占用当前的时隙发送数据信息。
但是,在这一方法中,如果有多个节点需要发送数据信息,所述多个节点均会侦听PLC网络的信道的占用情况,并且在侦听到PLC网络的信道空闲时,所述多个节点均会发送数据信息,这种情况下,所述多个节点发送的数据信息会出现信息冲突,从而影响信息的传输,降低PLC网络的通信效率。
为了明确PLC网络内各个节点通过竞争方式确定自身时隙时所具有的缺点,公开了一个示例,并公开图2所示的竞争方式的示意图,其中,图2中的长方形框代表信道。在这一示例中,如果PLC网络中的节点1需要发送数据,节点1会侦听PLC网络的信道占用情况。而该信道被节点2占用,因此,所述节点1会侦听到信道繁忙,这种情况下,所述节点1不可占用当前的时隙进行数据信息的发送,并且,所述节点1在等待t1时间之后,再次侦听信道的占用情况。但是,所述节点1再次侦听的时候,该信道被节点3占用,因此,所述节点1仍然会侦听到信道繁忙,这种情况下,所述节点2等待t2时间之后,再次侦听信道的占用情况。如果t2时间之后,信道未被PLC网络中的其他节点占用,所述节点1会侦听到信道空闲,从而占用该信道,通过当前的时隙发送数据信息。
但是,在所述节点1侦听信道占用情况的过程中,所述节点2可能也需要发送数据,因此节点2也会侦听信道的占用情况,在所述节点1侦听到信道空闲时,所述节点2也会侦听到信道空闲,这种情况下,所述节点2也会占用信道发送数据信息。因此,所述节点1和所述节点2发送的数据信息会发生冲突,导致所述节点1和所述节点2的数据信息发送失败。
根据上述描述可知,通过目前的统一调度方式或者竞争方式确定PLC网络中节点占用的时隙,会导致PLC网络的通信效率较低。
为了解决现有技术中存在的PLC的通信效率低的问题,本申请实施例提供一种电力线通信PLC方法及装置。其中,所述PLC方法应用于PLC网络,所述PLC网络包括至少两个节点。为了便于描述,至少两个节点中,可以包括第一节点和至少一个其他节点。可以理解的是,至少两个节点中,除第一节点之外的节点可以称为其他节点。至少一个其他节点中,还可以包括第二节点、第三节点、第四节点等。
其中,所述第一节点和所述其他节点可为PLC网络中多种形式的节点。示例性的,在PLC网络相关的G.hn标准中,所述第一节点和所述第其他节点可以为PLC网络中 的DM或EP;在PLC网络相关的IEEE1901.1标准中,所述第一节点和所述其他节点可为PLC网络中的CCO或STA。
另外,所述第一节点和所述其他节点的类型可以相同,也可以不同,例如,在PLC网络相关的G.hn标准中,所述第一节点可为DM,所述其他节点可为EP,或者,其中的部分其他节点可以为DM,剩余的部分其他节点和所述第一节点可为EP;在PLC网络相关的IEEE1901.1标准中,其中的部分其他节点可以为CCO,剩余的部分其他节点和所述第一节点可为STA,本申请实施例对此不做限定。
当然,所述第一节点和所述其他节点还可以为其他类型的节点,本申请实施例对此不做限定。
参见图3所示的工作流程示意图,本申请实施例提供的PLC方法包括以下步骤:
步骤S11、所述第一节点生成第一信息。
其中,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙。
在本申请实施例提供的方案中,时隙(time slot)指的是PLC网络中各个节点进行数据传输时占用的时间片,每个时隙的长度通常为10*2n ns,其中,根据PLC网络中各个节点的配置,n的取值范围通常为0~7。示例性的,在某一个PLC网络中,n的取值为5,这种情况下,在该PLC网络中,每一个时隙的长度为10*25ns。
在PLC网络中,第一节点有时需要发送数据信息,这种情况下,所述第一节点会占用PLC网络的时隙进行数据信息的发送,在本申请实施例提供的方案中,所述第一指示信息可用于指示所述第一节点是否占用下一个时隙。
通常情况下,所述第一节点占用时隙发送数据信息时,PLC网络中的所述其他节点处于静默状态,不可占用所述时隙。在所述第一节点结束数据信息的发送之后,其中一个其他节点才可占用所述时隙,以避免不同节点的数据信息出现冲突。
另外,所述第一节点还可以确定PLC网络中所述其他节点的时隙占用顺序,并通过所述第一指示信息指示所述其他节点的时隙占用顺序。
在PLC网络中,通常包括至少一个其他节点。如果所述PLC网络中包括两个以上的其他节点时,所述第一指示信息用于指示所述两个以上的其他节点的时隙占用顺序;如果所述PLC网络中只有一个其他节点,则所述第一指示信息用于指示这一个其他节点是否可占用下一个时隙。
另外,所述第一指示信息还可以用于指示所述时隙占用顺序对应的其他节点的数量。例如,所述第一指示信息用于指示五个其他节点的时隙占用顺序,则在所述第一指示信息中,还可以包括一个字段,该字段可指示“五”这一数值,用于表示所述第一信息指示五个其他节点的时隙占用顺序。
步骤S12、所述第一节点发送所述第一信息。
在本申请实施例中,所述第一节点通常可通过广播的形式发送所述第一信息。这种情况下,PLC网络内的所述其他节点可获取所述第一信息,并通过所述第一信息确定自身可占用的时隙。
示例性的,设定PLC网络内的其他节点包括第二节点,当PLC网络内包括三个 第二节点,并且所述第一信息指示的时隙占用顺序依次为第二节点1、第二节点2和第二节点3时,在接收到所述第一信息之后,所述第二节点1根据所述第一指示信息,确定所述第一节点是否占用下一个时隙,如果所述第一指示信息指示所述第一节点占用下一个时隙,则所述第二节点1暂时不通过该时隙发送数据信息(即不占用该时隙),如果所述第一指示信息指示所述第一节点不占用下一个时隙,则所述第二节点1确定自身可占用下一个时隙。
另外,由于所述时隙占用顺序中,所述第二节点2的前一位节点为第二节点2,则所述第二节点2监测所述第二节点1的数据信息发送情况,如果根据监测结果,确定所述第二节点1完成数据信息的发送,或者,根据监测结果,确定所述第二节点1在一段时间内都未发送信息,则所述第二节点2确定自身可占用当前的时隙。
由于所述时隙占用顺序中,所述第二节点3的前一位节点为第二节点2,则所述第二节点3监测所述第二节点2的数据信息发送情况。如果根据监测结果,确定所述第二节点2完成数据信息的发送,或者,根据监测结果,确定所述第二节点2在一段时间内都未发送数据信息,则所述第二节点3确定自身可占用当前的时隙。
根据上述描述可知,通过本申请实施例提供的PLC方法,PLC网络内的其他节点能够确定自身可占用的时隙,并通过自身可占用的时隙完成数据信息的发送。
本申请实施例提供一种PLC方法,在该方法中,PLC网络中的第一节点生成第一信息并发送,其中,所述第一信息中包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,以及指示所述第一节点是否占用下一个时隙。通过所述第一信息,PLC网络内的其他节点可确定自身占用的时隙。
现有的第一种方案(即第一目标节点统一调度的方案)中,第一目标节点需要在每个MAC周期生成并发送MAP信息,各个第二目标节点根据每个周期接收到的MAP信息,确定自身是否可占用下一MAC周期的时隙。
而本申请实施例提供的方案中,第一节点生成第一信息之后,PLC网络内的其他节点可根据所述第一信息指示的时隙占用顺序,依次确定自身可占用的时隙。
与现有的第一种方案相比,本申请实施例提供的方案中,PLC网络内的其他节点可根据第一节点发送的第一信息确定自身占用的时隙,无需第一节点在每个MAC周期发送MAP信息,因此受到PLC网络不稳定的影响较小,并且能够减少传输时间和带宽的浪费,提高PLC网络的通信效率。
并且,本申请实施例的方案中,PLC网络内的其他节点可根据第一信息指示的时隙占用顺序确定自身占用的时隙,能够使不同的节点占用不同的时隙,从而避免不同节点的数据信息出现冲突,因此,与现有的第二种方案(即竞争方案)相比,本申请实施例提供的方案能够减少不同节点的数据信息之间的冲突,相应的也能够提高通信效率。
在本申请实施例提供的方案中,所述第一节点可在多种情况下发送所述第一信息。在其中一种情况下,如果所述第一节点需要发送数据信息,则可在发送数据信息的过程中生成第一信息,并且所述第一信息中还可包括数据信息,即所述第一信息中包括第一指示信息和所述第一节点需要发送的数据信息,从而能够在数据发送的过程中,向PLC网络中的各个节点发送所述第一指示信息。
如果所述第一信息还包括数据信息,参见图4所示的工作流程示意图,所述方法还包括以下步骤:
步骤S13、所述第一节点接收第二节点发送的反馈信息。
其中,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
另外,所述其他节点包括所述第二节点,并且,所述其他节点中可包括至少一个第二节点。
在本申请实施例中,如果所述第一信息还包括数据信息,所述数据信息的目的节点在接收到所述第一信息之后,会向所述第一节点发送反馈信息。其中,所述数据信息的目的节点可以为所述其他节点中的一个第二节点,或者,所述数据信息的目的节点可以为所述其他节点中的两个以上的第二节点。相应的,发送所述反馈信息的节点可以为所述其他节点中的一个第二节点,或者,为所述其他中的两个以上的第二节点。
也就是说,所述第一节点可接收至少一个第二节点发送的反馈信息。
如果所述第一信息中还包括数据信息,则所述第一信息中通常还包括所述数据信息的目的地址,该目的地址通常位于所述第一信息的帧头中。在所述第一节点发送所述第一信息之后,所述PLC网络中的其他节点接收所述第一信息,并对比所述数据信息的目的地址和自身的地址,如果所述其他节点中的第二节点确定自身的地址与所述数据信息的目的地址相同,则所述第二节点确定自身为所述数据信息的目的节点,并向所述第一节点发送反馈信息。
其中,所述反馈信息中包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息。如果通过所述第二指示信息,所述第一节点确定发送所述反馈信息的第二节点并未正确接收所述数据信息,可再次向所述第二节点发送所述数据信息。
另外,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙,并且,发送所述反馈信息的第二节点通常通过广播形式发送所述反馈信息,这种情况下,PLC网络中的各个节点通常均能接收到所述反馈信息。如果所述第三指示信息表明发送所述反馈信息的第二节点会占用下一个时隙,则PLC网络内发送所述反馈信息的第二节点之外的节点不会占用所述下一个时隙,以避免不同节点的数据信息出现冲突。
进一步的,所述第三指示信息还用于指示发送所述反馈信息的第二节点之外的其他节点的时隙占用顺序,或者指示所述其他第二节点和所述第一节点的时隙占用顺序。
根据上述方案可知,第一信息可用于指示时隙占用顺序,以及所述反馈信息也可用于指示时隙占用顺序。相应的,PLC网络内的节点可收到不同节点发送的用于指示时隙占用顺序的信息,例如第一信息和反馈信息。如果PLC网络中的某一个节点接收到不同节点发送的用于指示时隙占用顺序的信息,该节点通常通过最近接收到的可用于指示时隙占用顺序的信息确定自身可占用的时隙。
例如,PLC网络内的某一个节点首先接收到第一节点发送的第一信息,所述第一信息中的第一指示信息指示PLC网络中所述第一节点之外的其他节点的时隙占用顺 序,然后,该节点又接收到PLC网络内的第二节点的反馈信息,所述反馈信息中的第三指示信息指示发送所述反馈信息的第二节点之外的其他节点的时隙占用顺序,这种情况下,如果所述第一信息指示所述第一节点不占用下一个时隙,以及所述反馈信息指示所述反馈信息的发送节点不占用下一个时隙,则接收到所述第一信息和所述反馈信息的的所述节点通过所述反馈信息中的第三指示信息指示的时隙占用顺序确定自身可占用的时隙。
在本申请实施例提供的方案中,所述第一节点生成的第一信息可为多种类型。示例性的,所述第一信息为数据物理层(message physical frame,MSG PHY)帧,所述MSG PHY帧包括第一帧头,所述第一帧头包括所述第一指示信息。
其中,如果所述第一节点需要向其他节点发送数据信息,所述第一节点通常发送MSG PHY帧,在MSG PHY帧中包括所述第一节点需要发送的数据信息。这种情况下,可在所述第一节点的MSG PHY帧中加载第一指示信息,获取包括所述第一指示信息的MSG PHY帧,并将包括所述第一指示信息的MSG PHY帧作为第一信息,即所述第一信息可为MSG PHY帧。另外,这种情况下,所述第一指示信息通常位于MSG PHY帧的第一帧头中,其中,所述第一帧头可称为物理层帧(physical frame,PHY)帧头
所述第一指示信息用于指示所述第一节点是否占用下一个时隙。如果所述第一信息为MSG PHY帧,所述PLC网络中的其他节点在接收到第一信息之后,通过所述MSG PHY帧的第一帧头中的第一指示信息,可确定所述第一节点是否会占用下一个时隙。如果所述第一指示信息指示所述第一节点会占用下一个时隙,所述其他节点不会占用下一个时隙,因此能够避免PLC网络中的节点发送的数据信息出现冲突。
示例性的,在所述MSG PHY帧的第一帧头中,可包括一个“continue send flag”字段,该字段可占用1bit,当所述第一节点需要占用下一个时隙时,在“continue send flag”字段中置1,当所述第一节点不需要占用下一个时隙时,在“continue send flag”字段中置0,或者不在所述“continue send flag”字段中添加任何字符。这种情况下,接收到所述MSG PHY帧的其他节点,基于MSG PHY帧的第一帧头中的“continue send flag”字段,即可确定所述第一节点是否占用下一个时隙。
相应的,在本申请实施例中,所述反馈信息可以为确认物理层帧(acknowledgement character physical frame,ACK PHY)帧。在所述ACK PHY帧中包括第二帧头,所述第二帧头包括所述第三指示信息。
这种情况下,PLC网络中的节点在接收所述ACK PHY帧之后,通过所述ACK PHY帧的第二帧头中包括的第三指示信息,即可确定发送所述反馈信息的第二节点是否占用下一个时隙。进一步的,如果所述第三指示信息还用于指示接收到所述ACK PHY帧的节点的时隙占用顺序,PLC网络中的节点在接收所述ACK PHY帧之后,还可据此确定自身占用的时隙。
上述实施例中,介绍了第一信息中包括数据信息的情况。在另外一种情况中,所述第一信息还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收的信息。
在这一情况中,所述第一节点还可接收PLC网络内的其他节点发送的数据信息,并在接收到其他节点发送的数据信息之后,如果所述第一节点确定自身为所述数据信 息的接收节点,则所述第一节点反馈包括所述第四指示信息的第一信息。
示例性的,所述PLC网络中的某一个其他节点向所述第一节点发送数据信息,所述第一节点在接收到所述其他节点发送的数据信息,并且确定自身为所述数据信息的接收节点之后,确定自身是否正确接收到所述其他节点发送的数据信息,并据此确定第四指示信息。并且,所述第一节点还根据自身是否需要占用下一个时隙,以及PLC网络中的其他节点的时隙占用顺序,确定第一指示信息。然后,所述第一节点根据所述第一指示信息和所述第四指示信息,确定并发送所述第一信息。
另外,在这一方案中,如果第一节点上一条接收到的信息指示该信息的发送节点会占用下一个时隙,则所述第一节点通常不会占用下一个时隙,以避免出现信息冲突。
这种情况下,所述第一信息通常为确认物理层帧(acknowledgement character physical frame,ACK PHY)帧,并且,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第四指示信息。
在本申请实施例提供的方案中,所述第一信息还可以为托底物理层(final physical frame,Final PHY)帧。所述Final PHY帧包括第三帧头,所述第三帧头包括所述第一指示信息。
在PLC网络中的各个节点还可发送Final PHY帧,这种情况下,所述第一节点发送的第一信息可为Final PHY帧。例如,如果第一节点不需要向其他节点发送数据,则所述第一节点通常不会生成MSG PHY帧,这种情况下,所述第一节点生成的第一信息可为Final PHY帧。
在上述示例中,分别介绍了第一信息的不同形式,其中,所述第一信息可为MSG PHY帧、ACK PHY帧或Final PHY帧。为了明确第一信息的形式,本申请公开一种PHY帧的示例,在该示例中,所述PHY帧可如图5所示。
参见图5所示的PHY帧的示意图,在该示例中,PHY帧通常包括先导字段(即preamble字段)、帧头(即header)、附加信道估计(additional channel estimation,ace)字段、消息协议数据单元(message protocol data unit,MPDU)和帧间隔(inter-frame gap,IFG)字段。
其中,在PHY帧头中,通常包括帧类型(frame type,FT)字段、帧类型专用(frame-type specific field,FTSF)字段和保留(即reserved)字段。通过FT字段中包括的字符,可确定该PHY帧的类型,所述PHY帧的类型包括MSG PHY帧、ACK PHY帧和Final PHY帧等。
另外,所述第一信息中包括的第一指示信息可加载在FT字段、FTSF字段和reserved字段中的任意一个字段中。如果在PHY帧头中的其他字段中存在空余,也可将所述第一指示信息加载在其他存在空余的字段中,本申请实施例对此不做限定。
或者,在本申请实施例中,还可以在PHY帧头中扩展一个新的字段,在扩展的新的字段中加载所述第一指示信息。
另外,本申请实施例提供的方案还可采用其他形式的PHY帧,本申请实施例对此不做限定。
在本申请实施例提供的方案中,第一节点需要确定PLC网络内的其他节点的时隙占用顺序,以便生成第一信息。其中,所述第一节点可通过多种方式确定所述PLC网 络内的其他节点的时隙占用顺序。
在其中一种方式中,所述第一节点可通过动态带宽分配(dynamic bandwidth assignment,DBA)计算,确定所述PLC网络内的其他节点的时隙占用顺序。
在另外一种方式中,如果所述第一节点能够接收第二节点的反馈信息,由于所述反馈信息中的第三指示信息能够指示发送所述反馈信息的第二节点是否占用下一个时隙,则所述第一节点可根据所述反馈信息,确定发送所述反馈信息的第二节点的数据发送需求,并进一步根据所述第二节点的数据发送需求确定所述时隙占用顺序。
在一个示例中,所述第一节点发送第一信息之后,接收到第二节点1的反馈信息,所述反馈信息表示所述第二节点1不需要占用下一个时隙,并在再次发送第一信息之后,接收到第二节点2的反馈信息,所述反馈信息指示所述第二节点2需要占用下一个时隙,这种情况下,所述第一节点可确定第二节点1不需要发送数据,而第二节点2需要发送数据,相应的,所述第一节点确定的时隙占用顺序中,所述第二节点2的时隙占用顺序位于所述第二节点1的时隙占用顺序之前,以便所述第二节点2可优先占用时隙。
或者,在另一种可行的实现方式中,所述第一节点可通过DBA计算和第二节点的反馈信息共同确定所述时隙占用顺序。这种情况下,参见图6所示的工作流程示意图,本申请实施例包括以下操作:
步骤S21、所述第一节点确定所述PLC网络的流量变化率。
其中,所述PLC网络的流量,指的是所述PLC网络在单位时间内发送的数据量的大小,所述PLC网络的流量通常可采用兆比特每秒(million bits per second,Mbps)和吉比特每秒(gigabit bits per second,Gbps)等单位表示。所述PLC网络的流量变化率指的是所述PLC网络的流量变化的大小。
步骤S22、所述第一节点比较所述PLC网络的流量变化率与第一阈值,确定所述PLC网络的流量变化率是否大于所述第一阈值,若是,执行步骤S23的操作,若否,执行步骤S24的操作。
步骤S23、当所述PLC网络的流量变化率大于第一阈值时,所述第一节点通过所述反馈信息,确定所述其他节点的时隙占用顺序。然后,再执行步骤S25的操作。
当所述PLC网络的流量变化率大于第一阈值时,则表明所述PLC网络的网络状态可能发生突变,这种情况下,所述第一节点通过所述反馈信息,可确定发送所述反馈信息的第二节点是否具有数据发送需求,并据此确定所述其他节点的时隙占用顺序。
步骤S24、当所述PLC网络的流量变化率不大于第一阈值时,所述第一节点通过DBA计算,确定所述其他节点的时隙占用顺序。然后,再执行步骤S25的操作。
当所述PLC网络的流量变化率不大于第一阈值时,则表明所述PLC网络的网络状态较为平稳,这种情况下,所述第一节点可通过DBA计算,确定所述其他节点的时隙占用顺序。
步骤S25、所述第一节点生成并发送第一信息。
通过步骤S21至步骤S25的操作,能够根据PLC网络的网络状态确定时隙占用顺序,具体的,该方案中,当PLC网络的网络状态较平稳时,通过DBA计算的方法确定时隙占用顺序,当PLC网络的网络状态不太平稳时,通过反馈信息确定时隙占用顺 序,从而能够在确定时隙占用顺序的过程中,考虑到PLC网络的网络状态,使第一节点确定的时隙占用顺序更贴近PLC网络中各个节点的需求。
进一步的,在本申请实施例中,还包括以下操作:
在发送所述第一指示信息之后的第一时间段内,若所述其他第二节点均处于静默状态,所述第一节点再次发送所述第一信息。
在本申请实施例中,某一个节点处于静默状态,指的是该节点不发送数据信息,但能够接收数据信息。
在发送所述第一信息之后的第一时间段内,如果PLC网络内的其他节点均处于静默状态,则表示所述其他节点没有数据发送的需求,或者,所述其他节点未获取所述第一信息,从而无法根据所述第一信息确定自身可占用的时隙。这种情况下,所述第一节点可再次发送第一信息,以避免出现所述PLC网络内的其他节点由于未接收到第一信息,从而无法发送数据信息的现象。
其中,所述第一时间段的时长通常可根据所述PLC网络内其他节点的数量确定,通常所述其他节点的数量越多,所述第一时间段的时长越长。
在本申请实施例提供的方案中,所述第一信息用于指示PLC网络中的其他节点的时隙占用顺序。在一种可行的实现方式中,可通过各个节点的节点标识指示所述PLC网络中的其他节点的时隙占用顺序。
另外,在另一种可行的实现方式中,所述时隙占用顺序通过节点标识之间的差值来表示,所述节点标识包括所述第一节点的标识和所述其他节点的标识,即所述时隙占用顺序通过第一节点的节点标识和其他节点的节点标识之间的差值表示。
这种情况下,PLC网络中的其他节点通过之前与第一节点的交互,能够确定所述第一节点的节点标识,这种情况下,所述其他节点在获取所述第一信息之后,根据自身的节点标识与所述第一节点的节点标识,能够确定自身占用的时隙。
现有技术的MAP信息中,通常包括所述PLC网络内的各个节点的节点标识,以及该节点标识所对应的时隙。而本申请提供的这一实现方式中,与节点标识相比,节点标识之间的差值的数据量较小,因此,通过节点标识之间的差值指示时隙占用顺序,能够减少第一信息的数据量,从而进一步减少第一信息在传输时所需的网络资源,节省带宽资源。
另外,在这一实现方式中,第一指示信息可包括按照时隙占用顺序进行排序的节点标识之间的差值。例如,设定PLC网络内的所述其他节点包括第二节点1、第二节点2和第二节点3,如果所述时隙占用顺序依次为第二节点1、第二节点2和第二节点3,这种情况下,在所述第一指示信息中,第二节点1与第一节点的节点标识之间的差值、第二节点2与第一节点的节点标识之间的差值以及第二节点3与第一节点的节点标识之间的差值依次排序。
这种情况下,根据第一指示信息中节点标识之间的差值的排序,即可确定所述时隙占用顺序。
或者,在所述第一指示信息中,还可以包括节点标识之间的差值对应的时隙占用顺序的排序序号。例如,设定PLC网络内的所述其他节点包括第二节点1、第二节点2和第二节点3,如果所述时隙占用顺序依次为第二节点1、第二节点2和第二节点3, 这种情况下,在所述第一指示信息中,不仅包括第一节点的节点标识分别与第二节点1、第二节点2和第二节点3的节点标识之间的差值,并且还包括各个差值分别对应的时隙占用顺序的排序序号,通过该排序序号指示各个第二节点的时隙占用顺序。
本申请通过上述实施例,提供了一种PLC方法。为了明确所述PLC方法,以下公开一个示例。
在该示例中,PLC中包括第一节点和至少一个其他节点,所述其他节点包括三个第二节点,所述三个第二节点分别为第二节点1、第二节点2和第二节点3。
其中,所述第一节点可生成第一信息,所述第一信息中包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,以及指示所述第一节点是否占用下一个时隙。并且,所述第一节点还可通过广播形式发送所述第一信息。
如果所述第一节点需要向其他节点发送数据信息,则所述第一节点可在发送的数据信息中添加所述第一指示信息,这种情况下,所述第一信息还包括数据信息。另外,所述第一信息可为MSG PHY帧,所述MSG PHY帧包括第一帧头,所述第一帧头包括所述第一指示信息。
在所述第一节点发送包括所述数据信息的第一信息之后,所述数据信息的目的节点还可发送反馈信息。在该示例中,所述第一节点需要向所述第二节点1发送数据信息,则第一信息中还包括第二节点1的目的地址。
PLC网络中的其他节点在接收到所述第一信息之后,会基于所述第一信息中包含的目的地址,确定自身是否需要获取所述第一信息中包括的数据信息。这种情况下,所述第二节点2和第二节点3会确定自身不需要获取所述数据信息,即所述第二节点2和第二节点3并非所述数据信息的接收节点,相应的,所述第二节点2和第二节点3不会发送反馈信息。
另外,在接收到所述第一信息之后,基于所述目的地址,第二节点1可确定自身需要接收所述第一信息中包含的数据信息,即所述第二节点1为所述数据信息的接收节点,因此会生成并发送反馈信息。所述反馈信息中通常包括第二指示信息和第三指示信息,其中,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
所述第二节点1在生成所述反馈信息时,如果根据所述第一信息中包括的第一指示信息,确定所述第一节点占用下一个时隙,则所述第二节点1通常不会占用下一个时隙,以避免第二节点1与第一节点之间的信息冲突,相应的,所述第三指示信息会指示所述第二节点1不占用下一个时隙。另外,如果根据所述第一信息中包括的第一指示信息,确定所述第一节点不占用下一个时隙,并且所述第二节点1需要向其他节点发送数据信息时,所述第二节点1可占用下一个时隙,相应的,所述第三指示信息会指示所述第二节点1占用下一个时隙。
进一步的,所述第二节点1还可确定其他节点(例如第一节点、第二节点2和第二节点3)的时隙占用顺序,并通过所述第三指示信息指示自身确定的所述其他节点的时隙占用顺序。
其中,所述反馈信息可为ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第三指示信息。
在生成所述反馈信息之后,所述第二节点1可通过广播方式发送所述反馈信息,因此,所述第一节点、第二节点2和第二节点3通常会接收到所述反馈信息。
在这一示例中,第二节点2和第二节点3会接收到不同的用于指示时隙占用顺序的信息,这种情况下,所述第二节点2和第二节点3通常会基于最晚接收到的信息确定自身可占用的时隙。例如,所述第二节点2和第二节点3会接收到第一节点发送的第一信息,以及第二节点1发送的反馈信息,所述第一信息和反馈信息均可指示时隙占用顺序,而所述反馈信息的接收时间较晚,这种情况下,所述第二节点2和第二节点3会根据较晚接收到的反馈信息的指示,确定自身可占用的时隙。
上述描述中,介绍了第一信息为MSG PHY帧的情况。另外,如果第一节点接收到其他节点发送的信息,所述第一节点还可生成其他形式的第一信息,其中,所述第一信息除了第一指示信息以外,还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收到的信息。
例如,所述第一节点接收到第二节点1发送的数据信息,并且,所述第二节点1发送的数据信息中包括所述第一节点的目的地址,这种情况下,所述第一节点可生成包括第四指示信息的第一信息,所述第四指示信息用于指示自身是否正确接收到所述第二节点1发送的数据信息。并且,如果所述第四指示信息指示所述第一节点并未正确接收到所述第二节点1发送的数据信息,所述第二节点1在接收到所述第四指示信息之后,往往会再次向所述第一节点发送所述数据信息,以避免所述第一节点错过所述数据信息。
这种情况下,所述第一信息可为ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第四指示信息。
另外,如果所述第一节点没有数据发送的需求时,所述第一节点发送的第一信息还可以为Final PHY帧,在Final PHY帧中包括第三帧头,在所述三帧头包括所述第一指示信息。
在本示例中,在所述第一信息之后,所述第一节点检测其他节点(例如第二节点1、第二节点2和第二节点3)的状态,若在发送所述第一信息之后的第一时间段内,PLC网络内的其他节点均处于静默状态,则所述第一节点再次发送所述第一信息。
相应的,在本申请另一实施例中,提供一种电力线通信PLC方法。该方法应用于PLC网络,并且,所述PLC网络包括至少两个节点,参见图7所示的工作流程示意图,所述至少两个节点包括第一节点和第二节点,所述方法包括:
步骤S31、所述第二节点接收第一信息。
其中,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙。
在本申请实施例中,所述PLC网络中的第一节点确定所述第一节点之外的其他节点的时隙占用顺序,并据此生成第一信息。然后,所述第一节点通过广播形式发送所述第一信息,以便于PLC网络内的其他节点获取所述第一信息。
其中,所述PLC网络中通常包括第一节点和第一节点以外的其他节点,所述其他节点中包括至少一个第二节点,执行本申请实施例的方案的第二节点可为所述至少一个第二节点中的任意一个第二节点。另外,在本申请实施例中,所述其他节点中还可包括第三节点和/或第四节点等,本申请实施例对此不做限定。
另外,在本申请实施例公开的方案中,PLC网络中包括第一节点以及第一节点以外的其他节点,所述第一节点和所述其他节点可为PLC网络中的任意一种节点。示例性的,在PLC网络相关的G.hn标准中,所述第一节点和所述第其他节点可以为PLC网络中的DM或EP;在PLC网络相关的IEEE1901.1标准中,所述第一节点和所述其他节点可为PLC网络中的CCO或STA。
另外,所述第一节点和所述其他节点的类型可以相同,也可以不同,例如,在PLC网络相关的G.hn标准中,所述第一节点可为DM,所述其他节点可为EP,或者,其中的部分其他节点可以为DM,剩余的部分其他节点和所述第一节点可为EP;在PLC网络相关的IEEE1901.1标准中,其中的部分其他节点可以为CCO,剩余的部分其他节点和所述第一节点可为STA,本申请实施例对此不做限定。
当然,所述第一节点和所述其他节点还可以为其他类型的节点,本申请实施例对此不做限定。
相应的,在本申请实施例提供的方案中,所述第二节点可为DM或EP,或者,所述第二节点可为CCO或STA。
步骤S32、若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点确定占用下一个时隙。
如果所述第二节点排在所述时隙占用顺序的首位,则表明在所述第一节点不占用时隙之后,可由所述第二节点占用时隙,这种情况下,如果所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点确定占用下一个时隙。
在本申请实施例提供的方案中,所述第二节点占用下一个时隙,指的是如果所述第二节点有数据发送的需求,所述第二节点可占用所述下一个时隙进行数据发送,如果所述第二节点没有数据发送的需求,所述第二节点在所述下一个时隙保持静默状态。
在本申请实施例提供的方案中,所述第二节点根据接收到的第一信息所指示的时隙占用顺序,确定所述第一节点是否会占用下一个时隙,并且,在所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙时,所述第二节点可占用所述下一个时隙。如果所述第一节点有数据发送的需求,则所述第二节点可通过所述下一个时隙发送数据信息。
本申请实施例提供一种PLC方法,在该方法中,PLC网络中的第一节点生成用于指示第二节点的时隙占用顺序的第一信息,PLC网络中的第二节点可通过所述第一信息,确定时隙占用顺序,并据此确定自身可占用的时隙。
通过本申请实施例提供的方案,PLC网络内的第二节点根据第一信息指示的时隙占用顺序,确定自身可占用的时隙,从而无需第一节点在每个MAC周期生成并发送MAP信息,与现有的第一种方案相比,本申请实施例提供的方案中,第一节点发送的信息减少,从而受到PLC网络不稳定的影响较小,以及减少传输时间和带宽的浪费, 能够提高通信效率。
并且,本申请实施例的方案中,PLC网络内的第二节点可根据第一信息确定时隙占用顺序,从而避免不同节点的信息出现冲突,因此,与现有的第二种方案(即竞争方案)相比,本申请实施例提供的方案也能够提高PLC网络的通信效率。
进一步的,在现有的第一种方案中,所述MAP信息中包括各个第二节点的节点标识以及所述节点标识对应的时隙,导致MAP信息的数据量较大,而且第一节点需要在每个MAC周期生成并发送一次MAP信息,MAP信息的发送较为频繁,因此会耗费大量带宽。
而本申请实施例的方案中,第二节点根据第一节点生成的第一信息确定自身占用的时隙,无需第一节点在每一个MAC周期生成及发送MAP信息,减少了第一节点发送信息的频率,并且,与所述MAP信息相比,第一信息的数据量较小。因此,与现有的第一种方案相比,本申请实施例提供的方案还能有效减少带宽的浪费。
进一步的,在本申请实施例提供的方案中,所述至少两个节点还包括第三节点,所述方法还包括:
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点等待所述第三节点发送完数据信息后,所述第二节点再占用所述第三节点完成数据信息发送后的时隙,或者所述第二节点等待所述第三节点静默预设时长后,所述第二节点再占用所述预设时长后的时隙。
其中,如果所述第三节点静默预设时长,则表明所述第三节点不需要发送数据信息,这种情况下,所述第二节点可占用所述预设时长后的时隙。
如果所述第三节点排在所述时隙占用顺序的首位,并且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第三节点可占用下一个时隙。另外,由于所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的第二位,则在所述第三节点完成数据信息的发送之后,所述第二节点可占用所述第三节点完成信息发送后的时隙,或者,所述第二节点确定所述第三节点不需要发送数据信息,所述第二节点可占用所述预设时长后的时隙。
另外,在本申请实施例提供的方案中,所述至少两个节点还包括第四节点,所述第四节点还发送反馈信息。
其中,所述第四节点可以为PLC网络中的任意一种节点。例如,在PLC网络相关的G.hn标准中,所述第四节点可以为DM或EP,在PLC网络相关的IEEE1901.1标准中,所述第四节点可以为CCO或STA,本申请实施例对此不做限定。
所述第四节点发送的反馈信息中,可包括所述第四节点是否需要占用下一个时隙的指示。这种情况下,在本申请实施例中,还包括以下步骤:
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,并且所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙时,所述第二节点在所述下一个时隙保持静默状态。
如果所述第一指示信息指示所述第一节点不会占用下一个时隙,而所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙,则表明所述第四节点可能会占用所述下一个时隙发送信息。这种情况下,所述第二节点在所述下一个时隙保持静默状态,从而能够避免第二节点的数据信息与所述第四节点发送的数据信息发生冲突。
也就是说,在本申请实施例中,第二节点可接收到不同节点发送的信息,如果其中一条信息的发送节点所发送的信息指示所述发送节点会占用下一个时隙,则所述第二节点通常不会占用所述下一个时隙,以避免所述第二节点发送的数据信息与所述发送节点发送的数据信息之间出现冲突。
进一步的,在本申请实施例中,还包括以下步骤:
所述第二节点在解析所述第一指示信息失败之后,保持静默状态。
所述第二节点在接收到第一信息之后,会对其中包括的第一指示信息进行解析,以便根据解析结果,确定所述第一指示信息指示的时隙占用顺序。但是,所述第二节点在解析所述第一指示信息时,可能会出现失败,例如,受到PLC网络震荡的影响,所述第二节点未接收到完整的第一指示信息,导致第一指示信息的解析出现失败。
所述第二节点在解析所述第一指示信息失败之后,由于无法通过所述第一指示信息确定自身占用的时隙,因此所述第二节点会保持静默状态,不进行数据信息的发送。
另外,如果所述第二节点处于静默状态,在所述第二节点再次接收到可指示时隙占用顺序的信息之后,所述第二节点通常可再次确定自身可占用的时隙,并通过自身可占用的时隙发送数据信息。例如,所述第二节点处于静默状态的情况下,还可接收到所述第一节点再次发送的第一信息,并且所述第二节点还可接收到其他节点发送的反馈信息,所述第二节点可根据所述第一节点再次发送的第一信息和所述反馈信息,确定自身可占用的时隙。
所述第一节点发送的第一信息可为多种形式的信息。在其中一种可行的实现方式中,所述第一信息还包括数据信息。这种情况下,所述第二节点在接收到所述第一信息之后,还会根据所述第一信息中包括的所述数据信息的目的地址,确定自身是否为所述数据信息的接收节点,其中,如果所述第一信息中包括的所述数据信息的目的地址为所述第二节点的地址,则所述第二节点为所述数据信息的接收节点。
如果所述第二节点为所述第一信息中包括的数据信息的接收节点,所述方法还包括以下步骤:
在接收到所述第一指示信息之后,所述第二节点通过第一信道发送反馈信息。其中,所述第一信道与第二信道不同,所述第二信道为所述第二节点通过所述时隙占用顺序指示的时隙发送数据信息时占用的信道。
在PLC网络中,为各个节点发送的反馈信息设置有第一信道,所述第二信道为所述第二节点通过所述时隙占用顺序指示的时隙发送数据信息时占用的信道,也就是说,PLC网络中的各个节点发送数据信息和反馈信息时,占用的信道往往不同,因此,无论所述时隙占用顺序指示某一个节点是否可占用时隙,该节点均可通过第一信道发送反馈信息。
其中,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信 息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
所述第二节点通过自身的数据发送需求确定所述第三指示信息。其中,如果所述第二节点接收到的第一指示信息指示所述第一节点需要占用下一个时隙,则所述第三指示信息通常指示所述第二节点不占用下一个时隙。另外,如果所述第二节点接收到的第一指示信息不指示所述第一节点需要占用下一个时隙,并且所述第二节点需要发送数据信息,则所述第三指示信息通常指示所述第二节点占用下一个时隙。
另外,如果所述第二节点确定的时隙占用顺序与所述第一节点确定的时隙占用顺序相同,则所述第三指示信息中可只需包括一个预设的字符。这种情况下,其他节点在接收到所述反馈信息之后,基于所述第一信息所指示的时隙占用顺序确定自身可占用的时隙。
这种情况下,由于所述反馈信息只需包括预设的字符,从而能够使所述反馈信息的数据量减小,因此,在传输所述反馈信息时,耗费的网络资源较少,以及能够减少对带宽资源的占用。
进一步的,如果所述第二节点为所述时隙占用顺序指示的最后一个第二节点,所述方法还包括以下步骤:
如果接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,或者第五节点完成数据信息的发送之后,或者所述第二节点完成数据信息的发送之后,所述第二节点生成并发送第二信息。其中,所述第五节点为在所述时隙占用顺序中,排在所述第二节点前一位的节点。
所述第二信息包括第二指示信息,所述第二指示信息用于指示所述PLC网络内其他节点的时隙占用顺序,以及还用于指示所述第二节点是否占用下一个时隙。
PLC网络中的其他节点可接收所述第二信息,并在接收到所述第二信息之后,根据所述第二指示信息,确定自身可占用的时隙。
如果所述第二节点为所述时隙占用顺序指示的最后一个第二节点,则所述第二节点通常在以下几种情况下,还可以生成第二信息:
(1)接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态。
如果在接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,则表明所述PLC网络内的各个节点无需发送数据,或者所述PLC网络内的各个节点未成功解析用于指示时隙占用顺序的信息,导致无法发送数据信息。这种情况下,这种情况下,通过本申请实施例提供的方案,所述第二节点生成并发送第二信息,从而能够使PLC网络中的其他节点根据接收到的所述第二信息,确定自身可占用的时隙。
其中,所述第三时间段的时长通常与所述PLC网络内的节点数量相关,通常情况下,所述节点数量越多,所述第三时间段的时长越长。
(2)第五节点完成数据信息的发送,其中,所述第五节点为在所述时隙占用顺序中,排在所述第二节点前一位的节点。
由于所述第五节点在所述时隙占用顺序中,排在所述第二节点前一位,因此,所述第五节点在完成数据信息的发送之后,所述第二节点可占用下一个时隙,这种情况 下,所述第二节点可生成并发送所述第二信息,以便PLC网络内的其他节点根据所述第二信息,确定自身可占用的时隙。
另外,如果在所述第五节点在完成数据信息的发送之后,所述第二节点需要发送数据信息,则所述第二信息中还可以包括所述第二节点需要发送的数据信息。
(3)所述第二节点完成数据信息的发送。
由于所述第二节点为所述时隙占用顺序指示的最后一个第二节点,在完成自身的数据发送之后,所述第二节点可生成并发送第二信息,以便于PLC网络内的其他节点根据所述第二信息,确定自身可占用的时隙。
其中,第二信息可为多种形式的信息,在其中一种可行的实现方式中,所述第二信息可为托底物理层(final physical frame,Final PHY)帧。另外,在第二种情况中,如果第二节点需要发送数据信息,则所述第二信息中可包括所述第二节点发送的数据信息,这种情况下,所述第二信息也可以为MSG PHY帧。
根据上述实施例可知,在PLC网络中的各个节点可接收到不同的用于指示时隙占用顺序的信息,例如第一信息、第二信息和反馈信息。如果某一个节点接收到两条及以上用于指示时隙占用顺序的信息,该节点通常根据最后接收到的信息确定自身可占用的时隙。
在上述实施例中,提供一种PLC方法。为了明确本申请实施例提供的方案,以下公开一个示例。
在该示例中,PLC网络中包括第一节点和至少一个其他节点,所述其他节点包括三个第二节点,所述三个第二节点分别为第二节点1、第二节点2和第二节点3,另外,所述PLC网络中的其他节点还可以包括第三节点、第四节点和第五节点等。
其中,所述第一节点可生成第一信息,所述第一信息中包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,以及指示所述第一节点是否占用下一个时隙。并且,所述第一节点还可通过广播形式发送所述第一信息。PLC网络中的其他节点可接收所述第一信息。
如果所述第一指示信息指示所述第一节点不会占用下一个时隙,并且,所述第二节点1排在所述时隙占用顺序的首位,则所述第二节点1确定自身可占用下一个时隙。
如果所述第一指示信息指示的所述时隙占用顺序中,所述第二节点2排在所述时隙占用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,即所述第三节点排在所述第二节点2的前面,并且,所述第一指示信息指示所述第一节点不会占用下一个时隙,那么,所述第二节点2会监测所述第三节点的数据信息的发送情况,并在所述第三节点完成数据信息的发送后,占用所述第三节点完成数据信息发送后的时隙。或者,如果所述第二节点2监测到所述第三节点处于静默状态,即所述第三节点未发送数据信息,则所述第二节点2等待所述第三节点静默预设时长后,所述第二节点再占用所述预设时长后的时隙。
另外,所述第一信息中可能还包括数据信息,并且,所述数据信息的接收节点为第四节点,这种情况下,所述第四节点在接收到所述第一信息之后,还可发送反馈信息,相应的,PLC网络内的各个节点可接收所述反馈信息。
如果在所述第一指示信息指示的所述时隙占用顺序中,所述第二节点1排在所述 时隙占用顺序的首位,并且所述第二节点1通过所述反馈信息,确定所述第四节点占用下一个时隙,则所述第二节点1在所述下一个时隙保持静默状态,以避免自身发送的数据信息与第四节点发送的数据信息出现冲突。
另外,如果PLC网络中的各个第二节点在解析所述第一指示信息时失败,则所述各个第二节点保持静默状态,直到接收到下一条用于指示时隙占用顺序的信息,再通过再次接收到的信息,确定自身可占用的时隙。
相应的,PLC网络中的第三节点、第四节点和第五节点在解析所述第一指示信息失败之后,通常也会保持静默状态,直到接收到下一条用于指示时隙占用顺序的信息。
所述第一信息中可以包括数据信息,这种情况下,PLC网络中除第一节点以外的其他节点根据所述第一信息中包括的所述数据信息的目的地址,确定自身是否为所述数据信息的接收节点。其中,如果第二节点1为所述接收节点,在接收到所述第一信息之后,所述第二节点1还可通过第二信道发送反馈信息。
另外,如果第二节点1为时隙占用顺序指示的最后一个第二节点,并且接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,所述第二节点1可生成第二信息,以便其他节点根据所述第二信息确定自身可占用的时隙。这种情况下,所述第二信息可为Final PHY帧。
或者,如果第二节点1为时隙占用顺序指示的最后一个第二节点,在所述时隙占用顺序中,排在所述第二节点前一位的节点为第五节点,所述第二节点1会监测第五节点的数据发送情况,在所述第五节点完成数据信息的发送之后,所述第二节点1可生成并发送第二信息。
这种情况下,所述第二信息可为Final PHY帧。另外,如果所述第二节点1需要发送数据,可在所述第二信息中加载需要发送的数据信息,这种情况下,所述第二信息还可以为MSG PHY帧。
或者,如果第二节点1为时隙占用顺序指示的最后一个第二节点,在所述第二节点1完成数据信息的发送之后,所述第二节点1也可生成并发送第二信息,这种情况下,所述第二信息可为Final PHY帧。
另外,在这一示例中,PLC网络中的节点往往可接收到多条用于指示时隙占用顺序的信息,例如,可接收到第一信息、反馈信息和第二信息。如果某一个节点接收到两条及两条以上可用于指示时隙占用顺序的信息,该节点通常通过最晚接收到的信息确定自身可占用的时隙。
本申请的上述实施例中,分别介绍了PLC网络中的第一节点和第二节点执行的操作,为了明确本申请提供的PLC方法,本申请公开了一个PLC方法的示例,并公开了图8,其中,图8为PLC网络中各个节点发送的信息的示意图。
在该示例中,所述PLC网络中包括四个节点,其中任意一个节点可为第一节点,其余三个节点为第二节点,三个第二节点分别为第二节点1、第二节点2和第二节点3。在该示例中,包括以下步骤:
(1)第一节点生成并发送第一信息。
其中,如果所述第一节点需要向其他节点发送数据信息,则所述第一信息中还可包括数据信息,相应的,所述第一信息可以为MSG PHY帧;另外,如果第一节点需 要向其他节点发送反馈信息,则所述第一信息也可以为所述反馈信息,这种情况下,所述第一信息可以为ACK PHY帧;或者,所述第一信息还可以为Final PHY帧。
另外,如果所述第一信息中包括数据信息,则所述第一信息中还包括所述数据信息的接收节点的目的地址。
在第一信息中包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙,并且,所述第一指示信息通常位于所述第一信息的帧头。
在本申请的这一示例中,参见图8,可通过“Continue send flag”(继续发送标志)这一字段指示所述第一节点是否占用下一个时隙,并且,如果Continue send flag字段置1,则表示第一节点会占用下一个时隙,如果Continue send flag字段置0,则表示第一节点不会占用下一个时隙。其中,Continue send flag字段通常可占用1bit。
另外,在这一示例中,通过所述第一节点的节点标识与所述至少一个第二节点的节点标识的差值指示第一节点以外的其他节点的时隙占用顺序,其中,所述差值根据所述时隙占用顺序排列。这种情况下,参见图8所示的示例,在第一信息中,包括多个依次排列的“next send ID”(下一个发送ID)字段,每一个字段中包括一个其他节点对应的节点标识的差值,如果所述其他节点包括第二节点1、第二节点2和第二节点3,以及所述第一节点确定时隙占用顺序依次为第二节点1、第二节点2和第二节点3,则在所述第一信息中包括至少三个依次排列的next send ID字段,第一个next send ID字段中包含所述第一节点的节点标识与第二节点1的节点标识的差值,第二个next send ID字段中包含所述第一节点的节点标识与第二节点2的节点标识的差值,第三个next send ID字段中包含所述第一节点的节点标识与第二节点3的节点标识的差值。其中,每一个next send ID字段通常可占用2bit。
在所述第一信息中,还可以包括用于指示所述时隙占用顺序对应的第二节点的数量的字段,示例性的,该字段可为“next node number”字段,并且,如果所述第一信息仅用于指示三个第二节点的时隙占用顺序,该字段中包含“三”这一数值。
第一节点在生成所述第一信息之后,通过广播形式发送所述第一信息,以使PLC网络内的其他节点可获取所述第一信息。
(2)如果所述第一信息中包括数据信息,PLC网络中的其他节点在接收到所述第一信息之后,根据所述第一信息中的数据信息的接收节点的目的地址,确定自身是否为所述接收节点,并且,所述接收节点生成并发送反馈信息,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
在本示例中,设定第二节点2为所述数据信息的接收节点,这种情况下,在接收到所述第一信息之后,所述第二节点2生成并发送反馈信息,其中,所述反馈信息可为ACK PHY帧。
参见图8所示的示意图,在所述反馈信息中,可设置“will send flag”(将发送标志)字段,并通过这一字段指示所述发送所述反馈信息的第二节点是否占用下一个时隙。示例性的,如果will send flag字段置1,则表示发送所述反馈信息的第二节点会占用 下一个时隙,如果will send flag字段置0,则表示发送所述反馈信息的第二节点不会占用下一个时隙。并且,will send flag字段通常可占用1bit。
并且,第二节点2还可以确定PLC网络中其他节点的时隙占用顺序,并在所述反馈信息中加载自身确定的所述时隙占用顺序。这种情况下,参见图8所示的示意图,所述反馈信息中还包括多个依次排列的“next send ID”字段,并通过所述多个依次排列的“next send ID”字段指示第二节点2确定的时隙占用顺序。
如果所述第二节点2确定的时隙占用顺序依次为第二节点1、第二节点2和第二节点3,则在所述反馈信息中至少包括三个依次排列的next send ID字段,第一个next send ID字段中包含所述第一节点的节点标识与第二节点1的节点标识的差值,第二个next send ID字段中包含所述第一节点的节点标识与第二节点2的节点标识的差值,第三个next send ID字段中包含所述第一节点的节点标识与第二节点3的节点标识的差值。其中,每一个next send ID字段通常可占用2bit。
或者,如果所述第二节点2确定的时隙占用顺序与所述第一信息指示的时隙占用顺序相同,在所述反馈信息中,可不包含所述next send ID字段,而是包括一个特定的字符,通过该特定字符,用于表征所述第二节点2确定的时隙占用顺序与所述第一信息指示的时隙占用顺序相同。
(3)在本示例中,第二节点2不占用下一时隙,即第二节点2发送的反馈信息中的will send flag字段置0。
第二节点1接收所述第一信息与所述第二节点2发送的反馈信息。由于所述第二节点1接收所述第二节点2发送的反馈信息的时间较晚,所述第二节点1可在所述第一节点和第二节点2均不占用下一个时隙时,通过所述第二节点2发送的反馈信息确定自身占用的时隙。
如果所述第一节点和第二节点2均不占用下一个时隙,并且所述反馈信息指示所述第二节点1位所述时隙占用顺序的首位,则所述第二节点1占用下一个时隙。这种情况下,如果所述第二节点1需要发送数据,则可通过自身可占用的时隙发送数据,如果所述第二节点1不需要发送数据,则可保持静默状态。
(4)在所述反馈信息指示的时隙占用顺序中,所述第二节点2位于所述第二节点1后一位,这种情况下,所述第二节点2监测所述第二节点1的数据发送情况。
如果所述第二节点2监测到所述第二节点1发送了数据信息,所述第二节点2等待所述第二节点1完成数据信息的发送之后,确定自身可占用所述第二节点1完成数据信息的发送之后的时隙。
如果所述第二节点2监测到所述第二节点1在预设的T1时间段内一直静默,则所述第二节点2认为所述第二节点1不需要发送数据信息,并确定自身可占用所述T1时间段之后的时隙。
另外,如果所述第二节点2解析反馈信息失败,则所述第二节点2保持静默状态,直到再次接收到用于指示时隙占用顺序的信息,然后再通过再次接收到的信息,确定自身可占用的时隙。
(3)第二节点3监测第二节点2的数据发送情况。
如果所述第二节点3监测到所述第二节点2发送了数据信息,所述第二节点3等 待所述第二节点2完成数据信息的发送之后,确定自身可占用所述第二节点2完成数据信息的发送之后的时隙。
如果所述第二节点3监测到所述第二节点2在预设的T2时间段内一直静默,则所述第二节点3认为所述第二节点2不需要发送数据信息,则确定自身可占用所述T2时间段之后的时隙。
另外,如果所述第二节点3解析反馈信息失败,则所述第二节点3保持静默状态,直到再次接收到用于指示时隙占用顺序的信息,然后再通过再次接收到的信息,确定自身可占用的时隙。
进一步的,如果所述第二节点3最近一次接收到的用于指示时隙占用顺序的信息中,指示所述第二节点3为所述时隙占用顺序指示的最后一个第二节点,则所述第二节点3监测到在接收到第一信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,或者,在所述时隙占用顺序中,排在所述第二节点3前一位的节点(即第二节点2)完成数据信息的发送,或者,所述第二节点3完成数据信息的发送之后,所述第二节点3还可生成并发送第二信息。
其中,所述第二信息包括第二指示信息,所述第二指示信息用于指示所述PLC网络内其他节点的时隙占用顺序,以及还用于指示所述第二节点是否占用下一个时隙。
另外,PLC网络内的其他节点(即第一节点、第二节点1和第二节点2)在接收到所述第二信息之后,可根据所述第二信息,确定自身可占用的时隙。
所述第二信息可以为Final PHY帧。或者,如果所述第二节点3需要发送数据信息,所述第二信息也可包括所述第二节点3需要发送的数据信息,这种情况下,所述第二信息还可以为MSG PHY帧。
参见图8所示的示意图,所述第二节点3发送的第二信息中,可以包括一个“will send flag”字段,并通过这一字段指示自身是否需要占用下一个时隙。另外,所述第二信息还可以包括多个依次排列的“next send ID”字段,并通过所述多个依次排列的“next send ID”字段指示第二节点3确定的时隙占用顺序。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
与上述的PLC方法相对应的,本申请实施例还提供一种电力线通信PLC装置,所述装置应用于PLC网络,所述PLC网络包括所述第一节点和至少一个其他节点。参见图9所示的结构示意图,所述装置包括:处理单元110与收发单元120。
其中,所述处理单元110用于生成第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙。
所述收发单元120用于发送所述第一信息。
在本申请实施例提供的方案中,所述第一信息可以为多种形式的信息。在其中一种可行的实现方式中,所述第一信息还包括数据信息。
这种情况下,所述收发单元120还用于,接收第二节点发送的反馈信息。所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所 述反馈信息的所述第二节点是否占用下一个时隙。在本申请实施例提供的方案中,所述其他节点包括所述第二节点。
进一步的,所述第三指示信息还用于指示发送所述反馈信息的第二节点之外的其他节点的时隙占用顺序。
示例性的,所述第一信息为数据物理层MSG PHY帧,所述MSG PHY帧包括第一帧头,所述第一帧头包括所述第一指示信息;
所述反馈信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第三指示信息。
或者,在另一种可行的实现方式中,所述第一信息还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收到的信息。
示例性的,所述第一信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第四指示信息。
或者,在另一种可行的实现方式中,所述第一信息为托底物理层Final PHY帧,所述Final PHY帧包括第三帧头,所述第三帧头包括所述第一指示信息。
另外,在本申请实施例提供的方案中,在发送所述第一指示信息之后的第一时间段内,若所述其他节点均处于静默状态,所述收发单元还用于,再次发送所述第一信息。
在一种可行的实现方式中,所述时隙占用顺序通过节点标识之间的差值来指示,所述节点标识包括所述第一节点的标识和所述其他节点的标识。
相应的,与上述的PLC方法相对应的,本申请实施例还提供一种电力线通信PLC装置,所述装置应用于PLC网络,所述PLC网络包括至少两个节点,所述至少两个节点包括第一节点和所述第二节点。参见图10所示的结构示意图,所述装置包括:处理单元210与收发单元220。
所述收发单元220用于接收第一信息。所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙。
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,所述处理单元210用于确定所述第二节点占用下一个时隙。
进一步的,在本申请实施例提供的方案中,所述至少两个节点还包括第三节点。这种情况下,若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述处理单元210还用于,等待所述第三节点发送完数据信息后,再确定所述第二节点再占用所述第三节点完成数据信息发送后的时隙,或者所述处理单元210还用于,等待所述第三节点静默预设时长后,再确定所述第二节点占用所述预设时长后的时隙。
进一步的,在本申请实施例提供的方案中,所述至少两个节点还包括第四节点,所述第四节点还发送反馈信息。
若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占 用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,并且所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙时,所述处理单元210还用于,确定所述第二节点在所述下一个时隙保持静默状态。
进一步的,在本申请实施例提供的方案中,所述处理单元210还用于,在所述第二节点在解析所述第一指示信息失败之后,确定所述第二节点保持静默状态。
所述第一信息可包括多种形式。在其中一种可行的形式中,所述第一信息还包括数据信息,所述第二节点为所述第一信息中包括的数据信息的接收节点。这种情况下,在接收到所述第一指示信息之后,所述收发单元220还用于,通过第一信道发送反馈信息,所述第一信道与第二信道不同,所述第二信道为所述第二节点通过所述时隙占用顺序指示的时隙发送信息时占用的信道。
其中,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
另外,如果所述第二节点为所述时隙占用顺序指示的最后一个第二节点,在本申请实施例提供的方案中,如果接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,或者,第五节点完成数据信息的发送之后,或者,所述第二节点完成数据信息的发送之后,所述处理单元210还用于,生成第二信息。其中,所述第五节点在所述时隙占用顺序中,排在所述第二节点前一位的节点。
这种情况下,所述收发单元220还用于,发送所述第二信息。
其中,所述第二信息包括第二指示信息,所述第二指示信息用于指示所述PLC网络内其他节点的时隙占用顺序,以及还用于指示所述第二节点是否占用下一个时隙。
相应的,本申请实施例还提供一种终端装置。参见图11所示的结构示意图,所述终端装置包括:处理器1101和存储器,其中,所述存储器存储有计算机程序,所述处理器执行所述存储器中存储的计算机程序时,实现图3、图4和图6对应的实施例中的全部或部分步骤。
进一步的,该终端装置还可以包括:收发器1102和总线1103,所述存储器包括随机存取存储器1104和只读存储器1105。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该终端装置时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导该装置进入正常运行状态。在该装置进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述终端装置执行图3、图4和图6对应的实施例中的全部或部分步骤。
本发明实施例的装置可对应于上述图9所对应的实施例中的PLC装置,并且,该装置中的处理器等可以实现图9所对应的实施例中的装置所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述。
相应的,本申请实施例还提供一种终端装置。所述终端装置包括:处理器和存储器,其中,所述存储器存储有计算机程序,所述处理器执行所述存储器中存储的计算机程序时,实现图7对应的实施例中的全部或部分步骤。
进一步的,该终端装置还可以包括:收发器和总线,所述存储器包括随机存取存 储器和只读存储器。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该终端装置时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导该装置进入正常运行状态。在该装置进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述终端装置执行图7对应的实施例中的全部或部分步骤。
本发明实施例的装置可对应于上述图10所对应的实施例中的PLC装置,并且,该装置中的处理器等可以实现图10所对应的实施例中的装置所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述。
具体实现中,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令。其中,设置在任意设备中计算机可读介质其在计算机上运行时,可实施包括图3、图4和图6对应的实施例中的全部或部分步骤。所述计算机可读介质的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
另外,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括指令。其中,设置在任意设备中计算机可读介质其在计算机上运行时,可实施包括图7对应的实施例中的全部或部分步骤。所述计算机可读介质的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
本申请另一实施例还提供一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备可实施包括图3、图4和图6对应的实施例中的全部或部分步骤。
本申请另一实施例还提供一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备可实施包括图7对应的实施例中的全部或部分步骤。
相应的,本申请实施例还公开一种电力线通信PLC系统,所述PLC系统包括:
上述图9所对应的实施例中的PLC装置,并且,该装置中的处理器等可以实现图9所对应的实施例中的装置所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述;
上述图10所对应的实施例中的PLC装置,并且,该装置中的处理器等可以实现图10所对应的实施例中的装置所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述。
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于UE中。可选地,处理器和存储媒介也可以设置于UE中的不同的部件中。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
本说明书的各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。
以上所述的本发明实施方式并不构成对本发明保护范围的限定。
Claims (22)
- 一种电力线通信PLC方法,其特征在于,所述方法应用于PLC网络,所述PLC网络包括第一节点和至少一个其他节点,所述方法包括:所述第一节点生成第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;所述第一节点发送所述第一信息。
- 根据权利要求1所述的方法,其特征在于,所述第一信息还包括数据信息,所述其他节点包括第二节点,所述方法还包括:所述第一节点接收第二节点发送的反馈信息,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
- 根据权利要求2所述的方法,其特征在于,所述第三指示信息还用于指示发送所述反馈信息的第二节点之外的其他节点的时隙占用顺序。
- 根据权利要求2或3所述的方法,其特征在于,所述第一信息为数据物理层MSG PHY帧,所述MSG PHY帧包括第一帧头,所述第一帧头包括所述第一指示信息;所述反馈信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第三指示信息。
- 根据权利要求1所述的方法,其特征在于,所述第一信息还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收到的信息。
- 根据权利要求5所述的方法,其特征在于,所述第一信息为确认物理层ACK PHY帧,所述ACK PHY帧包括第二帧头,所述第二帧头包括所述第四指示信息。
- 根据权利要求1所述的方法,其特征在于,所述第一信息为托底物理层Final PHY帧,所述Final PHY帧包括第三帧头,所述第三帧头包括所述第一指示信息。
- 根据权利要求1至7任一项所述的方法,其特征在于,所述时隙占用顺序通过节点标识之间的差值来指示,所述节点标识包括所述第一节点的标识和所述其他节点的标识。
- 一种电力线通信PLC方法,其特征在于,所述方法应用于PLC网络,所述PLC网络包括至少两个节点,所述至少两个节点包括第一节点和第二节点,所述方法包括:所述第二节点接收第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点确定占用下一个时隙。
- 根据权利要求9所述的方法,其特征在于,所述至少两个节点还包括第三节点,所述方法还包括:若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占 用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述第二节点等待所述第三节点发送完数据信息后,所述第二节点再占用所述第三节点完成数据信息发送后的时隙,或者所述第二节点等待所述第三节点静默预设时长后,所述第二节点再占用所述预设时长后的时隙。
- 根据权利要求9或10所述的方法,其特征在于,所述至少两个节点还包括第四节点,所述第四节点还发送反馈信息,所述方法还包括:若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,并且所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙时,所述第二节点在所述下一个时隙保持静默状态。
- 根据权利要求9至11任一项所述的方法,其特征在于,所述第一信息还包括数据信息,所述方法还包括:所述第二节点为所述第一信息中包括的数据信息的接收节点,在接收到所述第一指示信息之后,所述第二节点通过第一信道发送反馈信息,所述第一信道与第二信道不同,所述第二信道为所述第二节点通过所述时隙占用顺序指示的时隙发送数据信息时占用的信道;其中,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述第二节点是否占用下一个时隙。
- 根据权利要求9至12任一项所述的方法,其特征在于,如果所述第二节点为所述时隙占用顺序指示的最后一个第二节点,所述方法还包括:如果接收到所述第一指示信息后的第三时间段内,所述PLC网络内的各个节点均处于静默状态,或者,第五节点完成数据信息的发送之后,或者,所述第二节点完成数据信息的发送之后,所述第二节点生成并发送第二信息,其中,所述第五节点为在所述时隙占用顺序中,排在所述第二节点前一位的节点;所述第二信息包括第二指示信息,所述第二指示信息用于指示所述PLC网络内其他节点的时隙占用顺序,以及还用于指示所述第二节点是否占用下一个时隙。
- 一种电力线通信PLC装置,其特征在于,所述装置应用于PLC网络,所述PLC网络包括第一节点和至少一个其他节点,所述装置包括:处理单元,用于生成第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的所述其他节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;收发单元,用于发送所述第一信息。
- 根据权利要求14所述的装置,其特征在于,所述其他节点包括第二节点,所述第一信息还包括数据信息;所述收发单元还用于,接收第二节点发送的反馈信息,所述反馈信息包括第二指示信息和第三指示信息,所述第二指示信息用于指示发送所述反馈信息的所述第二节点是否正确接收所述数据信息,所述第三指示信息用于指示发送所述反馈信息的所述 第二节点是否占用下一个时隙。
- 根据权利要求14所述的装置,其特征在于,所述第一信息还包括第四指示信息,所述第四指示信息用于指示所述第一节点是否正确接收上一条接收到的信息。
- 一种电力线通信PLC装置,其特征在于,所述装置应用于PLC网络,所述PLC网络包括至少两个节点,所述至少两个节点包括第一节点和第二节点,所述装置包括:收发单元和处理单元;所述收发单元用于接收第一信息,所述第一信息包括第一指示信息,所述第一指示信息用于指示除所述第一节点之外的其他所述节点的时隙占用顺序,所述第一指示信息还用于指示所述第一节点是否占用下一个时隙;若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,所述处理单元用于确定所述第二节点占用下一个时隙。
- 根据权利要求17所述的装置,其特征在于,所述至少两个节点还包括第三节点,若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的第二位,所述第三节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,则所述处理单元还用于,等待所述第三节点发送完数据信息后,再确定所述第二节点再占用所述第三节点完成数据信息发送后的时隙,或者所述处理单元还用于,等待所述第三节点静默预设时长后,再确定所述第二节点占用所述预设时长后的时隙。
- 根据权利要求17或18所述的装置,其特征在于,所述至少两个节点还包括第四节点,所述第四节点还发送反馈信息,若所述第一指示信息指示的所述时隙占用顺序中,所述第二节点排在所述时隙占用顺序的首位,且所述第一指示信息指示所述第一节点不会占用下一个时隙,并且所述第四节点发送的反馈信息指示所述第四节点占用下一个时隙时,所述处理单元还用于,确定所述第二节点在所述下一个时隙保持静默状态。
- 一种终端装置,其特征在于,应用于PLC网络,所述终端装置包括处理器和存储器,所述存储器中存储有计算机程序;所述处理器执行所述存储器中存储的计算机程序,以使所述终端装置执行如权利要求1至13任一项所述的方法。
- 一种可读存储介质,其特征在于,所述可读存储介质用于存储指令;当所述指令被执行时,实现如权利要求1至13中任一项所述的方法。
- 一种电力线通信PLC系统,其特征在于,包括:权利要求14至19任一项所述的PLC装置。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010608029.3A CN113938161B (zh) | 2020-06-29 | 2020-06-29 | 一种电力线通信plc方法及装置 |
CN202010608029.3 | 2020-06-29 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022001867A1 true WO2022001867A1 (zh) | 2022-01-06 |
Family
ID=79273292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/102345 WO2022001867A1 (zh) | 2020-06-29 | 2021-06-25 | 一种电力线通信plc方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113938161B (zh) |
WO (1) | WO2022001867A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242267A (zh) * | 2022-06-01 | 2022-10-25 | 华为数字能源技术有限公司 | 一种电力线通信plc方法及装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040160990A1 (en) * | 2002-09-25 | 2004-08-19 | Oleg Logvinov | Method and system for timing controlled signal transmission in a point to multipoint power line communications system |
CN101047596A (zh) * | 2006-06-13 | 2007-10-03 | 华为技术有限公司 | 总线系统的资源分配方法 |
CN103560840A (zh) * | 2013-10-28 | 2014-02-05 | 华为技术有限公司 | 一种终端状态监测的方法、设备和系统 |
US10602530B2 (en) * | 2014-07-23 | 2020-03-24 | Bayerische Motoren Werke Aktiengesellschaft | Access method with access slots and priority resolution |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050063422A1 (en) * | 2003-09-19 | 2005-03-24 | Sashi Lazar | Communication protocol over power line communication networks |
CN105337639B (zh) * | 2015-10-16 | 2017-10-27 | 哈尔滨工业大学 | 低压电力线通信准蛛网分形组网方法 |
JP6841846B2 (ja) * | 2016-04-27 | 2021-03-10 | 華為技術有限公司Huawei Technologies Co.,Ltd. | 光無線通信ネットワークにおける情報送信方法、調整機、および端末ノード |
CN109219144B (zh) * | 2018-11-09 | 2022-11-11 | 北京通广龙电子科技有限公司 | 无线Ad-hoc网络分布式资源分配的方法 |
-
2020
- 2020-06-29 CN CN202010608029.3A patent/CN113938161B/zh active Active
-
2021
- 2021-06-25 WO PCT/CN2021/102345 patent/WO2022001867A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040160990A1 (en) * | 2002-09-25 | 2004-08-19 | Oleg Logvinov | Method and system for timing controlled signal transmission in a point to multipoint power line communications system |
CN101047596A (zh) * | 2006-06-13 | 2007-10-03 | 华为技术有限公司 | 总线系统的资源分配方法 |
CN103560840A (zh) * | 2013-10-28 | 2014-02-05 | 华为技术有限公司 | 一种终端状态监测的方法、设备和系统 |
US10602530B2 (en) * | 2014-07-23 | 2020-03-24 | Bayerische Motoren Werke Aktiengesellschaft | Access method with access slots and priority resolution |
Also Published As
Publication number | Publication date |
---|---|
CN113938161B (zh) | 2022-12-06 |
CN113938161A (zh) | 2022-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10645724B2 (en) | Parallel data transmission method and apparatus | |
RU2684481C1 (ru) | Инициирующие кадры, адаптированные к пакетным политикам в 802.11-сети | |
US12016045B2 (en) | Multi link TXOP aggregation | |
US7522576B2 (en) | Distributed wireless access method based on network allocation vector table and apparatus of the same | |
US10231218B2 (en) | Method for transmitting a response request frame and a response frame in a multi-user based wireless communication system | |
JP5739071B2 (ja) | 複数のデバイスがデータ送信期間を共有することを可能にするための方法および装置 | |
TW202112164A (zh) | 提供多鏈路操作通道存取的方法及系統 | |
US20060227802A1 (en) | Method and apparatus for implementing medium access control in wireless distributed network | |
CN106550478B (zh) | 一种多用户传输网络分配矢量设置方法和装置 | |
US20110182178A1 (en) | Randomization Management For Carrier Sensing Multiple Access with Collision Avoidance (CSMA-CA) | |
EP3998830B1 (en) | Communication method, apparatus, computer-readable medium and electronic device | |
US11445503B2 (en) | Data transmission method and device for multiple radio frequency systems, storage medium and terminal | |
WO2017143849A1 (zh) | 一种休眠控制方法及相关设备 | |
WO2022001867A1 (zh) | 一种电力线通信plc方法及装置 | |
CN107750057B (zh) | 认知无线电网络中控制信道建立方法 | |
CN107070695B (zh) | 一种总线型网络负载自适应通信方法 | |
CN107926061B (zh) | 一种退避方法、传输消息方法及装置 | |
JP5366993B2 (ja) | 無線lanアクセス制御方法および無線lanシステム | |
KR20230116722A (ko) | Emlsr 동작을 지원하는 무선랜에서 저지연 통신을 위한 방법 및 장치 | |
JP2013098787A (ja) | 無線lanアクセス制御方法および無線lanシステム | |
JP7517426B2 (ja) | 基地局及び端末 | |
JP2010538513A (ja) | マスクされたノードの発生を減らす方法、そのためのノード及びコンピュータプログラム | |
US11606816B2 (en) | Method, node, and system for reducing collisions in a time-synchronized channel hopping network | |
WO2023039734A1 (zh) | 多链路通信方法、装置、设备及介质 | |
US12088508B2 (en) | Methods for data transmission on ethernet multidrop networks implementing dynamic physical layer collision avoidance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21832246 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21832246 Country of ref document: EP Kind code of ref document: A1 |