Electric energy meter communication method, device, computer equipment, readable storage medium and program product
By dynamically adjusting the baud rate of the support channel in the power meter communication, the problems of high bit error rate and poor communication quality in traditional methods are solved, and more efficient and stable power meter communication is achieved.
Patent Information
- Application Number
- CN202411788044.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-06
AI Technical Summary
In power meter communication, traditional methods use channels with the highest baud rate lead to an increase in bit error rate, a decrease in signal quality, and a decrease in communication efficiency.
By receiving networking applications sent by the power meter, a communication link table is generated, and the baud rate of the support channel is dynamically adjusted until the data flow or bit error rate reaches the threshold, the optimal baud rate is determined, and the baud rate is optimized according to the performance test results to determine the optimal transmission path.
It effectively solves the problems of high bit error rate and poor communication quality, improves the efficiency and quality of power meter communication, enhances the adaptability of the system, and can achieve the best communication performance in different communication environments.
Smart Images

Figure CN119276430B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electric energy meters, and in particular to an electric energy meter communication method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] With the development of smart grid, the communication performance of energy meter as the basic unit of power measurement is crucial to the operation of the entire power grid system. Traditional energy meter communication mainly relies on wired connection, but with the advancement of Internet of Things technology, wireless communication technology is more and more widely used in energy meter, which improves the flexibility and convenience of energy meter, but also brings new challenges, especially in terms of communication quality and stability. In the field of energy meter communication, the traditional practice is to use the channel with the highest baud rate as the transmission channel for communication with the energy meter.
[0003] Although the channel with the highest baud rate can provide a faster data transmission speed, under high-frequency transmission conditions, the data flow increases and the signal quality decreases, resulting in a significant increase in the bit error rate. The receiving end needs to request the sending end to retransmit the data, which not only increases the network load, but also prolongs the data transmission time and reduces the communication efficiency with the electricity meter. Summary of the invention
[0004] Based on this, it is necessary to provide an electric energy meter communication method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems.
[0005] In a first aspect, the present application provides an electric energy meter communication method, comprising:
[0006] Receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels;
[0007] Dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain an optimized baud rate;
[0008] Obtaining data transmission performance test results of the supporting channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determining the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results;
[0009] Determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively;
[0010] Communicate with the downstream electric energy meter according to the optimal transmission path.
[0011] In one embodiment, dynamically adjusting the current baud rate of the supported channel includes:
[0012] Obtain the current baud rate, the maximum allowed baud rate, the current data flow, and the maximum data flow of the supported channel from the communication link table;
[0013] Obtaining a baud rate difference between the maximum allowed baud rate and the current baud rate, and determining a flow rate impact coefficient according to a ratio of the current data flow rate to the maximum data flow rate; wherein the flow rate impact coefficient is negatively correlated with the current data flow rate;
[0014] Determine a first baud rate adjustment amount according to a pre-acquired baud rate adjustment coefficient, a product of the baud rate difference and the flow impact coefficient;
[0015] The dynamically adjusted current baud rate is obtained according to the sum of the current baud rate and the first baud rate adjustment amount.
[0016] In one embodiment, the dynamically adjusting baud rate is adjusted according to the baud rate optimization strategy to obtain the optimized baud rate, including:
[0017] Acquire a first coefficient adjustment factor based on the baud rate optimization strategy, and obtain an updated baud rate adjustment coefficient according to the product of the first coefficient adjustment factor and the flow influence coefficient;
[0018] Determine a second baud rate adjustment amount according to the product of the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient;
[0019] The optimized baud rate is obtained according to the sum of the current baud rate and the second baud rate adjustment amount.
[0020] In one embodiment, the dynamically adjusting baud rate is adjusted according to the baud rate optimization strategy to obtain the optimized baud rate, including:
[0021] Acquire a second coefficient adjustment factor based on the baud rate optimization strategy, and determine a bit error rate influence coefficient according to a ratio of a current bit error rate to a maximum bit error rate; wherein the bit error rate influence coefficient is negatively correlated with the current bit error rate;
[0022] Obtaining an updated baud rate adjustment coefficient according to the product of the second coefficient adjustment factor and the bit error rate influence coefficient;
[0023] Determine a third baud rate adjustment amount according to the updated baud rate adjustment coefficient, the product of the baud rate difference and the flow influence coefficient;
[0024] The optimized baud rate is obtained according to the sum of the current baud rate and the third baud rate adjustment amount.
[0025] In one embodiment, obtaining the data transmission performance test results of the support channel at the dynamically adjusted baud rate and the optimized baud rate respectively includes:
[0026] Determining the amount of data transmission of the supporting channel within a test time;
[0027] Performing a data transmission speed test according to the test time, the data transmission amount, and the dynamically adjusted baud rate of the supported channel to obtain a first data transmission speed corresponding to the dynamically adjusted baud rate, and performing a data transmission speed test according to the test time, the data transmission amount, and the optimized baud rate of the supported channel to obtain a second data transmission speed corresponding to the optimized baud rate;
[0028] Determine a first number of erroneous transmission bits when the data transmission speed test is performed using the dynamically adjusted baud rate, determine a first bit error rate corresponding to the dynamically adjusted baud rate based on the first number of erroneous transmission bits and the total number of transmission bits, and determine a second number of erroneous transmission bits when the data transmission speed test is performed using the optimized baud rate, and determine a second bit error rate corresponding to the optimized baud rate based on the second number of erroneous transmission bits and the total number of transmission bits;
[0029] A data transmission performance test result is obtained according to the first data transmission speed, the second data transmission speed, the first bit error rate, and the second bit error rate.
[0030] In one embodiment, determining the optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively includes:
[0031] According to the optimal baud rates corresponding to the plurality of supporting channels respectively, the plurality of supporting channels are arranged in descending order, and the first N supporting channels are selected; wherein N is a positive integer not less than 2;
[0032] Among the first N supporting channels, the supporting channel with the smallest bit error rate is determined as the optimal transmission path.
[0033] In a second aspect, the present application also provides an electric energy meter communication device, comprising:
[0034] An application receiving module, used to receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels;
[0035] A dynamic adjustment module, used for dynamically adjusting the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determining the current baud rate as the dynamically adjusted baud rate, and adjusting the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain an optimized baud rate;
[0036] An optimal baud rate determination module, used to obtain the data transmission performance test results of the support channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determine the optimal baud rate corresponding to the support channel according to the data transmission performance test results;
[0037] An optimal transmission path determination module, configured to determine an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively;
[0038] A communication module is used to communicate with the downstream electric energy meter according to the optimal transmission path.
[0039] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0040] Receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels;
[0041] Dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain an optimized baud rate;
[0042] Obtaining data transmission performance test results of the supporting channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determining the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results;
[0043] Determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively;
[0044] Communicate with the downstream electric energy meter according to the optimal transmission path.
[0045] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0046] Receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels;
[0047] Dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain an optimized baud rate;
[0048] Obtaining data transmission performance test results of the supporting channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determining the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results;
[0049] Determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively;
[0050] Communicate with the downstream electric energy meter according to the optimal transmission path.
[0051] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0052] Receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels;
[0053] Dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain an optimized baud rate;
[0054] Obtaining data transmission performance test results of the supporting channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determining the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results;
[0055] Determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively;
[0056] Communicate with the downstream electric energy meter according to the optimal transmission path.
[0057] The above-mentioned electric energy meter communication method, device, computer equipment, computer-readable storage medium and computer program product, the central management device can receive the networking application sent by the downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application, the communication link table including multiple supporting channels; then dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain the optimized baud rate; then obtain the data transmission performance test results of the supporting channel under the dynamically adjusted baud rate and the optimized baud rate, and determine the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results; then determine the optimal transmission path from the multiple supporting channels according to the optimal baud rates corresponding to each of the multiple supporting channels, and communicate with the downstream electric energy meter according to the optimal transmission path. In this embodiment, the baud rate can be flexibly adjusted according to changes in the actual communication environment, rather than using a fixed maximum baud rate. By dynamically adjusting the baud rate, the problems of high bit error rate and poor communication quality can be effectively solved, thereby enhancing the adaptability of the system, enabling it to achieve optimal communication performance in different communication environments, and effectively improving the efficiency and quality of electric energy meter communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 An application environment diagram of an electric energy meter communication method in an embodiment;
[0060] Figure 2 A schematic diagram of a flow chart of an electric energy meter communication method in an embodiment;
[0061] Figure 3 A schematic diagram of a flow chart of a step of dynamically adjusting the baud rate in one embodiment;
[0062] Figure 4 is a structural block diagram of an electric energy meter communication device in one embodiment;
[0063] Figure 5 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] The electric energy meter communication method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the application environment includes an electric energy meter and a central management device communicating with the electric energy meter. The central management device can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0066] In an exemplary embodiment, Figure 2 As shown, a method for communicating with an electric energy meter is provided. Figure 1 The central management device in the example is used to illustrate, including the following steps S201 to S205. Among them:
[0067] S201, receiving a networking application sent by a downstream electric energy meter, and generating a communication link table according to link layer networking information carried in the networking application; the communication link table includes multiple supporting channels.
[0068] In actual applications, each downstream electric energy meter can send a networking application to the central management device in turn on the supporting channel. The central management device can perform baud rate adaptation, protocol type analysis and communication timestamp analysis based on the networking application, and then receive the application of the electric energy meter with a valid communication timestamp.
[0069] In some embodiments, the algorithm for baud rate adaptation is as follows:
[0070] When the start bit of a baud rate characteristic character is received, i.e. the falling edge, the count value of the timer is recorded as cntr1; when the receiving interrupt detects the end bit of the baud rate characteristic character, i.e. the rising edge, the count value of the timer is recorded as cntr2. Assuming that the main frequency of the timer is f, and the valid transmission bit of the baud rate characteristic character is agreed to be TransNum, the corresponding baud rate is:
[0071] ;
[0072] Among them, TransBit transmits the number of data bits.
[0073] like , then the baud rate corresponding to Baud is the baud rate used for communication. std is the standard baud rate, Use the current standard baud rate maximum allowable deviation,
[0074] In some embodiments, automatically identifying the protocol type includes identifying multiple protocols:
[0075] The multi-protocol identification function requires communication instantiation objects and protocol tool chains for filtering and analyzing various protocols, initializing protocols, etc. For multi-protocol application scenarios, when a communication data stream is asynchronously input on a channel, the link layer parsers of multiple protocols are called to analyze the data stream, and the multi-protocol filter analyzer is used to match the data frame format of the corresponding protocol according to the frame header of the currently received message data, the milestone information in the corresponding protocol, and the offset of the milestone ofsMS, to obtain the offset of the next milestone. When the node information in the current milestone information first crosses the end milestone of a certain protocol, it indicates that the protocol is established and matches the protocol type.
[0076] Among them, the communication timestamp analysis includes the following steps:
[0077] First, let the time required for networking under channel chnnl be:
[0078]
[0079] Where i represents the number of the electric energy meter application identified by the central management device, t i Indicates the time consumed by the central management device to correctly interact with the i-th electric energy meter under channel chnnl, N chnnl Indicates the number of energy meters that interact correctly under this channel.
[0080] Then, determine the time Δt required for the i-th electric energy meter to network under channel chnnl i ,chnnl Does it satisfy the following formula:
[0081] | CurTime-Tstamp i | <TimeERR i + Δt i ,chnnl ;
[0082] Among them, CurTime is the system time of the current central management device, Tstamp i is the timestamp received from the data frame of the i-th electric energy meter, TimeERR i is the maximum allowable time deviation. If this condition is met, the application of the downstream electric energy meter is received by the central management device.
[0083] In some embodiments, the baud rate adaptation, protocol type parsing and communication timestamp analysis process can be determined by existing technologies, and will not be described in detail in this embodiment.
[0084] Then, the central management device can obtain the link layer networking information carried in the received networking application, and establish a complete communication link table based on the link layer networking information. The communication link table includes multiple supported channels and load data of each supported channel.
[0085] In some embodiments, the payload data may include at least one of the following:
[0086] Data traffic: refers to the real-time data transmission volume on the supporting channel, reflecting the load of the supporting channel.
[0087] Bit Error Rate: Used to measure the communication quality of a channel.
[0088] Baud rate: Indicates the data transmission speed supported on the channel, reflecting the data transmission capacity of the channel.
[0089] In some embodiments, the communication link table also includes: the communication address, channel number, protocol type, baud rate, logical address, client address, target communication address, etc. of the downstream electric energy meter. The main station realizes the communication link function of the downstream electric energy meter through the central management device.
[0090] S202, dynamically adjust the current baud rate of the supported channel until the current data flow of the supported channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain the optimized baud rate.
[0091] In the field of electric energy meter communication, the traditional practice is to use the channel with the highest baud rate as the transmission channel for communicating with the electric energy meter. Although the channel with the highest baud rate can provide faster data transmission speed. However, (1) this method has a high bit error rate. Under high-frequency transmission conditions, the increase in data flow and the decrease in signal quality lead to a significant increase in the bit error rate. The receiving end needs to request the sending end to retransmit the data, which not only increases the network load, but also prolongs the data transmission time and reduces the communication efficiency with the electric energy meter; (2) The communication quality is poor. As the transmission distance increases, the signal strength gradually weakens, especially in high-frequency transmission, the signal attenuation is more obvious, resulting in an increase in the bit error rate, and thus cannot provide stable communication quality.
[0092] In this regard, in this embodiment, after obtaining the communication link table, the central management device can dynamically adjust the baud rate of the supporting channel according to the load data in the communication link table, obtain the dynamically adjusted baud rate, and obtain the current baud rate. Then, the current data flow and current bit error rate of the supporting channel at the current baud rate can be obtained.
[0093] In some embodiments, the data flow threshold and / or the bit error rate threshold can be obtained through data analysis, for example, all data flows and bit error rates are obtained from the communication link table, and the distribution characteristics of the data flow and bit error rate are found through statistical analysis, so as to determine the appropriate data flow threshold and bit error rate threshold. Exemplarily, the data shows that when the data flow exceeds 8000bps, the bit error rate increases significantly, and the data flow threshold can be set to 8000bps. When the bit error rate exceeds 0.004%, the stability and efficiency of data transmission decrease significantly, and the bit error rate threshold can be set to 0.004%.
[0094] Afterwards, on the one hand, the current data flow can be compared with the data flow threshold. If the data flow is greater than the data flow threshold, the dynamically adjusted baud rate is adjusted again according to the baud rate optimization strategy to obtain the optimized baud rate. If the data flow is less than or equal to the data flow threshold, the dynamically adjusted baud rate is not adjusted.
[0095] On the other hand, the current bit error rate is compared with the bit error rate threshold. If the current bit error rate is greater than the bit error rate threshold, the dynamically adjusted baud rate is adjusted again to obtain the optimized baud rate; if the current bit error rate is less than or equal to the bit error rate threshold, the dynamically adjusted baud rate is not adjusted.
[0096] S203, obtaining data transmission performance test results of the supporting channel under the dynamic adjustment of baud rate and the optimization of baud rate, and determining the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results.
[0097] In this step, the data transmission performance of the supporting channel under the dynamically adjusted baud rate and the optimized baud rate obtained through optimization can be tested to obtain the data transmission performance test result. In some embodiments, the data transmission performance test result can characterize the data transmission efficiency, stability and error rate under different baud rates.
[0098] After obtaining the data transmission performance test results, the data transmission performance under dynamically adjusted baud rate and optimized baud rate can be evaluated through the data transmission performance test results, such as data transmission throughput, latency, packet loss rate and overall system stability. This can clearly identify under what conditions the supporting channel can exhibit better performance and determine the optimal baud rate corresponding to the supporting channel.
[0099] S204: determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively.
[0100] In this step, by comparing the optimal baud rates corresponding to the multiple supporting channels, a supporting channel that meets the preset communication quality condition can be screened out from the multiple supporting channels as the optimal transmission path.
[0101] S205: Communicate with the downstream electric energy meter according to the optimal transmission path.
[0102] Then, the optimal transmission path can be used to communicate with the downstream electric energy meter.
[0103] In the above-mentioned electric energy meter communication method, the central management device can receive a networking application sent by the downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application, wherein the communication link table includes multiple supporting channels; then dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain the optimized baud rate; then obtain the data transmission performance test results of the supporting channel under the dynamically adjusted baud rate and the optimized baud rate, and determine the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results; and then determine the optimal transmission path from the multiple supporting channels according to the optimal baud rates corresponding to each of the multiple supporting channels, and communicate with the downstream electric energy meter according to the optimal transmission path. In this embodiment, the baud rate can be flexibly adjusted according to changes in the actual communication environment, rather than using a fixed maximum baud rate. By dynamically adjusting the baud rate, the problems of high bit error rate and poor communication quality can be effectively solved, thereby enhancing the adaptability of the system, enabling it to achieve optimal communication performance in different communication environments, and effectively improving the efficiency and quality of electric energy meter communication.
[0104] In one embodiment, Figure 3 As shown, step S202, dynamically adjusting the current baud rate of the supported channel, may include the following steps:
[0105] S301, obtaining the current baud rate, the maximum allowed baud rate, the current data flow, and the maximum data flow of the supported channel from the communication link table.
[0106] S302, obtaining the baud rate difference between the maximum allowed baud rate and the current baud rate, and determining the flow impact coefficient according to the ratio of the current data flow to the maximum data flow; wherein the flow impact coefficient is negatively correlated with the current data flow.
[0107] S303: Determine a first baud rate adjustment amount according to a pre-acquired baud rate adjustment coefficient, a product of the baud rate difference and a flow impact coefficient.
[0108] S304, obtaining a dynamically adjusted current baud rate according to the sum of the current baud rate and the first baud rate adjustment amount.
[0109] In practical applications, the current baud rate of the supported channel can be directly obtained from the communication link table, and the baud rates of all supported channels in the communication link table can be analyzed to obtain the maximum allowed baud rate of the supported channel. On the other hand, the current data flow of the supported channel can be directly obtained from the communication link table, and the data flow of all supported channels in the communication link table can be analyzed to obtain the maximum data flow of the supported channel.
[0110] Then, the baud rate difference between the maximum allowed baud rate and the current baud rate can be obtained, and the flow impact coefficient can be determined according to the ratio of the current data flow to the maximum data flow, and the flow impact coefficient is negatively correlated with the current data flow.
[0111] Finally, the first baud rate adjustment amount is determined according to the product of the pre-acquired baud rate adjustment coefficient, the baud rate difference and the flow impact coefficient, and the dynamically adjusted current baud rate is obtained according to the sum of the current baud rate and the first baud rate adjustment amount.
[0112] In some embodiments, the baud rate may be dynamically adjusted according to the following formula:
[0113] (1)
[0114] in, Represents the current baud rate obtained after dynamic adjustment of the i-th supported channel. represents the current baud rate of the i-th supported channel, represents the maximum allowed baud rate of the ith supported channel, represents the current data flow of the i-th supported channel, represents the maximum data flow of the ith supported channel, Represents the adjustment factor, which is also the baud rate adjustment factor.
[0115] When the data flow is larger, the bit error rate is higher, which means that the communication quality of the supporting channel is not high. In this case, directly selecting the supporting channel with the highest baud rate as the optimal path is not the best choice, because the high baud rate will further increase the bit error rate, thereby reducing the communication quality.
[0116] In this regard, this embodiment dynamically adjusts the baud rate by considering the baud rate, the maximum allowed baud rate, the data flow, and the maximum data flow. When the data flow is close to the maximum data flow or the bit error rate is close to the maximum bit error rate, lowering the baud rate can reduce the bit error rate, thereby improving the accuracy of data transmission. When the data flow is low or the bit error rate is low, the baud rate is appropriately increased to further improve the data transmission efficiency and communication efficiency. By dynamically adjusting the baud rate, a balance point can be found between the data flow and the bit error rate to optimize the communication quality.
[0117] In one embodiment, in step S202, adjusting the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain the optimized baud rate may include the following steps:
[0118] Based on the baud rate optimization strategy, a first coefficient adjustment factor is obtained, and an updated baud rate adjustment coefficient is obtained according to the product of the first coefficient adjustment factor and the flow influence coefficient; a second baud rate adjustment amount is determined according to the product of the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient; and an optimized baud rate is obtained according to the sum of the current baud rate and the second baud rate adjustment amount.
[0119] In practical applications, the adjustment coefficient of the dynamically adjusted baud rate can be adjusted according to the data flow and the maximum data flow to obtain the optimized baud rate after re-adjustment.
[0120] Specifically, a coefficient adjustment factor can be obtained based on the baud rate optimization strategy. The coefficient adjustment factor is a parameter used to adjust the baud rate adjustment coefficient. For the sake of distinction, the coefficient adjustment factor related to the data flow is referred to as the first coefficient adjustment factor. Then, the updated baud rate adjustment coefficient can be obtained according to the product of the first coefficient adjustment factor and the flow influence coefficient. That is, as the data flow increases, the flow influence coefficient decreases, and the first coefficient adjustment factor also decreases accordingly. When the data flow is high, the baud rate adjustment amplitude can be reduced to reduce the bit error rate, and when the data flow is low, the baud rate adjustment amplitude can be increased to increase the data transmission speed. Subsequently, the updated baud rate adjustment coefficient can be obtained according to the product of the first coefficient adjustment factor and the flow influence coefficient. According to the updated baud rate adjustment coefficient, the product of the baud rate difference and the flow influence coefficient, the second baud rate adjustment amount is determined. According to the sum of the current baud rate and the second baud rate adjustment amount, the optimized baud rate is obtained. In some embodiments, after obtaining the updated baud rate adjustment coefficient, the above formula (1) can be referred to for calculation to obtain the optimized baud rate.
[0121] In some embodiments, the updated baud rate adjustment factor may be determined as follows:
[0122] (2)
[0123] represents the updated baud rate adjustment coefficient. To facilitate comparison with other baud rate adjustment coefficients, in some examples, the baud rate adjustment coefficient is also referred to as the first baud rate adjustment coefficient. represents the first coefficient adjustment factor, Represents the current data flow of the supported channel. Indicates the maximum data flow supported by the channel.
[0124] In the above formula (2), the data flow and the maximum data flow are taken into account, and the adjustment factor can be adjusted according to the ratio of the current data flow to the maximum data flow and The baud rate is adjusted by the ADC. This helps reduce the baud rate adjustment when the data flow is high, thereby reducing the bit error rate; and increases the baud rate adjustment when the data flow is low to increase the data transmission speed. This dynamic adjustment helps optimize the performance of the communication link and ensure that the data transmission is both efficient and reliable.
[0125] In one embodiment, in step S202, adjusting the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain the optimized baud rate may include the following steps:
[0126] Based on the baud rate optimization strategy, a second coefficient adjustment factor is obtained, and according to the ratio of the current bit error rate to the maximum bit error rate, the bit error rate influence coefficient is determined; according to the product of the second coefficient adjustment factor and the bit error rate influence coefficient, an updated baud rate adjustment coefficient is obtained; according to the product of the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient, a third baud rate adjustment amount is determined; according to the sum of the current baud rate and the third baud rate adjustment amount, an optimized baud rate is obtained.
[0127] Among them, the bit error rate impact coefficient is negatively correlated with the current bit error rate.
[0128] In this embodiment, the bit error rate of the currently supported channel and the maximum allowable bit error rate of the supported channel can be obtained, and the adjustment coefficient of the dynamically adjusted baud rate can be adjusted according to the bit error rate of the currently supported channel and the maximum allowable bit error rate to obtain the optimized baud rate after re-adjustment.
[0129] During adjustment, the coefficient adjustment factor can be obtained based on the baud rate optimization strategy. The coefficient adjustment factor is a parameter used to adjust the baud rate adjustment coefficient. For the sake of distinction, the coefficient adjustment factor related to the bit error rate is referred to as the second coefficient adjustment factor. On the other hand, the bit error rate influence coefficient can be determined according to the ratio of the current bit error rate to the maximum bit error rate, wherein the bit error rate influence coefficient characterizes the degree of influence of the bit error rate on the coefficient adjustment factor, and the bit error rate influence coefficient is negatively correlated with the current bit error rate, that is, the higher the bit error rate, the smaller the change amplitude of the coefficient adjustment factor. Thus, the baud rate adjustment amplitude can be reduced when the bit error rate is high to reduce the bit error rate, and the baud rate adjustment amplitude can be increased when the bit error rate is low to increase the data transmission speed. Subsequently, the updated baud rate adjustment coefficient can be obtained according to the product of the second coefficient adjustment factor and the bit error rate influence coefficient, the second baud rate adjustment amount can be determined according to the product between the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient, and the optimized baud rate can be obtained according to the sum of the current baud rate and the second baud rate adjustment amount. In some embodiments, after obtaining the updated baud rate adjustment coefficient, the above formula (1) may be referred to for calculation to obtain the optimized baud rate.
[0130] In some embodiments, the updated baud rate adjustment factor may be determined as follows:
[0131] (3)
[0132] in, represents the updated baud rate adjustment coefficient. To facilitate comparison with other baud rate adjustment coefficients, in some examples, the baud rate adjustment coefficient is also referred to as a second baud rate adjustment coefficient. represents the second coefficient adjustment factor, Represents the current bit error rate of the supported channel, Indicates the maximum bit error rate supported by the channel.
[0133] In the above formula (3), the bit error rate and the maximum bit error rate are taken into account, and the baud rate can be adjusted according to the ratio of the current bit error rate to the maximum bit error rate and the adjustment factor γ. This helps to reduce the baud rate adjustment range when the bit error rate is high, thereby reducing the bit error rate; and increase the baud rate adjustment range when the bit error rate is low to increase the data transmission speed. This dynamic adjustment helps to optimize the performance of the communication link and ensure that data transmission is both efficient and reliable.
[0134] In one example, the aforementioned step of re-adjusting the dynamically adjusted baud rate to obtain the optimized baud rate may refer to simultaneously judging the data flow and the bit error rate and deciding to re-adjust the dynamically adjusted baud rate. When the data flow exceeds the data flow threshold and / or the bit error rate exceeds the bit error rate threshold, in some embodiments, and / or and / or adjustment factor , and then return to the baud rate dynamic adjustment formula (1) in an addition or average manner to continue to dynamically adjust the baud rate. The specific method to be selected depends on the needs of the application scenario. The addition method leads to a larger adjustment of the baud rate, while the average method tends to be a more conservative adjustment. The most appropriate combination method can be selected according to the actual situation to achieve the best communication performance.
[0135] It can be understood that in the above embodiment, the adjustment coefficient is adjusted through the relevant parameters of data flow and bit error rate to achieve dynamic adjustment of the baud rate, so that the baud rate can be flexibly adjusted according to changes in the actual communication environment, rather than using the highest baud rate in a fixed manner, to ensure that the best communication performance can be obtained in different communication scenarios.
[0136] In one embodiment, in step S203, obtaining the data transmission performance test results of the supporting channel under the dynamic adjustment baud rate and the optimized baud rate respectively may include the following steps:
[0137] Determine the number of data transmissions of the supported channel within the test time; perform a data transmission speed test based on the test time, the number of data transmissions, and the dynamically adjusted baud rate of the supported channel to obtain a first data transmission speed corresponding to the dynamically adjusted baud rate, and perform a data transmission speed test based on the test time, the number of data transmissions, and the optimized baud rate of the supported channel to obtain a second data transmission speed corresponding to the optimized baud rate; determine the first number of erroneous transmission bits when the data transmission speed test is performed using the dynamically adjusted baud rate, determine the first bit error rate corresponding to the dynamically adjusted baud rate based on the first number of erroneous transmission bits and the total number of transmission bits, and determine the second number of erroneous transmission bits when the data transmission speed test is performed using the optimized baud rate, determine the second bit error rate corresponding to the optimized baud rate based on the second number of erroneous transmission bits and the total number of transmission bits; obtain a data transmission performance test result based on the first data transmission speed, the second data transmission speed, the first bit error rate, and the second bit error rate.
[0138] Specifically, the test time of the data transmission speed at each bit rate in the supported channel and the number of data transmissions within the test time can be obtained. For each baud rate in the dynamically adjusted baud rate and the optimized baud rate, the data transmission speed at the baud rate in the supported channel can be obtained based on the baud rate, test time, and the number of data transmissions within the test time. For ease of distinction, the data transmission speed corresponding to the dynamically adjusted baud rate is called the first data transmission speed, and the data transmission speed corresponding to the optimized baud rate is called the second data transmission speed.
[0139] In some embodiments, the data transmission speed may be determined as follows:
[0140] (4)
[0141] in, represents the data transmission speed of the jth baud rate in the i-th supported channel, represents the jth baud rate in the i-th supported channel, represents the test time of the data transmission speed of the jth baud rate, represents the number of data transmissions at the jth baud rate during the test time. If there are multiple optimized baud rates, the corresponding second data transmission speeds can be calculated respectively.
[0142] Then, for each baud rate in the dynamically adjusted baud rate and the optimized baud rate, the number of erroneous transmission bits and the total number of transmission bits that occur during the data transmission speed test of the supported channel at the baud rate can be obtained, and the bit error rate of each baud rate in the supported channel is obtained according to the number of erroneous transmission bits and the total number of transmission bits. For the convenience of distinction, the data transmission speed corresponding to the dynamically adjusted baud rate is called the first bit error rate, and the data transmission speed corresponding to the optimized baud rate is called the second bit error rate.
[0143] In some embodiments, the bit error rate may be determined by the following formula:
[0144] (5)
[0145] in, represents the bit error rate of data transmission at the jth baud rate in the i-th supported channel, represents the number of erroneous transmission bits during data transmission at the jth baud rate, represents the total number of transmitted bits during data transmission at the jth baud rate, Represents the number of error-transmitted bits, Represents the total number of transmitted bits.
[0146] This embodiment tests the data transmission speed and bit error rate under different baud rates to determine the best baud rate. Successful testing means finding an optimal baud rate that ensures a sufficiently high data transmission speed while maintaining a low bit error rate. If a suitable baud rate is not found in the preliminary test, the baud rate needs to be readjusted and tested again until an optimal baud rate that can ensure communication quality and maintain a high data transmission speed is found. This ensures that data transmission is both efficient and reliable, while improving the overall efficiency of communication.
[0147] In one embodiment, in step S204, determining the optimal transmission path from the multiple supporting channels according to the optimal baud rates corresponding to the multiple supporting channels may include the following steps:
[0148] According to the optimal baud rates corresponding to the multiple supporting channels, the multiple supporting channels are arranged in descending order to filter the first N supporting channels; among the first N supporting channels, the supporting channel with the smallest bit error rate is determined as the optimal transmission path.
[0149] Wherein, N is a positive integer not less than 2.
[0150] In this embodiment, each optimal baud rate and its corresponding bit error rate under each supporting channel can be combined into a data set. According to the baud rate value of the optimal baud rate, the data sets are arranged from high to low, and the optimal baud rate corresponding to the minimum bit error rate in the first N data sets is selected as the target baud rate. Finally, the supporting channel where the target baud rate is located is used as the optimal transmission path to realize the communication function of the electric energy meter.
[0151] In this embodiment, both the high-speed characteristic of the baud rate and the communication quality are taken into consideration, so that the communication quality of the optimal transmission path is higher than that of the prior art, and the accuracy of selecting the optimal transmission path is improved.
[0152] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0153] Based on the same inventive concept, the embodiment of the present application also provides an electric energy meter communication device for implementing the electric energy meter communication method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more electric energy meter communication device embodiments provided below can refer to the limitations on the electric energy meter communication method above, and will not be repeated here.
[0154] In an exemplary embodiment, Figure 4 As shown, an electric energy meter communication device is provided, comprising:
[0155] The application receiving module 401 is used to receive the networking application sent by the downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels;
[0156] A dynamic adjustment module 402 is used to dynamically adjust the current baud rate of the supporting channel until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and adjust the dynamically adjusted baud rate according to the baud rate optimization strategy to obtain an optimized baud rate;
[0157] The optimal baud rate determination module 403 is used to obtain the data transmission performance test results of the support channel at the dynamically adjusted baud rate and the optimized baud rate, and determine the optimal baud rate corresponding to the support channel according to the data transmission performance test results;
[0158] An optimal transmission path determination module 404, configured to determine an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively;
[0159] The communication module 405 is used to communicate with the downstream electric energy meter according to the optimal transmission path.
[0160] In one embodiment, the dynamic adjustment module 402 is used to:
[0161] Obtain the current baud rate, the maximum allowed baud rate, the current data flow, and the maximum data flow of the supported channel from the communication link table;
[0162] Obtaining a baud rate difference between the maximum allowed baud rate and the current baud rate, and determining a flow rate impact coefficient according to a ratio of the current data flow rate to the maximum data flow rate; wherein the flow rate impact coefficient is negatively correlated with the current data flow rate;
[0163] Determine a first baud rate adjustment amount according to a pre-acquired baud rate adjustment coefficient, a product of the baud rate difference and the flow impact coefficient;
[0164] The dynamically adjusted current baud rate is obtained according to the sum of the current baud rate and the first baud rate adjustment amount.
[0165] In one embodiment, the dynamic adjustment module 402 is used to:
[0166] Acquire a first coefficient adjustment factor based on the baud rate optimization strategy, and obtain an updated baud rate adjustment coefficient according to the product of the first coefficient adjustment factor and the flow influence coefficient;
[0167] Determine a second baud rate adjustment amount according to the product of the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient;
[0168] The optimized baud rate is obtained according to the sum of the current baud rate and the second baud rate adjustment amount.
[0169] In one embodiment, the dynamic adjustment module 402 is used to:
[0170] Acquire a second coefficient adjustment factor based on the baud rate optimization strategy, and determine a bit error rate influence coefficient according to a ratio of a current bit error rate to a maximum bit error rate; wherein the bit error rate influence coefficient is negatively correlated with the current bit error rate;
[0171] Obtaining an updated baud rate adjustment coefficient according to the product of the second coefficient adjustment factor and the bit error rate influence coefficient;
[0172] Determine a third baud rate adjustment amount according to the updated baud rate adjustment coefficient, the product of the baud rate difference and the flow influence coefficient;
[0173] The optimized baud rate is obtained according to the sum of the current baud rate and the third baud rate adjustment amount.
[0174] In one embodiment, the optimal baud rate determination module 403 is used to:
[0175] Determining the amount of data transmission of the supporting channel within a test time;
[0176] Performing a data transmission speed test according to the test time, the data transmission amount, and the dynamically adjusted baud rate of the supported channel to obtain a first data transmission speed corresponding to the dynamically adjusted baud rate, and performing a data transmission speed test according to the test time, the data transmission amount, and the optimized baud rate of the supported channel to obtain a second data transmission speed corresponding to the optimized baud rate;
[0177] Determine a first number of erroneous transmission bits when the data transmission speed test is performed using the dynamically adjusted baud rate, determine a first bit error rate corresponding to the dynamically adjusted baud rate based on the first number of erroneous transmission bits and the total number of transmission bits, and determine a second number of erroneous transmission bits when the data transmission speed test is performed using the optimized baud rate, and determine a second bit error rate corresponding to the optimized baud rate based on the second number of erroneous transmission bits and the total number of transmission bits;
[0178] A data transmission performance test result is obtained according to the first data transmission speed, the second data transmission speed, the first bit error rate, and the second bit error rate.
[0179] In one embodiment, the optimal transmission path determination module 404 is used to:
[0180] According to the optimal baud rates corresponding to the plurality of supporting channels respectively, the plurality of supporting channels are arranged in descending order, and the first N supporting channels are selected; wherein N is a positive integer not less than 2;
[0181] Among the first N supporting channels, the supporting channel with the smallest bit error rate is determined as the optimal transmission path.
[0182] Each module in the above-mentioned electric energy meter communication device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0183] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store communication link table data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an electric energy meter communication method is implemented.
[0184] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0185] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0186] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0187] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0188] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0189] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0190] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0191] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for communicating an electric energy meter, characterized in that: The method comprises: Receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels; Obtain the current baud rate, maximum allowed baud rate, current data flow, and maximum data flow of the supported channel; Obtaining a baud rate difference between the maximum allowed baud rate and the current baud rate, and determining a flow rate impact coefficient according to a ratio of the current data flow rate to the maximum data flow rate; the flow rate impact coefficient is negatively correlated with the current data flow rate; Determine a first baud rate adjustment amount according to a pre-acquired baud rate adjustment coefficient, a product of the baud rate difference and the flow impact coefficient; According to the sum of the current baud rate and the first baud rate adjustment amount, dynamically adjust the current baud rate until the current data flow of the supporting channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and obtain an updated baud rate adjustment coefficient according to the baud rate optimization strategy, and adjust the dynamically adjusted baud rate according to the updated baud rate adjustment coefficient to obtain an optimized baud rate; the updated baud rate adjustment coefficient includes a first baud rate adjustment coefficient and / or a second baud rate adjustment coefficient, the first baud rate adjustment coefficient decreases with an increase in the current data flow, and the second baud rate adjustment coefficient decreases with an increase in the current bit error rate; Obtaining data transmission performance test results of the supporting channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determining the optimal baud rate corresponding to the supporting channel according to the data transmission performance test results; Determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively; Communicate with the downstream electric energy meter according to the optimal transmission path.
2. The method according to claim 1, characterized in that The step of obtaining an updated baud rate adjustment coefficient according to the baud rate optimization strategy, and adjusting the dynamically adjusted baud rate according to the updated baud rate adjustment coefficient to obtain an optimized baud rate includes: Acquire a first coefficient adjustment factor based on a baud rate optimization strategy, and obtain an updated baud rate adjustment coefficient according to a product of the first coefficient adjustment factor and the flow influence coefficient; Determine a second baud rate adjustment amount according to the product of the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient; The optimized baud rate is obtained according to the sum of the current baud rate and the second baud rate adjustment amount.
3. The method according to claim 1, characterized in that The step of obtaining an updated baud rate adjustment coefficient according to the baud rate optimization strategy, and adjusting the dynamically adjusted baud rate according to the updated baud rate adjustment coefficient to obtain an optimized baud rate includes: Acquire a second coefficient adjustment factor based on a baud rate optimization strategy, and determine a bit error rate influence coefficient according to a ratio of a current bit error rate to a maximum bit error rate; wherein the bit error rate influence coefficient is negatively correlated with the current bit error rate; Obtaining an updated baud rate adjustment coefficient according to the product of the second coefficient adjustment factor and the bit error rate influence coefficient; Determine a third baud rate adjustment amount according to the product of the updated baud rate adjustment coefficient, the baud rate difference and the flow influence coefficient; The optimized baud rate is obtained according to the sum of the current baud rate and the third baud rate adjustment amount.
4. The method according to claim 1, characterized in that: The obtaining of the data transmission performance test results of the supporting channel at the dynamically adjusted baud rate and the optimized baud rate respectively includes: Determining the amount of data transmission of the supporting channel within a test time; Performing a data transmission speed test according to the test time, the data transmission amount, and the dynamically adjusted baud rate of the supported channel to obtain a first data transmission speed corresponding to the dynamically adjusted baud rate, and performing a data transmission speed test according to the test time, the data transmission amount, and the optimized baud rate of the supported channel to obtain a second data transmission speed corresponding to the optimized baud rate; Determine a first number of erroneous transmission bits when the data transmission speed test is performed using the dynamically adjusted baud rate, determine a first bit error rate corresponding to the dynamically adjusted baud rate based on the first number of erroneous transmission bits and the total number of transmission bits, and determine a second number of erroneous transmission bits when the data transmission speed test is performed using the optimized baud rate, and determine a second bit error rate corresponding to the optimized baud rate based on the second number of erroneous transmission bits and the total number of transmission bits; A data transmission performance test result is obtained according to the first data transmission speed, the second data transmission speed, the first bit error rate, and the second bit error rate.
5. The method according to claim 1, characterized in that The determining an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively comprises: According to the optimal baud rates corresponding to the plurality of supporting channels respectively, the plurality of supporting channels are arranged in descending order, and the first N supporting channels are selected; wherein N is a positive integer not less than 2; Among the first N supporting channels, the supporting channel with the smallest bit error rate is determined as the optimal transmission path.
6. An electric energy meter communication device, characterized in that: The device comprises: An application receiving module, used to receive a networking application sent by a downstream electric energy meter, and generate a communication link table according to the link layer networking information carried in the networking application; the communication link table includes multiple supporting channels; A dynamic adjustment module, used to obtain the current baud rate, maximum allowed baud rate, current data flow, and maximum data flow of the support channel; obtain the baud rate difference between the maximum allowed baud rate and the current baud rate, and determine the flow influence coefficient according to the ratio of the current data flow to the maximum data flow; the flow influence coefficient is negatively correlated with the current data flow; determine the first baud rate adjustment amount according to the product of the pre-acquired baud rate adjustment coefficient, the baud rate difference, and the flow influence coefficient; dynamically adjust the current baud rate according to the sum of the current baud rate and the first baud rate adjustment amount until the current data flow of the support channel is greater than the data flow threshold or the current bit error rate is greater than the bit error rate threshold, determine the current baud rate as the dynamically adjusted baud rate, and obtain an updated baud rate adjustment coefficient according to the baud rate optimization strategy, adjust the dynamically adjusted baud rate according to the updated baud rate adjustment coefficient to obtain an optimized baud rate; the updated baud rate adjustment coefficient includes a first baud rate adjustment coefficient and / or a second baud rate adjustment coefficient, the first baud rate adjustment coefficient decreases with the increase of the current data flow, and the second baud rate adjustment coefficient decreases with the increase of the current bit error rate; An optimal baud rate determination module, used to obtain the data transmission performance test results of the support channel at the dynamically adjusted baud rate and the optimized baud rate, respectively, and determine the optimal baud rate corresponding to the support channel according to the data transmission performance test results; An optimal transmission path determination module, configured to determine an optimal transmission path from the plurality of supporting channels according to the optimal baud rates corresponding to the plurality of supporting channels respectively; A communication module is used to communicate with the downstream electric energy meter according to the optimal transmission path.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Electric energy meter communication link management method and device
CN117914878A
Baud rate adjustment method and device, equipment and storage medium
CN118784474A