Disclosure of Invention
In view of the above problems, the present invention provides a method and a system for measuring a channel of a dual-mode communication network to solve the deficiencies of the prior art.
According to an embodiment of the present invention, a dual-mode communication network channel measuring method is provided, which is applied to a dual-mode communication network based on a power line broadband carrier and a micropower wireless network, wherein the dual-mode communication network includes a central node and a plurality of sub-nodes, and both the central node and the sub-nodes support two communication modes of the power line broadband carrier and the micropower wireless network, and the dual-mode communication network channel measuring method includes:
acquiring attribute parameters of a power line broadband carrier channel and attribute parameters of a micropower wireless channel between any two communicable nodes in the dual-mode communication network;
acquiring communication parameters of corresponding channels according to the attribute parameters of the power line broadband carrier channel and the micropower wireless channel;
and respectively carrying out preset operation on the communication parameters of the power line broadband carrier channel and the communication parameters of the micropower wireless channel to generate a corresponding channel evaluation value.
In the above method for measuring a channel of a dual-mode communication network, the communication parameters include a communication success rate, a load transmission rate, and a channel quality.
In the above method for measuring a channel of a dual-mode communication network, the preset operation includes:
according to the communication success rate, the load transmission rate and the proportion of the channel quality in the channel measurement, different weights are given to the communication success rate, the load transmission rate and the channel quality;
and calculating a weighted average of the communication success rate, the load transmission rate and the channel quality according to the weight.
In the above method for measuring a channel of a dual-mode communication network, the communication success rate is obtained by evaluating at a physical layer or by counting at an MAC layer.
In the above method for measuring a channel of a dual-mode communication network, the method further includes:
in a physical layer, in the electric line broadband carrier network, evaluating the communication success rate of the corresponding network through the signal-to-noise ratio or the received signal strength;
in the micro-power wireless network, the communication success rate of the corresponding network is evaluated by the received signal strength.
In the above method for measuring a channel of a dual-mode communication network, the method further includes:
in the MAC layer, counting message receiving and transmitting information between two nodes in a preset time interval;
and calculating the communication success rate of the corresponding network according to the message receiving and sending information.
In the above method for measuring a channel of a dual-mode communication network, the message transmission and reception information includes the number of transmitted messages and the number of successfully received messages.
In the above method for measuring a channel of a dual-mode communication network, the communication success rate is a ratio of the number of successfully received messages to the number of sent messages.
In the above method for measuring a channel of a dual-mode communication network, the load transmission rate is a ratio of a length of the load data to a time used for transmitting the load data.
Another embodiment of the present invention provides a channel measurement system, which is applied to a dual-mode communication network based on a power line broadband carrier and a micropower wireless network, wherein the dual-mode communication network includes a central node and a plurality of sub-nodes, and both the central node and the sub-nodes support two communication modes of the power line broadband carrier and the micropower wireless network, and the channel measurement system includes:
the acquisition module is used for acquiring the attribute parameters of a power line broadband carrier channel and the attribute parameters of a micropower wireless channel between any two communicable nodes in the dual-mode communication network;
the computing module is used for acquiring communication parameters of corresponding channels according to the attribute parameters of the power line broadband carrier channel and the micropower wireless channel;
the preset budget module is used for respectively carrying out preset operation on the communication parameters of the power line broadband carrier channel and the communication parameters of the micropower wireless channel to generate a corresponding channel evaluation value.
In the above channel measuring system, the communication parameters include a communication success rate, a load transmission rate, and a channel quality.
In the above channel measuring system, the preset operation includes:
according to the communication success rate, the load transmission rate and the proportion of the channel quality in the channel measurement, different weights are given to the communication success rate, the load transmission rate and the channel quality;
and calculating a weighted average of the communication success rate, the load transmission rate and the channel quality according to the weight.
In the above channel measuring system, the communication success rate is obtained by performing evaluation at a physical layer or statistics at a MAC layer.
In the above channel measuring system, at the physical layer, in the electric line broadband carrier network, the communication success rate of the corresponding network is evaluated through the signal-to-noise ratio or the received signal strength;
in the micro-power wireless network, the communication success rate of the corresponding network is evaluated by the received signal strength or the link quality value.
In the channel measuring system, at the MAC layer, the message receiving and sending information between two nodes is counted in a preset time interval;
and calculating the communication success rate of the corresponding network according to the message receiving and sending information.
In the above channel measuring system, the message transceiving information includes the number of the transmitted messages and the number of the successfully received messages.
In the above channel measuring system, the communication success rate is a ratio of the number of successfully received messages to the number of transmitted messages.
In the above channel measuring system, the payload transmission rate is a ratio of a payload data length to a time used for transmitting the payload data.
In another embodiment of the present invention, a computer-readable storage medium is provided, in which the above-mentioned dual-mode communication network channel measuring method is stored.
The method and the system for measuring the channel of the dual-mode communication network at least provide the following technical effects: compared with a pure micropower wireless network or a power line broadband carrier network, the dual-mode network has richer communication relation among nodes by adopting a dual-mode communication mode based on a power line broadband carrier and a micropower wireless network; the method provides uniform communication parameters and channel evaluation values for the power line broadband carrier channel and the micropower wireless channel in the dual-mode communication network, reduces the difference between the power line broadband carrier network and the micropower wireless network, and provides uniform calculation standards for subsequent routing selection.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the multi-scale calibration plate is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The following detailed description of embodiments of the invention refers to the accompanying drawings.
Example 1
Fig. 1 is a flowchart illustrating a dual-mode communication network channel measurement method according to an embodiment of the present invention. The channel measuring method of the dual-mode communication network is applied to the dual-mode communication network based on the power line broadband carrier and the micropower wireless communication, the dual-mode communication network comprises a center node and a plurality of sub-nodes, and the center node and the sub-nodes both support two communication modes of the power line broadband carrier and the micropower wireless communication.
In this embodiment, compared with a power line narrowband carrier network, the power line narrowband carrier network has a faster network access speed, and the more stable the propagation environment, the higher the data rate that can be carried by a channel.
The micropower wireless network is a self-organizing network, and under a certain condition, the more nodes are, the more routing paths can be selected, and the higher the network reliability is.
Due to different network structures and communication modes of the dual-mode communication network, the dual-mode communication network is a heterogeneous communication network.
In the process of network communication, the geographic positions of the central node and the child nodes are relatively fixed and cannot be changed randomly, but are limited by the geographic positions, and the situation that the child nodes cannot directly perform network communication with the central node exists. For such a child node, it is necessary to connect with one or more other child nodes to enable a communication connection between the child node and the central node.
Due to the influence of the geographic environment, for example, part of nodes in a dual-mode communication network are located in a basement of a large building, power line broadband carrier communication is feasible among the nodes, but due to the influence of multi-level routing and signal penetrability, the communication rate of micro-power wireless is too low to meet the actual requirement of service data transmission, and the nodes can communicate with each other in a power line broadband carrier communication mode; when the wiring difficulty between any communicable nodes is large, such as the nodes are positioned at two sides of a river, the wiring difficulty and the overhead are particularly large, and the partial nodes can communicate in a micropower wireless communication mode; when the two nodes can communicate through a power line broadband carrier or micro-power wireless, a communication mode with better communication quality can be preferentially selected for communication. By mutual supplement of a power line broadband carrier and a micropower wireless communication mode, the coverage rate of a network is increased, and a high-efficiency and reliable data transmission function is realized.
Fig. 2 is a schematic structural diagram of a dual-mode communication network according to an embodiment of the present invention. The dual-mode communication network includes a central node and a plurality of sub-nodes, as shown in the figure, a represents the central node, and B1-B27 represent all the sub-nodes in the dual-mode communication network. The central node and the sub-nodes can communicate in two communication modes, namely, a power line broadband carrier and a micropower wireless communication mode. Uniformly treating the electric power broadband carrier and the micro-power wireless communication in the dual-mode communication network by using channels, wherein the electric power broadband carrier and the micro-power wireless communication are both used as channels for data transmission, and as shown in the figure, a solid line represents an electric power broadband carrier channel, namely, two nodes which can be communicated at will in the dual-mode communication network communicate through the electric power broadband carrier; the dotted line represents a micro-power wireless channel, i.e., communication between any two communicable nodes in the dual-mode communication network is performed by micro-power wireless.
The child node may be a communication device, a metering device, etc.
For example, in the technical field of power consumption information acquisition of power consumers, data such as power consumption, water consumption and gas consumption used by the consumers are measured through various metering devices. The data collection equipment is regarded as a central node in the dual-mode communication network, each metering equipment is regarded as a child node in the dual-mode communication network, the central node and the child nodes can be connected in a power line broadband carrier or micro-power wireless mode, and the central node collects various data recorded by the child nodes. The communication quality of two communication channels between any two communicable nodes is described by using the same communication parameters and a uniform measurement standard, for all the child nodes which cannot communicate with the central node, the child nodes communicate with the central node through the relay node according to a routing algorithm, for example, the child node B12 cannot directly communicate with the central node A, the data to be transmitted can be sent to the relay node B2, the relay node B2 forwards the data to the central node A, and a channel with the optimal communication quality can be selected between any two communicable nodes in the route for communication, so that the communication success rate of the whole dual-mode communication network is improved.
The method for measuring the channel of the dual-mode communication network comprises the following steps:
step S110, obtaining the attribute parameters of the power line broadband carrier channel and the attribute parameters of the micropower wireless channel between any two communicable nodes in the dual-mode communication network.
The attribute parameters of the power line broadband carrier channel comprise effective signal power, effective noise power, effective signal voltage, effective noise voltage, transmission rate, the number of sent messages, the number of successfully received messages, channel quality and the like.
The attribute parameters of the micro-power wireless channel comprise signal strength, transmission rate, number of sent messages, number of successfully received messages, channel quality and the like.
Step S120, calculating communication parameters of corresponding channels according to the attribute parameters of the power line broadband carrier channel and the micropower wireless channel.
The communication parameters include communication success rate, load transmission rate, channel quality and the like.
The communication success rate can be obtained by evaluation at the physical layer.
For example, in a power line broadband carrier channel, the communication success rate of the channel is evaluated by measuring the signal-to-noise ratio or the received signal strength of the channel.
The larger the signal-to-noise ratio is, the smaller the noise mixed in the signal is, the higher the signal demodulation success rate is, and the higher the communication success rate of the channel is; the smaller the signal-to-noise ratio, the greater the noise mixed in the signal, the lower the signal demodulation success rate, and the lower the communication success rate of the channel.
The signal-to-noise ratio can be obtained by:
SNR=10lg(Ps/Pn)
wherein, SNR is signal-to-noise ratio and the unit is dB; ps is the effective power of the signal, in units of W; pn is the effective power of the noise in units of W.
The signal-to-noise ratio can also be obtained by:
SNR=20lg(Vs/Vn)
wherein, SNR is signal-to-noise ratio and the unit is dB; vs is the effective value of the signal voltage, and the unit is V; vn is the effective value of the noise voltage in V.
The greater the RSSI (signal strength), the greater the signal-to-noise ratio, the closer the transmitter is to the receiver, the easier the signal is demodulated, and the higher the communication success rate of the channel is; the smaller the RSSI, the smaller the signal-to-noise ratio, the farther the transmitter is from the receiver, the less easily the signal is demodulated, and the lower the communication success rate of the channel.
In a micro-power wireless channel, the communication success rate of the channel is evaluated by measuring the Received Signal Strength (RSSI) of the channel.
The greater the RSSI (signal strength), the greater the signal-to-noise ratio, the closer the transmitter is to the receiver, the easier the signal is demodulated, and the higher the communication success rate of the channel is; the smaller the RSSI, the smaller the signal-to-noise ratio, the farther the transmitter is from the receiver, the less easily the signal is demodulated, and the lower the communication success rate of the channel.
The communication success rate may also be obtained by performing statistics at a Media Access Control (MAC) layer.
In an MAC layer of a power line broadband carrier network or a micro-power wireless network, counting message transmitting and receiving information between two nodes within a preset time interval; and calculating the communication success rate of the corresponding network according to the message receiving and sending information.
The message transceiving information may include the number of transmitted messages and the number of successfully received messages.
In this embodiment, the communication success rate may be obtained by the following formula:
communication success rate is the number of successfully received messages/the number of transmitted messages
For example, in 1h, the node P and the node Q communicate with each other via a power line carrier. In the power line broadband carrier channel, a node P sends 255 messages to a node Q, and the node Q successfully receives 243 messages sent by the node P, so that the communication success rate of the power line broadband carrier channel between the node P and the node Q is 243/255; if the node P and the node Q communicate wirelessly through micropower. In the micropower wireless channel, 255 messages are sent to the node Q by the node P, 229 messages sent by the node P are successfully received by the node Q, and then the communication success rate of the micropower wireless channel between the node P and the node Q is 229/255.
At the link layer, the communication success rate may also be described by Link Quality (LQI).
Representing the energy and quality of the received data frame. The size of which is calculated by the mac (media access control) layer and provided to the previous layer based on the signal strength and the detected signal-to-noise ratio (SNR), and is generally related to the probability of correctly receiving a data frame. The IEEE 802.15.4 standard defines link quality to indicator (LQI) to measure the strength and/or quality of received packets.
When the dual-mode communication network is initially established, the communication success rate can be obtained through evaluation at a physical layer, and after the dual-mode communication network operates stably, the communication success rate can be obtained through statistics of an MAC layer, so that the accuracy of the communication success rate in the dual-mode communication network is improved.
In addition, the communication success rate can be calculated at preset time intervals so as to obtain the real-time communication success rate of the dual-mode communication network and increase the precision of channel measurement.
In this embodiment, the payload transmission rate is described by a ratio of a payload data length to a time used for transmitting the payload data.
Wherein the time used for transmitting the payload data comprises: adding time overhead brought by an MAC layer, a frame head and frame tail of a physical layer, channel coding and the like; time overhead brought by preamble addition, synchronization and the like in physical layer transmission; other characteristics closely related to the physical layer of the channel, such as a guard interval inserted between two OFDM (Orthogonal Frequency Division Multiplexing) symbols of the power line broadband carrier, and network delay estimated by other layers in the protocol stack at the available communication rate.
For example, as shown in fig. 2, if the node B1 and the node B14 communicate with each other via a power line broadband carrier, and in the power line broadband carrier channel, the node B1 sends a data packet with a length of 200 bytes to the node B14, and the time used for transmitting the 200-byte data packet is 3ms, the load transmission rate of the power line broadband carrier channel between the node B1 and the node B14 is (200/1024) kb/3ms ≈ 64 kbps; if the node B1 and the node B14 communicate with each other through micro power radio, in the micro power radio channel, the node B1 sends a data packet with a length of 200 bytes to the node B14, and the time used for transmitting the 200-byte data packet is 6ms, the load transmission rate of the micro power radio channel between the node B1 and the node B14 is (200/1024) kb/6ms ≈ 32 kbps.
In some other embodiments, the load transfer rate may be further calculated by the following equation:
S=1/T(log2N)
wherein, T is the code element transmission rate, namely the number of the code elements transmitted per second; n represents the state of a valid value that a pulse can represent, corresponding to a binary number.
In this embodiment, the channel quality is described by CQI.
The CQI is an information indication of the channel quality, represents the quality of the current channel, and has a value range of 0-31. When the CQI is 0, the current channel quality is the worst; when the CQI is 31, it indicates that the current channel quality is the best. The typical common CQI is 12 to 24.
In some other embodiments, the channel quality may also be described by other parameters.
And step 130, performing preset operation on the communication parameters of the power line broadband carrier channel and the communication parameters of the micropower wireless channel respectively to generate a corresponding channel evaluation value.
Wherein the preset operation comprises:
according to the communication success rate, the load transmission rate and the proportion of the channel quality in the channel measurement, different weights are given to the communication success rate, the load transmission rate and the channel quality; and calculating a weighted average of the communication success rate, the load transmission rate and the channel quality according to the weight.
For example, the corresponding channel evaluation value may be calculated by:
channel estimation value ═ communication success rate × m% + payload transmission rate × n% + channel quality × r%
Wherein, m, n, r respectively represent the weight of the communication success rate, the load transmission rate and the channel quality in the channel measurement, and m% + n% + r% is 1.
For example, if the communication success rate needs to be guaranteed first when data is transmitted in the dual-mode communication network, the communication success rate has the greatest proportion in the channel measurement and may be given a weight of 70, the load transmission rate has the greatest proportion in the channel measurement and is given a weight of 20, and the channel quality has the least proportion in the channel measurement and is given a weight of 10.
As shown in fig. 2, in the power line broadband carrier channel between the node B1 and the node B14, the specific values corresponding to the communication success rate, the load transmission rate, and the channel quality are: 243/255, 64 and 20, the channel evaluation value of the power line broadband carrier channel is 243/255 × 70% +64 × 20% +20 × 10% + 15.4671.
In the micropower wireless channel, the communication success rate, the load transmission rate and the channel quality correspond to specific values: 229/255, 32 and 21,. Then, the channel evaluation value of the micropower wireless channel is 229/255 × 70% +32 × 20% +21 × 10% + 9.1286.
After the channel evaluation values between the node B1 and the node B14 are obtained, in the subsequent path selection process, the channel with the best communication quality, namely the power line broadband carrier channel, is preferentially selected between the two nodes for communication.
In the whole dual-mode communication network, because two communicable nodes can communicate in two communication modes of power line broadband carrier or micropower wireless, channel evaluation values of different channels between two communicable nodes (such as between the node A and the node B1, between the node A and the node B2, between the node A and the node B3, between the node A and the node B4, between the node B1 and the node B14, between the node B1 and the node B15 and the like) are calculated by a dual-mode communication network channel measuring method, channels of two types of networks are described by uniform parameters, and a uniform channel measuring standard is provided for subsequent path selection.
Example 2
Fig. 3 is a schematic structural diagram illustrating a dual-mode communication network channel measurement system according to an embodiment of the present invention.
The dual-mode communication network channel measuring system 100 is applied to a dual-mode communication network based on power line broadband carrier and micropower wireless, the dual-mode communication network comprises a central node and a plurality of sub-nodes, and the central node and the sub-nodes both support two communication modes of the power line broadband carrier and the micropower wireless.
The dual-mode communication network channel measurement system 100 includes an obtaining module 110, a calculating module 120, and a predetermined operation module 120.
An obtaining module 110, configured to obtain an attribute parameter of a power line broadband carrier channel and an attribute parameter of a micropower wireless channel between any two communicable nodes in the dual-mode communication network.
A calculating module 120, configured to calculate a communication parameter of a corresponding channel according to the attribute parameters of the power line broadband carrier channel and the micropower wireless channel.
The preset budget module 130 is configured to perform preset operations on the communication parameters of the power line broadband carrier channel and the communication parameters of the micropower wireless channel, respectively, to generate a corresponding channel evaluation value.
Preferably, the communication parameters include a communication success rate, a payload transmission rate, and a channel quality.
Preferably, the preset operation includes:
according to the communication success rate, the load transmission rate and the proportion of the channel quality in the channel measurement, different weights are given to the communication success rate, the load transmission rate and the channel quality; and calculating a weighted average of the communication success rate, the load transmission rate and the channel quality according to the weight.
Another embodiment of the present invention further provides a computer-readable storage medium, in which the above dual-mode communication network channel measuring method is stored.
Therefore, the invention provides a method and a system for measuring a channel of a dual-mode communication network, which adopt a dual-mode communication mode based on a power line broadband carrier and a micropower wireless network, and compared with a pure micropower wireless network or a power line broadband carrier network, the communication relation among nodes in the dual-mode network is richer; according to different communication channel attributes and parameters in the dual-mode communication network, unified communication parameters and channel evaluation values are provided for a power line broadband carrier channel and a micro-power wireless channel in the dual-mode communication network, the difference between the power line broadband carrier network and the micro-power wireless network is reduced, and a unified calculation standard is provided for subsequent routing selection.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The system embodiments described above are merely illustrative, and the flowcharts and block diagrams in the figures, for example, illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.