CN112821921A - Multi-node data packet transmission method based on power line carrier communication technology - Google Patents
Multi-node data packet transmission method based on power line carrier communication technology Download PDFInfo
- Publication number
- CN112821921A CN112821921A CN202011573330.1A CN202011573330A CN112821921A CN 112821921 A CN112821921 A CN 112821921A CN 202011573330 A CN202011573330 A CN 202011573330A CN 112821921 A CN112821921 A CN 112821921A
- Authority
- CN
- China
- Prior art keywords
- carrier
- node
- network
- data
- packet transmission
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the field of data communication, in particular to a multi-node data packet transmission method based on a time division multiplexing technology, which comprises the following steps: the carrier network maintenance node sequentially performs unicast network configuration on all carrier nodes according to the network topology; after the network configuration is completed, the carrier network maintenance node broadcasts a calibration network clock; according to the network configuration and the network clock, the carrier destination node calculates to obtain an inherent time slot; carrying out data packet transmission by a carrier primary node in the inherent time slot; after processing the data packet transmission, the carrier destination node responds to the packet transmission confirmation; and according to the packet transmission confirmation, the carrier wave master node performs subsequent data packet transmission operation. By using the invention, the time occupation in the communication frequency band on the power line can be reduced, the out-of-band interference caused by harmonic mixing to other frequency band carrier communication is reduced, and the effective data transmission efficiency is improved.
Description
Technical Field
The invention relates to the technical field of power line carrier communication, in particular to a multi-node data packet transmission method based on a power line carrier communication technology.
Background
The traditional power line carrier communication network mostly adopts a network model with one master and multiple slaves and realizes data exchange between the master node and the slave nodes by means of polling the slave nodes by the master node.
In addition, because the power line carrier environment is complex, harmonic waves attached to continuous transmission of carriers in the communication frequency band are easy to form mixing with interference noise on the power line, and out-of-band interference can be caused to carrier communication of other frequency bands working on the power line.
Disclosure of Invention
The invention provides a multi-node data packet transmission method based on a power line carrier communication technology, which is used for realizing direct data exchange between slave nodes, improving effective data transmission efficiency, reducing time occupation in a communication frequency band on a power line and reducing out-of-band interference caused by harmonic mixing to carrier communication of other frequency bands.
The technical solution of the invention is as follows:
a multi-node data packet transmission method based on a power line carrier communication technology comprises the following steps: the carrier network maintenance node sequentially performs unicast network configuration on all carrier nodes according to the network topology; after the network configuration is completed, the carrier network maintenance node broadcasts a calibration network clock; according to the network configuration and the network clock, the carrier destination node calculates to obtain an inherent time slot; carrying out data packet transmission by a carrier primary node in the inherent time slot; after processing the data packet transmission, the carrier destination node responds to the packet transmission confirmation; and according to the packet transmission confirmation, the carrier wave master node performs subsequent data packet transmission operation.
Preferably, the step of the carrier network maintenance node sequentially configuring the unicast network of all carrier nodes according to the network topology includes: a carrier network maintenance node stores a network topology; the carrier network maintenance node generates a tree topology taking a carrier destination node as a root, and the tree topology is contained in the network configuration; the carrier destination node stores the network configuration.
Preferably, after the network configuration is completed, the broadcasting, by the carrier network maintenance node, a calibrated network clock includes: the carrier network maintenance node broadcasts a calibration network clock with periodicity.
Preferably, the calculating, by the carrier destination node, the inherent time slot according to the network configuration and the network clock includes: a carrier node time slot number included in the network configuration; the carrier network maintains the slot number of the node, and the slot number is fixed to 0; and the time slot numbers of other carrier nodes are specified by the carrier network maintenance node.
Preferably, the transmitting data packets by the primary carrier node in the inherent time slot includes: calculating waiting timeout time before the carrier master node transmits the data packet; the wait timeout period ends within the native time slot.
Preferably, after the carrier destination node processes the data packet transmission, responding to the packet transmission acknowledgement includes: the carrier destination node receives data and is not limited by the inherent time slot; the carrier destination node performs a checking calculation on the data transmission packet number in the data packet transmission.
Preferably, the carrier destination node performing a checking calculation on the data transmission packet number in the data packet transmission includes: processing the data if the data transmission packet number is equal to the expected packet number; if the sum of the data transmission packet number and the data length is equal to the expected packet number, the retransmission is not processed data.
Preferably, the performing, by the carrier master node, a subsequent data packet transmission operation according to the packet transmission acknowledgement includes: the packet transmission acknowledgement carries a response packet number; and performing check calculation on the response packet number.
Preferably, the checking calculation of the response packet number includes: continuing transmission in response to the packet number being equal to the sum of the data transmission packet number and the data length; if the packet transmission confirmation is not received, retransmission is carried out; and when the maximum retransmission time threshold is reached, the data transmission is terminated.
Compared with the prior art, the invention has the beneficial effects that:
the carrier network maintenance node performs unicast network configuration on all carrier nodes and performs broadcast correction on a network clock; all carrier nodes calculate the inherent time slot, and can actively initiate data packet switching to any carrier node in the inherent time slot; according to the grouping confirmation calculated and responded by the carrier destination node according to the grouping information, the carrier master node can perform subsequent data grouping exchange, the limitation that the slave node cannot actively initiate data exchange is removed, the continuous data polling of the master node is avoided, the carrier communication time occupation on a power line is reduced, the influence of harmonic mixing on other frequency bands is reduced, and the efficiency of effective data in carrier transmission is improved.
Drawings
Fig. 1 is a flowchart of a multi-node data packet transmission method based on a power line carrier communication technology according to an embodiment of the present invention.
Fig. 2 is a flow chart of the change of the data transmission packet number and the expected packet number according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the accompanying drawings and detailed description.
As shown in fig. 1, which is a flowchart of a multi-node data packet transmission method based on a power line carrier communication technology according to an embodiment of the present invention, the method includes the following steps:
step 101, the carrier network maintenance node sequentially configures the unicast network of all carrier nodes according to the network topology.
Specifically, the carrier node parses the network configuration command of the carrier network maintenance node according to the network configuration protocol.
For example, the carrier network maintenance node is a, unicast network configuration is performed to a carrier node B in the network, and the carrier node B extracts and stores the effective information in the message according to the protocol, including: the carrier network maintains the address of node a, the addresses of other carrier nodes that can communicate with the node (carrier node B), the size of the carrier network, the time slot period of the carrier network, and the time slot number of the node (carrier node B).
Before the carrier node B receives the network configuration command of the carrier network maintenance node a, that is, before the carrier node B does not exist, the slot number does not perform any processing on the data packet transmission in the carrier network.
And 102, after the network configuration is completed, broadcasting and calibrating a network clock by the carrier network maintenance node.
Specifically, after receiving a network clock broadcast by the carrier network maintenance node, the carrier node performs network clock synchronization in a relative clock or real clock manner.
For example, using a synchronization manner of relative clocks, the carrier network maintains a broadcast clock count a, the network node B receives a broadcast clock count B, the channel transmission delay c, the clock count difference d between a and B is | a- (B-c) |, the network node B stores the clock difference d until the next time the carrier network maintains a broadcast clock count, and the carrier node B updates the clock count difference d.
Step 103, according to the network configuration and the network clock, the carrier destination node calculates to obtain the inherent time slot.
Specifically, the carrier destination node calculates the inherent time slot of the node by using the carrier network scale, the carrier network time slot period, and the time slot number of the node, which are obtained in the network configuration stage, and the network clock obtained in the network clock calibration stage.
For example, in the network configuration stage, the carrier node B obtains the carrier network size N, the carrier timeslot period T, and the timeslot number m, taking the broadcast relative clock as an example, the inherent timeslot of the carrier node B is an open interval ((m + N) × T, (m +1+ N) × T) of the network clock count, and N is an integer within the interval [0, + ∞).
And 104, carrying out data packet transmission by the primary carrier node in the inherent time slot.
Specifically, when the carrier node needs to exchange data with other nodes in the carrier network, it needs to satisfy that the current network clock count is in the inherent time slot, otherwise, it actively initiates data exchange after waiting for the network clock count to satisfy the condition.
For example, if the current clock count of the carrier node B is x and the clock count difference calculated in the broadcast time tick period is d, the network clock count is x + d, and if x + d is not within the open interval ((m + N × T, (m +1+ N × N) × T), and N is an integer within the interval [0, + ∞), the carrier node B needs to wait for the x + d value to satisfy the interval and initiate data packet transmission.
Step 105, the carrier destination node responds to the packet transmission acknowledgement after processing the data packet transmission.
Specifically, when receiving a data packet whose destination node is the node address, the carrier node extracts a carrier primary transmission node address according to a data packet transmission protocol, searches in a carrier node address list which is stored in a network configuration stage and can be used for intercommunication, and responds to a reception confirmation according to a packet number in data packet transmission if the carrier primary transmission node is in the list, otherwise, does not perform any processing.
For example, in the network configuration stage, the carrier node B acquires an address list of the carrier nodes capable of performing mutual communication as the carrier node C, and when the carrier node C serves as a primary node and initiates data packet transmission to the destination node carrier node B, the carrier node B determines whether data needs to be cached according to a data transmission packet number and an expected packet number, and replies a data packet transmission confirmation.
The use of the data transmission packet number and the expected packet number in the data packet transmission will be described in detail later.
And 106, carrying out subsequent data packet transmission operation by the carrier master node according to the packet transmission confirmation.
Specifically, if the carrier master node does not receive the packet transmission confirmation responded by the destination node, the retransmission is performed, if the maximum retransmission time threshold is reached, the data transmission is terminated, if the carrier master node receives the packet transmission confirmation responded by the destination node, the data transmission packet number is determined, and if the response packet number is equal to the sum of the expected packet number and the data length, the transmission is continued.
As mentioned above, the carrier destination node processes data packet transmission, and determines whether to perform data caching according to a data transmission packet number and an expected packet number in the data packet transmission; the carrier master node receives the data packet transmission acknowledgement, and determines whether to perform subsequent transmission according to the response packet number and the data transmission packet number in the data packet transmission, which will be described in detail below.
Fig. 2 is a flow chart illustrating the change between the data transmission packet number and the expected packet number according to the embodiment of the present invention.
Step 201, a data switching node list and a packet number list mapping are established.
The nodes in the data exchange node list correspond to the elements in the packet number list one by one, the elements in the packet number list comprise data transmission packet numbers and expected packet numbers, and the initial values are all 0.
The data packets are exchanged and await a data packet exchange acknowledgement, step 202.
Specifically, for a primary sending node, after a data packet switching packet is sent, a destination node continues data packet switching in response to the fact that a packet number is equal to the sum of a data transmission packet number and a sending data length, the data transmission packet number of the node is increased by the sending data length, and when the primary sending node waits for timeout, the data transmission packet number is increased by the remaining data length; for a destination node, after receiving a data packet switching packet, extracting a data transmission packet number in the data packet switching packet, if the sum of the data transmission packet number and the data length value is equal to an expected packet number, caching data, responding to the data packet switching confirmation, increasing the expected packet number by the data length, if the data transmission packet number is equal to the expected packet number, not caching the data, responding to the data packet switching confirmation, and if the other conditions are met, assigning the packet number to the expected packet number.
The following examples further illustrate the data transmission packet number and expected packet number usage.
1) The carrier node B data exchange node list contains a carrier node C, the corresponding data transmission packet number and the expected packet number are both initialized to 0, and according to the characteristics of the network configuration stage, the carrier node C data exchange node list also contains a carrier node B, and the corresponding data transmission packet number and the expected packet number are also initialized to 0.
2) The carrier node B has 1000 bytes of data to be transmitted to the carrier node C, the data packet exchange is carried out for 5 times, the carrier node B sends a first packet of data, and the data packet carries a data transmission packet number 0.
3) After receiving the data packet from the carrier node B, the carrier node C extracts the data transmission packet number 0 carried in the data packet, and the data transmission packet number is equal to the expected packet number 0 of the corresponding carrier node B, caches the data, changes the expected packet number to 200, and responds to the data packet exchange acknowledgement, wherein the response packet number in the data packet exchange acknowledgement is 200.
4) If the carrier node B receives the data packet response from the carrier node C in the step 3), extracting a response packet number of 200, wherein the sum of the data transmission packet number of 0 corresponding to the carrier node C and the sent data length of 200 is equal, sending second packet data, the data transmission packet number carried in the data packet is 200, after the carrier node C receives the data packet, extracting the data transmission packet number of 200, the expected packet number of 200 is equal to the expected packet number of 200, buffering the data, adding the expected packet number to 400, and the response packet number in the data packet exchange confirmation is 400.
5) If the carrier node B does not receive the data packet response from the carrier node C in the step 3), retransmitting the data packet, and still sending the first packet of data, wherein the data packet number carried in the data packet is 0. If the carrier node B still does not receive the data packet response from the carrier node C after retransmission, the data transmission is abandoned, and the data transmission packet number value is increased by the original data length 1000; if the carrier node C receives the data packet from the carrier node B after retransmission, the data transmission packet number 0 carried in the data packet is extracted and is not equal to the expected packet number 200 corresponding to the carrier node B, but the sum of the data length 200 and the data transmission packet number 0 is equal to the expected packet number 200, the retransmission is determined, data caching is not carried out, the expected packet number is not changed, and the data packet exchange confirmation is responded.
6) Similarly, the carrier node C actively initiates data packet switching to the carrier node B, and the process of changing the data transmission packet number and the expected packet number refers to 1) to 5).
The embodiments of the present invention are described in detail above.
Claims (9)
1. A multi-node data packet transmission method based on a power line carrier communication technology is characterized by comprising the following steps: the carrier network maintenance node sequentially performs unicast network configuration on all carrier nodes according to the network topology; after the network configuration is completed, the carrier network maintenance node broadcasts a calibration network clock; according to the network configuration and the network clock, the carrier destination node calculates to obtain an inherent time slot; carrying out data packet transmission by a carrier primary node in the inherent time slot; after processing the data packet transmission, the carrier destination node responds to the packet transmission confirmation; and according to the packet transmission confirmation, the carrier wave master node performs subsequent data packet transmission operation.
2. The method of claim 1, wherein the carrier network maintenance node performs unicast network configuration on all carrier nodes in sequence according to a network topology, and the unicast network configuration comprises: a carrier network maintenance node stores a network topology; the carrier network maintenance node generates a tree topology taking a carrier destination node as a root, and the tree topology is contained in the network configuration; the carrier destination node stores the network configuration.
3. The method of claim 1, wherein after the network configuration is completed, the carrier network maintenance node broadcasting a calibrated network clock, comprising: the carrier network maintenance node broadcasts a calibration network clock with periodicity.
4. The method of claim 1 wherein the carrier destination node calculates a natural time slot based on the network configuration and the network clock, comprising: a carrier node time slot number included in the network configuration; the carrier network maintains the slot number of the node, and the slot number is fixed to 0; and the time slot numbers of other carrier nodes are specified by the carrier network maintenance node.
5. The method of claim 1 wherein the transmitting a data packet by a primary carrier node in the inherent time slot comprises: calculating waiting timeout time before the carrier master node transmits the data packet; the wait timeout period ends within the native time slot.
6. The method of claim 1, wherein responding to a packet transmission acknowledgement after the carrier destination node processes the data packet transmission comprises: the carrier destination node receives data and is not limited by the inherent time slot; the carrier destination node performs a checking calculation on the data transmission packet number in the data packet transmission.
7. The method of claim 6, wherein the carrier destination node performs a check calculation on a packet number in the data packet transmission, comprising: processing the data if the data transmission packet number is equal to the expected packet number; if the sum of the data transmission packet number and the data length is equal to the expected packet number, the retransmission is not processed data.
8. The method of claim 1, wherein the performing, by the carrier master node, subsequent operations for data packet transmission according to the packet transmission acknowledgement comprises: the packet transmission acknowledgement carries a response packet number; checking calculation is performed in response to the packet number.
9. The method of claim 8, wherein: continuing transmission in response to the packet number being equal to the sum of the data transmission packet number and the data length; if the packet transmission confirmation is not received, retransmission is carried out; and when the maximum retransmission time threshold is reached, the data transmission is terminated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011573330.1A CN112821921A (en) | 2020-12-25 | 2020-12-25 | Multi-node data packet transmission method based on power line carrier communication technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011573330.1A CN112821921A (en) | 2020-12-25 | 2020-12-25 | Multi-node data packet transmission method based on power line carrier communication technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112821921A true CN112821921A (en) | 2021-05-18 |
Family
ID=75853942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011573330.1A Pending CN112821921A (en) | 2020-12-25 | 2020-12-25 | Multi-node data packet transmission method based on power line carrier communication technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112821921A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116828061A (en) * | 2023-08-18 | 2023-09-29 | 联桥科技有限公司 | Configuration method and system for power line carrier and wireless fusion communication |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105680975A (en) * | 2016-03-07 | 2016-06-15 | 浙江大学 | Time synchronization method of master-slave structure multi-node network |
CN105763410A (en) * | 2014-12-18 | 2016-07-13 | 国家电网公司 | HomePlug AV standard-based automatic relay networking method for power line broadband carrier band |
CN106100698A (en) * | 2016-06-12 | 2016-11-09 | 南京南瑞集团公司 | A kind of network-building method being applied to the power line carrier module that power information gathers |
CN107017921A (en) * | 2017-05-12 | 2017-08-04 | 南京南瑞微电子技术有限公司 | A kind of method for improving broadband power line carrier power information collecting efficiency |
CN108809356A (en) * | 2017-04-26 | 2018-11-13 | 北京化工大学 | A kind of implementation method based on TDMA technology hopped-frequency pulses |
CN110166952A (en) * | 2019-05-23 | 2019-08-23 | 西安电子科技大学 | Collection method for wireless sensor network data and system based on broadcast synchronization |
-
2020
- 2020-12-25 CN CN202011573330.1A patent/CN112821921A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105763410A (en) * | 2014-12-18 | 2016-07-13 | 国家电网公司 | HomePlug AV standard-based automatic relay networking method for power line broadband carrier band |
CN105680975A (en) * | 2016-03-07 | 2016-06-15 | 浙江大学 | Time synchronization method of master-slave structure multi-node network |
CN106100698A (en) * | 2016-06-12 | 2016-11-09 | 南京南瑞集团公司 | A kind of network-building method being applied to the power line carrier module that power information gathers |
CN108809356A (en) * | 2017-04-26 | 2018-11-13 | 北京化工大学 | A kind of implementation method based on TDMA technology hopped-frequency pulses |
CN107017921A (en) * | 2017-05-12 | 2017-08-04 | 南京南瑞微电子技术有限公司 | A kind of method for improving broadband power line carrier power information collecting efficiency |
CN110166952A (en) * | 2019-05-23 | 2019-08-23 | 西安电子科技大学 | Collection method for wireless sensor network data and system based on broadcast synchronization |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116828061A (en) * | 2023-08-18 | 2023-09-29 | 联桥科技有限公司 | Configuration method and system for power line carrier and wireless fusion communication |
CN116828061B (en) * | 2023-08-18 | 2024-04-02 | 联桥科技有限公司 | Configuration method and system for power line carrier and wireless fusion communication |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110691379B (en) | Active route communication method suitable for wireless ad hoc network | |
US8942212B2 (en) | Autoconfiguration system for wireless sensor network and its method, and gateway apparatus for wireless sensor network | |
CN104272836B (en) | The apparatus and method compressed for control frame and management frame | |
CN101753578B (en) | ETHERNET/EI protocol conversion method and protocol converter | |
Soua et al. | DiSCA: A distributed scheduling for convergecast in multichannel wireless sensor networks | |
JP5164157B2 (en) | Terminal device, terminal control method, and program | |
CN101242358B (en) | A flow shaping method and device | |
WO2015125078A1 (en) | Active antenna element (aae) implementation for facilitating 6lowpan data access | |
WO2015125079A1 (en) | Pico-rru-based network implementation for facilitating 6lowpan data access | |
CN112821921A (en) | Multi-node data packet transmission method based on power line carrier communication technology | |
CN102780633B (en) | Device and method for transmitting data based on CAPWAP (control and provisioning of wireless access points) protocol | |
WO2019029315A1 (en) | Synchronization signal block indication method and determining method, network device, and terminal device | |
CN105050196A (en) | Multi-user communication scheduling system and method based on full duplex relay caching | |
EP3108638A2 (en) | Baseband unit (bbu) implementation for facilitating 6lowpan data access | |
CN117998613A (en) | FPGA-based distributed TDMA protocol MAC controller | |
CN103716411B (en) | A kind of 230 MHz power information acquisition terminal remote communication methods based on SGWM | |
CN103716293A (en) | Low voltage power line spread spectrum communication protocol employing time scale synchronization collision detection method | |
CN113747582B (en) | Configuration method, device, storage medium and node of beacon time slot area | |
CN112788609B (en) | Chain type wireless sensor network transmission method | |
JP7447263B2 (en) | Network structures and methods for transmitting/receiving packets between network elements within a network | |
CN101267390B (en) | Asynchronous delay network communication method, its system and buffer processing device | |
CN100454910C (en) | Communication in a data network | |
CN112367669A (en) | Aircraft chain type networking channel access method and system | |
CN112020124A (en) | Low power consumption wireless mesh network and method for transceiving signals in wireless mesh network | |
CN105242908A (en) | Method for transmitting very high frequency radio large file based on serial hardware flow control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210518 |
|
WD01 | Invention patent application deemed withdrawn after publication |