Baud rate adjusting device and method of photovoltaic inverter and photovoltaic inverter
By designing a baud rate adjustment device in a photovoltaic inverter, and automatically adjusting the communication baud rate using data transmission and reception, detection, calculation and configuration units, the communication baud rate problem that the photovoltaic inverter cannot adapt to different scenarios is solved, and communication efficiency and scalability are improved.
Patent Information
- Application Number
- CN202311218914.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-20
- Publication Date
- 2025-03-21
AI Technical Summary
Photovoltaic inverters cannot automatically adapt to the communication baud rate of various external devices according to different scenarios, resulting in low communication efficiency, poor scalability and easy data abnormalities.
A baud rate adjustment device is designed, including a data transceiver unit, a detection unit, a calculation unit and a configuration unit. By receiving pulse data sent by remote devices, it detects a high-level duration, calculates a target baud rate, and configures the communication serial port of the photovoltaic inverter according to the target baud rate.
The adaptive baud rate adjustment of the photovoltaic inverter is realized, which reduces manual intervention, improves communication efficiency and scalability, and ensures normal data transmission.
Smart Images

Figure CN119676018A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of photovoltaic energy storage, and in particular to a baud rate adjustment device and method for a photovoltaic inverter and a photovoltaic inverter. Background Art
[0002] The basic principle of communication between data collector and photovoltaic inverter is to realize information transmission between each other through data communication technology. In the communication between data collector and photovoltaic inverter, the standard MODBUS_RTU protocol format is usually followed. When using MODBUS communication, the selection of serial port baud rate directly affects the speed and reliability of communication, and is one of the important configuration parameters to ensure normal communication between photovoltaic inverter and data collector.
[0003] At present, multiple external communication serial ports of photovoltaic inverters all have independent default baud rates. For example, when upgrading, the baud rate needs to be increased to speed up the upgrade. The collector needs to send a complete message to notify the corresponding serial port to change the baud rate. After the upgrade, it switches back to the default baud rate. This method is not only time-consuming and occupies the serial port channel, but the photovoltaic inverter cannot automatically adapt to the communication baud rate of various external devices according to different scenarios, thereby affecting the real-time communication efficiency, poor scalability, and easy to cause data abnormalities due to negligence. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, one object of the present invention is to provide a baud rate adjustment device for a photovoltaic inverter, which can solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rate of various external devices.
[0005] Therefore, a second object of the present invention is to provide a baud rate adjustment method for a photovoltaic inverter.
[0006] To this end, a third object of the present invention is to provide a photovoltaic inverter.
[0007] To this end, a fourth objective of the present invention is to provide an electronic device.
[0008] To this end, a fifth object of the present invention is to provide a computer-readable storage medium.
[0009] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention discloses a baud rate adjustment device for a photovoltaic inverter, comprising: a data transceiver unit, used to receive pulse data sent by a remote device; a detection unit, used to detect the high level duration in the pulse data; a calculation unit, used to calculate the target baud rate according to the high level duration; and a configuration unit, used to configure the communication serial port of the photovoltaic inverter according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0010] According to the baud rate adjustment device of the photovoltaic inverter of the embodiment of the present invention, the device is provided with a data transceiver unit, a detection unit, a calculation unit and a configuration unit in the photovoltaic inverter. The data transceiver unit receives the pulse data sent by the remote device and transmits it to the detection unit. The detection unit detects the high level duration in the pulse data. The calculation unit calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate. Thus, the communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to different scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0011] In addition, the baud rate adjustment device for the photovoltaic inverter according to the above embodiment of the present invention may also have the following additional technical features:
[0012] In some embodiments, after configuring the communication serial port of the photovoltaic inverter according to the target baud rate, the configuration unit is also used to: send a response instruction to the remote device through the data transceiver unit, so that the remote device verifies and matches the photovoltaic inverter according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not; the data transceiver unit is also used to receive the feedback signal and transmit it to the configuration unit; the configuration unit is also used to store the target baud rate and control the photovoltaic inverter to communicate at the target baud rate when determining that the remote device is successfully matched according to the feedback signal.
[0013] In some embodiments, the configuration unit is further used to: when it is determined according to the feedback signal that the number of consecutive unsuccessful matching attempts of the remote device reaches a preset number, configure the communication serial port of the photovoltaic inverter according to a preset baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0014] In some embodiments, the calculation unit is used to: determine a reference baud rate based on the high level duration; compare the reference baud rate with each universal baud rate in a preset baud rate set, wherein the preset baud rate set has multiple universal baud rates preset; and use the universal baud rate in the preset baud rate set that meets preset conditions as the target baud rate.
[0015] In some embodiments, the preset condition includes: an error rate between the reference baud rate and the universal baud rate is less than a preset threshold.
[0016] In some embodiments, when determining a reference baud rate according to the high level duration, the calculation module is used to: use the reciprocal of the high level duration as the reference baud rate.
[0017] In some embodiments, the detection unit is used to: obtain a high level duration set, wherein the high level duration set includes multiple high level duration sampling values; calculate the average value of each element in the high level duration set, and use the average value as the high level duration.
[0018] In some embodiments, the detection unit is used to calculate the average value of each element in the high level duration set by the following formula:
[0019]
[0020] in, is the average value, n is the number of pulse data sent by the remote device, and i is the serial number of the element in the high level duration set.
[0021] In some embodiments, when obtaining a high level duration set, the detection unit is used to: calculate multiple high level duration sampling values; construct a sampling set based on the multiple high level duration sampling values; remove the maximum value and the minimum value in the sampling set to obtain the high level duration set.
[0022] In some embodiments, the detection unit is used to calculate a plurality of high level duration sampling values by the following formula:
[0023] t i =(1*c i )us
[0024] Among them, t i is the high level duration sampling value, c i is the number of the i-th high-level interruption, and i is the sequence number of the element in the high-level duration set.
[0025] To achieve the above-mentioned purpose, an embodiment of the second aspect of the present invention discloses a baud rate adjustment method for a photovoltaic inverter, comprising: receiving pulse data sent by a remote device; detecting a high level duration in the pulse data; calculating a target baud rate based on the high level duration; configuring the communication serial port of the photovoltaic inverter according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0026] According to the baud rate adjustment method of the photovoltaic inverter of the embodiment of the present invention, the method receives the pulse data sent by the remote device through the data transceiver unit and transmits it to the detection unit, the detection unit detects the high level duration in the pulse data, the calculation unit calculates the target baud rate according to the high level duration, and the configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate, thereby the communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0027] In addition, the baud rate adjustment method of the photovoltaic inverter according to the above embodiment of the present invention may also have the following additional technical features:
[0028] In some embodiments, after configuring the communication serial port of the photovoltaic inverter according to the target baud rate, it also includes: sending a response instruction to the remote device so that the remote device verifies and matches the photovoltaic inverter according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not; receiving the feedback signal; when it is determined that the remote device matches successfully according to the feedback signal, storing the target baud rate, and controlling the photovoltaic inverter to communicate at the target baud rate.
[0029] In some embodiments, after receiving the feedback signal, it also includes: when it is determined according to the feedback signal that the number of consecutive unsuccessful matching attempts of the remote device reaches a preset number, configuring the communication serial port of the photovoltaic inverter according to a preset baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0030] In some embodiments, calculating the target baud rate based on the high level duration includes: determining a reference baud rate based on the high level duration; comparing the reference baud rate with each universal baud rate in a preset baud rate set, wherein the preset baud rate set has multiple universal baud rates preset; and taking the universal baud rate in the preset baud rate set that meets preset conditions as the target baud rate.
[0031] In some embodiments, detecting the high level duration in the pulse data includes: obtaining a high level duration set, wherein the high level duration set includes multiple high level duration sampling values; calculating the average value of each element in the high level duration set, and using the average value as the high level duration.
[0032] To achieve the above-mentioned purpose, an embodiment of a third aspect of the present invention discloses a photovoltaic inverter, comprising: a baud rate adjustment device of a photovoltaic inverter as described in the embodiment of the first aspect of the present invention.
[0033] According to the photovoltaic inverter of the embodiment of the present invention, the pulse data sent by the remote device is received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data. The calculation unit then calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate. The communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0034] To achieve the above-mentioned purpose, an embodiment of the fourth aspect of the present invention discloses an electronic device, comprising: a processor, a memory, and a baud rate adjustment program for a photovoltaic inverter stored in the memory and executable on the processor, wherein the baud rate adjustment program for the photovoltaic inverter, when executed by the processor, implements the baud rate adjustment method for the photovoltaic inverter as described in the above-mentioned second invention embodiment of the present invention.
[0035] According to the electronic device of the embodiment of the present invention, the pulse data sent by the remote device is received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data. The calculation unit then calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate. The communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0036] To achieve the above-mentioned purpose, an embodiment of the fifth aspect of the present invention discloses a computer-readable storage medium, on which a baud rate adjustment program for a photovoltaic inverter is stored. When the baud rate adjustment program for the photovoltaic inverter is executed by a processor, the baud rate adjustment method for the photovoltaic inverter as described in the above-mentioned second invention embodiment of the present invention is implemented.
[0037] According to the computer-readable storage medium of the embodiment of the present invention, when the baud rate adjustment program of the photovoltaic inverter stored thereon is executed by the processor, the pulse data sent by the remote device can be received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data, and the calculation unit calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate, thereby adaptively configuring the communication baud rate of the photovoltaic inverter, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0038] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0040] Figure 1 is a structural block diagram of a baud rate adjustment device for a photovoltaic inverter according to an embodiment of the present invention;
[0041] Figure 2 is a structural block diagram of a device for self-adapting external communication baud rate of a photovoltaic inverter according to an embodiment of the present invention;
[0042] Figure 3 is a flow chart of a baud rate adjustment method of a photovoltaic inverter according to an embodiment of the present invention;
[0043] Figure 4 is a design flow chart of a baud rate adjustment method for a photovoltaic inverter according to an embodiment of the present invention;
[0044] Figure 5 is a flow chart of baud rate calculation according to an embodiment of the present invention;
[0045] Figure 6 is a structural block diagram of a photovoltaic inverter according to an embodiment of the present invention;
[0046] Figure 7 is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.
[0048] Reference below Figure 1-Figure 7 A baud rate adjustment device and method for a photovoltaic inverter and a photovoltaic inverter according to an embodiment of the present invention are described.
[0049] Figure 1 1 is a block diagram of a baud rate adjustment device for a photovoltaic inverter according to an embodiment of the present invention. Figure 1 As shown, the baud rate adjustment device 100 of the photovoltaic inverter includes: a data transceiver unit 110 , a detection unit 120 , a calculation unit 130 and a configuration unit 140 .
[0050] Specifically, the data transceiver unit 110 is used to receive pulse data sent by a remote device.
[0051] Specifically, if Figure 2 As shown, the data transceiver unit 110 can be divided into a data receiving unit 111 and a data sending unit 112. The data receiving unit 111 receives pulse data sent by a remote device by connecting to the external device serial port 1. The remote device can be a data collector or a host computer. For example, the data collector can receive data from the cloud platform and then transmit it to the photovoltaic inverter 200. The host computer can also be connected to the photovoltaic inverter 200 through an RS485 bus of several meters or even more than ten meters, so as to transmit the received pulse data to the detection unit 120.
[0052] The detection unit 120 is used to detect the duration of the high level in the pulse data.
[0053] Specifically, if Figure 2 As shown, the detection unit 120 receives the pulse data in the data receiving unit 111, detects the high level duration of each pulse, and records the current time and the historical time interval. For example, the pulse of the serial port RX pin in the data receiving unit 111 is transmitted to the detection unit 120, and the detection unit 120 detects the high level duration of each pulse, that is, processes the high level duration of the pulse of the serial port RX pin in the data receiving unit 111, and records the duration of a high level.
[0054] The calculation unit 130 is used to calculate the target baud rate according to the high level duration.
[0055] Specifically, if Figure 2 As shown, the detection unit 120 transmits the calculated high-level duration to the calculation unit 130 , and the calculation unit 130 calculates the target baud rate according to the high-level duration calculated by the detection unit 120 .
[0056] The configuration unit 140 is used to configure the communication serial port of the photovoltaic inverter according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0057] Specifically, if Figure 2 As shown, the calculation unit 130 calculates the target baud rate according to the high level duration and transmits it to the data sending unit 112, and the configuration unit 140 (not shown in the figure) configures the communication serial port of the photovoltaic inverter 200 according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter 200.
[0058] Therefore, by setting a data transceiver unit, a detection unit, a calculation unit and a configuration unit in the photovoltaic inverter, that is, the data transceiver unit receives the pulse data sent by the remote device and transmits it to the detection unit, the detection unit detects the high level duration in the pulse data, the calculation unit calculates the target baud rate according to the high level duration, and the configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate, thereby the communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rate of various external devices according to the scenario, thereby reducing manual intervention and improving communication efficiency and scalability.
[0059] In one embodiment of the present invention, after configuring the communication serial port of the photovoltaic inverter 200 according to the target baud rate, the configuration unit 140 is also used to: send a response instruction to the remote device through the data transceiver unit 110, so that the remote device verifies and matches the photovoltaic inverter 200 according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not; the data transceiver unit 110 is also used to receive the feedback signal and transmit it to the configuration unit 140; the configuration unit 140 is also used to store the target baud rate when determining that the remote device is successfully matched according to the feedback signal, and control the photovoltaic inverter 200 to communicate at the target baud rate.
[0060] In the embodiment, the configuration unit 140 configures the communication serial port of the photovoltaic inverter 200 according to the target baud rate calculated by the calculation unit 130. Specifically, Figure 2 As shown, the configuration unit 140 (not shown in the figure) sends a response instruction to the remote device through the data transceiver unit 110, that is, the configuration unit 140 receives the response instruction from the data receiving unit 111, communicates with the external device serial port 1 through the data sending unit 112, and sends the response instruction to the remote device. After the remote device receives the response instruction, it verifies and matches the photovoltaic inverter 200 according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not. At this time, the data transceiver unit 110 receives the feedback signal and transmits it to the configuration unit 140. When the configuration unit 140 determines that the remote device is successfully matched according to the feedback signal, it turns off the timer and stores the current baud rate, thereby achieving the purpose of controlling the photovoltaic inverter 200 to communicate normally at the target baud rate.
[0061] In one embodiment of the present invention, the configuration unit 140 is further used to: when it is determined according to the feedback signal that the number of consecutive unsuccessful matching attempts of the remote device reaches a preset number, configure the communication serial port of the photovoltaic inverter 200 according to a preset baud rate to adjust the communication baud rate of the photovoltaic inverter 200.
[0062] In an embodiment, when the configuration unit 140 determines that the remote device is continuously matched based on the received feedback signal, the number of times the remote device is continuously matched unsuccessfully determined by the feedback signal may be compared with a preset number of times. Specifically, for example, the preset number of times is 3 times. When the feedback signal determines that the remote device is continuously unmatched for 3 times, that is, the feedback signal determines that the number of times the remote device is continuously matched unsuccessfully reaches the preset number of times. At this time, the communication serial port of the photovoltaic inverter 200 can be configured according to the preset baud rate (that is, the default baud rate) to adjust the communication baud rate of the photovoltaic inverter 200.
[0063] In one embodiment of the present invention, the calculation unit 130 is used to: determine a reference baud rate based on the high level duration; compare the reference baud rate with each universal baud rate in a preset baud rate set, wherein a plurality of universal baud rates are preset in the preset baud rate set; and use the universal baud rate in the preset baud rate set that meets preset conditions as the target baud rate.
[0064] In an embodiment, in the process of determining the target baud rate, the calculation unit 130 determines the reference baud rate according to the high level duration, and compares the reference baud rate with each universal baud rate in the preset baud rate set. The preset baud rate set has multiple universal baud rates preset, for example, the universal baud rates in the preset baud rate set are 4800bit / s, 9600bit / s, 19200bit / s, 115200bit / s, etc. By comparison, the universal baud rate in the preset baud rate set that meets the preset conditions can be used as the target baud rate. Specifically, if the universal baud rate in the preset baud rate set is 9600bit / s, and the universal baud rate meets the preset conditions, the universal baud rate 9600bit / s can be used as the target baud rate, that is, the target baud rate is 9600bit / s.
[0065] In one embodiment of the present invention, the preset condition includes: an error rate between the reference baud rate and the universal baud rate is less than a preset threshold.
[0066] In an embodiment, in the process of determining the target baud rate according to the universal baud rate in the preset baud rate set, the determination can be made according to a preset condition, that is, the error rate between the reference baud rate and the universal baud rate is less than a preset threshold, for example, the preset threshold is 10%. Specifically, the calculated reference baud rate is to find the baud rate value corresponding to the remote device. Usually, the remote device uses the universal baud rate. Therefore, the calculated reference baud rate will not be used as the target baud rate. Therefore, within the preset threshold, if the calculated reference baud rate is 9601bit / s and the universal baud rate is 9600bit / s, that is, the error rate between the reference baud rate and the universal baud rate is within 10%, then the universal baud rate of 9600bit / s in the preset baud rate set meets the preset condition, and the universal baud rate of 9600bit / s can be used as the target baud rate.
[0067] In one embodiment of the present invention, when determining the reference baud rate according to the high level duration, the calculation unit 130 is configured to: use the reciprocal of the high level duration as the reference baud rate.
[0068] In an embodiment, when the calculation unit 130 determines the reference baud rate according to the high level duration, the reciprocal of the high level duration is used as the reference baud rate. Specifically, according to the high level duration in the pulse data detected by the detection unit 120, for example, the high level duration in the pulse data detected by the detection unit 120 is 104us, 52us, and 8.6us, respectively, the calculation unit 130 calculates the reference baud rate according to the high level duration, and calculates the reciprocal of the high level duration, that is, takes the reciprocal as the reference baud rate. When the high level duration is 104us, the corresponding reference baud rate is approximately 9600bit / s; when the high level duration is 52us, the corresponding reference baud rate is approximately 19200bit / s; when the high level duration is 8.6us, the corresponding reference baud rate is approximately 115200bit / s.
[0069] In one embodiment of the present invention, the detection unit 120 is used to: obtain a high level duration set, wherein the high level duration set includes multiple high level duration sampling values; calculate the average value of each element in the high level duration set, and use the average value as the high level duration.
[0070] In an embodiment, the high-level duration set acquired by the detection unit 120 includes multiple high-level duration sampling values. For example, if the high-level duration set is 1, the high-level duration sampling values in the set are 103us, 104us, and 105us. They are used as elements in the high-level duration set, and the average value of each element in the set is calculated. Through calculation, the average value of each element in the set is the average value of 103us, 104us, and 105us, that is, the average value is 104us, and the high-level duration is 104us.
[0071] In one embodiment of the present invention, the detection unit 120 is configured to calculate the average value of each element in the high level duration set by the following formula:
[0072]
[0073] in, is the average value, n is the number of pulse data sent by the remote device, and i is the sequence number of the element in the high level duration set.
[0074] In the embodiment, n is represented as the number of pulse data sent by the remote device, and i is represented as the serial number of the element in the high-level duration set. It can be understood that n is the number of pre-linked bytes sent by the remote device. For example, the pre-linked byte is hexadecimal 0xAA corresponding to binary 10101010, where "1" represents a high level and "0" represents a low level. There are 4 high levels in the pre-linked byte. Therefore, if there are n pre-linked bytes, there are 4n high-level bits, and 4n-2 represents the number of elements in the remaining high-level duration set after filtering out the abnormal values in the set, that is, the number of elements after removing the maximum and minimum values in the set.
[0075] In one embodiment of the present invention, when obtaining a high level duration set, the detection unit 120 is used to: calculate multiple high level duration sampling values; construct a sampling set according to the multiple high level duration sampling values; and remove the maximum value and the minimum value in the sampling set to obtain a high level duration set.
[0076] In an embodiment, when a high level duration set is obtained, the set includes a plurality of high level duration sampling values. For example, the high level duration sampling value is t max , t1, t2, t3, t min , where t max , t1, t2, t3, t min are all known numbers obtained, t max represents the maximum value in the sampling set, t minrepresents the minimum value in the sampling set. Therefore, when constructing a sampling set based on multiple high-level duration sampling values, the maximum value t in the sampling set can be max and the minimum value t min The high level duration set obtained by removing it is t1, t2, and t3. When obtaining the high level duration set, the maximum value and the minimum value in the sampling value are removed to improve the accuracy of the data.
[0077] In one embodiment of the present invention, the detection unit is used to calculate a plurality of high level duration sampling values by the following formula:
[0078] t i =(1*c i )us
[0079] Among them, t i is the high level duration sampling value, c i is the number of high-level interrupts for the i-th time, and i is the sequence number of the element in the high-level duration set.
[0080] In an embodiment, t i Expressed as high level duration sampling value, c i It is represented by the number of high-level interrupts for the i-th time, and i is represented by the sequence number of the elements in the high-level duration set. For example, the timer generates a counting interrupt every 1us, and the timer generates a counting interrupt every 1us. Each time the interrupt is made, it is detected whether the high-level bit is reversed. If the high-level bit is not reversed, the number of interrupts is accumulated until the level is reversed. It can be understood that the timer is responsible for detecting the duration of the high level from 0 to 1 and then to 0 for the i-th time. Therefore, c i It is expressed as the number of times the i-th high level enters the interrupt, and then multiplied by the interrupt cycle 1us is the sampling value t of a certain high level duration i , that is, t i =(1*c i )us.
[0081] In summary, according to the baud rate adjustment device of the photovoltaic inverter according to the embodiment of the present invention, the device is configured by setting a data transceiver unit, a detection unit, a calculation unit and a configuration unit in the photovoltaic inverter, that is, the data transceiver unit receives the pulse data sent by the remote device and transmits it to the detection unit, the detection unit detects the high level duration in the pulse data, the calculation unit then calculates the target baud rate according to the high level duration, and the configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate, thereby adaptively configuring the communication baud rate of the photovoltaic inverter, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention, improving communication efficiency and scalability, and ensuring normal data.
[0082] The present invention also proposes a baud rate adjustment method for a photovoltaic inverter in an embodiment.
[0083] Figure 3 The baud rate adjustment method of a photovoltaic inverter according to an embodiment of the present invention is as follows. Figure 3 As shown, the method comprises the following steps:
[0084] Step S1: receiving pulse data sent by a remote device.
[0085] In an embodiment, the photovoltaic inverter may be connected to an external communication serial port, such as a USART serial port, to receive pulse data sent by a remote device. Specifically, the remote device may be a data collector or a host computer.
[0086] Step S2: Detect the high level duration in the pulse data.
[0087] In an embodiment, a timer may be used to detect received pulse data, and the high level duration of each pulse may be processed according to the received pulse data.
[0088] Step S3: Calculate the target baud rate according to the high level duration.
[0089] In the embodiment, after the timer detects the pulse data, the detected pulse data is processed to obtain the high level duration of each pulse data, and the target baud rate can be calculated according to the high level duration.
[0090] Step S4: configuring the communication serial port of the photovoltaic inverter according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0091] In an embodiment, after the target baud rate is calculated according to the high level duration, the communication serial port of the photovoltaic inverter may be configured according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0092] In summary, the baud rate adjustment method of the photovoltaic inverter can complete the adaptive baud rate adjustment of the photovoltaic inverter for different application scenarios and different communication devices, so as to achieve the effect of normal communication. The specific process can be summarized as follows:
[0093] After the photovoltaic inverter is powered on again, the default serial port settings are made for the photovoltaic inverter, for example, 1 start bit, 1 stop bit, baud rate 9600bit / s, and 8 data bits are set. Specifically, the USART serial port is used, which is a kind of asynchronous serial communication protocol. The working principle is to transmit each binary bit of the transmitted data one by one. In the USART communication protocol (such as the Modbus protocol), the state of the signal line is represented by "1" for a high level, and the state of the signal line is represented by "0" for a low level. For example, when the USART communication protocol is used to transmit a byte of data, a combination of 8 high and low levels is generated on the signal line. When two USART devices communicate, there is no need for a clock line. At this time, it is necessary to specify the same transmission rate, idle bit, start bit, check bit, and end bit on the two USART devices, that is, to follow the same protocol. For example, the serial port baud rate is 9600, and the transmission time of 1 bit is about 104us. The actual transmission of one data is 10 bits (start bit - 8 data bits - stop bit), and the actual transmission rate of one byte is 9600*8 / 10=7680bps.
[0094] After setting up the serial port, obtain the baud rate and initialize the serial port. The remote device sends a fixed pre-connection byte, such as 0xAA. After receiving the pulse data sent by the remote device, start the timer detection function to detect the received pulse data and calculate the pulse width received by the serial port based on the pulse data. For example, calculate the pulse width received by the serial port RX pin. Specifically, the RX pin is the receiving pin of the serial port. The pulse width is the duration of the high level. The target baud rate is calculated based on the duration of the high level, and the communication serial port of the photovoltaic inverter is configured based on the target baud rate, so as to control the photovoltaic inverter to communicate at the target baud rate.
[0095] After configuring the communication serial port of the photovoltaic inverter according to the target baud rate, a response instruction is sent to the remote device so that the remote device can verify and match the photovoltaic inverter according to the response instruction. For example, the pre-connection byte sent by the remote device is 0xAA, and the corresponding response instruction is 0x55. Specifically, after the remote device receives the correctly parsed response instruction 0x55, it enters the photovoltaic inverter for matching, that is, after the pre-connection byte finds the baud rate of the remote device, the photovoltaic inverter will switch according to the baud rate, and then communicate with the remote device. The remote device will send an internal instruction to read the photovoltaic inverter. For example, the internal instruction of the photovoltaic inverter is an SN instruction. If the photovoltaic inverter receives the correct read instruction, the match is successful and enters normal data interaction. After the match is successful, the timer function is turned off and the current baud rate is stored, thereby entering normal communication; if the match is not successful, such as the number of matches reaches three times and all three times are unsuccessful, the external communication serial port of the photovoltaic inverter is reconfigured according to the above baud rate, and the default serial port (such as USART serial port) is configured to communicate with the remote device.
[0096] As a specific embodiment, the following Figure 4 The overall execution flow of the baud rate adjustment method of the photovoltaic inverter according to the embodiment of the present invention is described.
[0097] Combination Figure 4 As shown, in the embodiment, the baud rate adjustment method of the photovoltaic inverter mainly performs the following steps:
[0098] Step S11: Start powering on the photovoltaic inverter.
[0099] Step S12: Obtain the baud rate and initialize the serial port in the default serial port (such as USART serial port) configuration.
[0100] Step S13: Start the timer function.
[0101] Step S14: Send a fixed pre-connection byte, such as 0xAA, through the remote device.
[0102] Step S15: Calculate the baud rate according to the pulse width received by the serial port RX pin.
[0103] Step S17: Wait for the remote device to send a pre-connection byte, such as 0xAA, again, and receive a response instruction, such as 0x55.
[0104] Step S18: After receiving the response instruction 0x55, the remote device enters the communication protocol (such as Modbus protocol) matching.
[0105] Step S19: Perform communication protocol (Modbus protocol) verification and matching on the photovoltaic inverter according to the response instruction, and feed back a feedback signal indicating whether the matching is successful or not.
[0106] Step S20: Determine whether the match is successful based on the feedback signal. If the match is successful, execute step S21; if the match is not successful, execute step S24.
[0107] Step S21: Turn off the timer function.
[0108] Step S22: Store the current baud rate.
[0109] Step S23: Normal communication.
[0110] Step S24: Determine whether the number of matches exceeds three times, for example, if yes, return to step S14; if no, execute step S25.
[0111] Step S25: Use the default baud rate, that is, communicate with the remote device using the default serial port configuration in step S12.
[0112] Step S26: End.
[0113] Among them, the specific steps of calculating the baud rate of the remote device serial port can be summarized as follows:
[0114] Specifically, after the remote device sends the pre-connection byte, it waits to receive the pre-connection byte. For example, the pre-connection byte is hexadecimal 0xAA, which corresponds to binary 10101010, then the level corresponding to "1" is high level, and the level corresponding to "0" is low level. After receiving the pre-connection byte, the timer enters the interrupt mode. For example, the interrupt frequency of the timer pulse is 1MHZ, which is greater than the maximum value of the universal baud rate. It can be understood that if the timer interrupts once every 1us, the corresponding baud rate is 9600bit / s, that is, it takes 104us to transmit each bit; and when the baud rate is 115200bit / s, it takes 8.6us to transmit each bit, and the transmission time range of each bit is 8.6us-104us. The interrupt trigger frequency of the timer should be greater than the transmission frequency of each bit to capture the transmission time of each bit.
[0115] Specifically, the timer interrupt is responsible for detecting the high level duration in the pulse data, and i is represented as the sequence number of the element in the high level duration set, that is, the timer interrupt is responsible for detecting the high level duration from 0 to 1 and then to 0 for the i-th time, and the number of high level interrupts c is recorded by i Get the high level duration sampling value t i , that is, t i =(1*c i)us, and store it in the set. If the pre-link byte is detected n times each time, such as the pre-link byte 0xAA corresponding to the binary contains 4 "1", that is, sending the pre-link byte 0xAA once contains 4 high-level bits, then sending the pre-link byte n times can detect 4n high-level bits. Then remove the abnormal values in the set, that is, filter out the maximum and minimum values in each high-level duration set to obtain the average high-level bit duration in the set. Right now Thus according to The preset baud rate is obtained and then compared with the elements in the universal baud rate set, where the universal baud rate can be 4800, 9600, 14400, 19200, 38400, 57600, 115200, etc., so that the error rate between the comparisons is less than a preset threshold, such as the preset threshold is 10%, so that the baud rate that meets the preset conditions is used as the target baud rate.
[0116] As a specific example, Figure 5 As shown in the figure, the specific steps to calculate the baud rate of the remote device serial port are:
[0117] Step S151: Waiting to receive a pre-connection byte, such as 0xAA, sent by a remote connection device.
[0118] Step S152: After receiving the data, the timer pulse detection function is turned on, that is, the timer interrupt is entered.
[0119] Step S153: the serial port receiving pin of the photovoltaic inverter starts to predict the duration of the corresponding bit of the pre-connection byte being 1.
[0120] Step S154: The array stores the average duration of each bit in the pre-connection byte being 1.
[0121] Step S155: Filter outliers to obtain the final average duration of a single bit being 1.
[0122] Step S156: convert the average time into a pre-connection baud rate and compare it with a set of universal baud rates.
[0123] Step S157: Determine whether there is an element in the universal baud rate set whose pre-connection baud rate error rate is less than 10%; if so, execute step S158; if not, return to execute step S151.
[0124] Step S158: Get the serial number of the element.
[0125] Step S159: the default baud rate is modified to the baud rate of the serial number corresponding to the universal baud rate.
[0126] Thus, the pulse data sent by the remote device is received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data, and the calculation unit calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate. In this way, the communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rate of various external devices according to the scenario, thereby reducing manual intervention and improving communication efficiency and scalability.
[0127] In one embodiment of the present invention, after configuring the communication serial port of the photovoltaic inverter according to the target baud rate, it also includes: sending a response instruction to the remote device through the data transceiver unit, so that the remote device verifies and matches the photovoltaic inverter according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not; the data transceiver unit receives the feedback signal and transmits it to the configuration unit; when the configuration unit determines that the remote device is successfully matched according to the feedback signal, it stores the target baud rate and controls the photovoltaic inverter to communicate at the target baud rate.
[0128] In one embodiment of the present invention, the communication serial port of the photovoltaic inverter is configured according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter, including: when it is determined according to the feedback signal that the number of consecutive unsuccessful matching attempts of the remote device reaches a preset number, the communication serial port of the photovoltaic inverter is configured according to the preset baud rate to adjust the communication baud rate of the photovoltaic inverter.
[0129] In one embodiment of the present invention, the target baud rate is calculated based on the high level duration, including: determining a reference baud rate based on the high level duration; comparing the reference baud rate with each universal baud rate in a preset baud rate set, wherein a plurality of universal baud rates are preset in the preset baud rate set; and taking the universal baud rate in the preset baud rate set that meets preset conditions as the target baud rate.
[0130] In one embodiment of the present invention, the preset condition includes: an error rate between the reference baud rate and the universal baud rate is less than a preset threshold.
[0131] In one embodiment of the present invention, when determining the reference baud rate according to the high level duration, the reciprocal of the high level duration is used as the reference baud rate.
[0132] In one embodiment of the present invention, when detecting the high level duration in pulse data, it includes: obtaining a high level duration set, wherein the high level duration set includes multiple high level duration sampling values; calculating the average value of each element in the high level duration set, and taking the average value as the high level duration.
[0133] In one embodiment of the present invention, the average value of each element in the high level duration set is calculated by the following formula:
[0134]
[0135] in, is the average value, n is the number of pulse data sent by the remote device, and i is the sequence number of the element in the high level duration set.
[0136] In one embodiment of the present invention, when obtaining a high level duration set, it includes: calculating multiple high level duration sampling values; constructing a sampling set according to the multiple high level duration sampling values; removing the maximum value and the minimum value in the sampling set to obtain the high level duration set.
[0137] In one embodiment of the present invention, a plurality of high level duration sampling values are calculated by the following formula:
[0138] t i =(1*c i )us
[0139] Among them, t i is the high level duration sampling value, c i is the number of high-level interrupts for the i-th time, and i is the sequence number of the element in the high-level duration set.
[0140] It should be noted that when this method is used to adjust the baud rate of a photovoltaic inverter, its specific implementation method is similar to the specific implementation method of the baud rate adjustment device for a photovoltaic inverter described in any of the above embodiments of the present invention. Therefore, for a detailed exemplary description of this method, please refer to the aforementioned description of the baud rate adjustment device for a photovoltaic inverter. In order to reduce redundancy, it will not be repeated here.
[0141] According to the baud rate adjustment method of the photovoltaic inverter of the embodiment of the present invention, the method receives the pulse data sent by the remote device through the data transceiver unit and transmits it to the detection unit, the detection unit detects the high level duration in the pulse data, the calculation unit calculates the target baud rate according to the high level duration, and the configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate, thereby the communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0142] A further embodiment of the present invention provides a photovoltaic inverter 200 .
[0143] like Figure 6 is a structural block diagram of a photovoltaic inverter 200 according to an embodiment of the present invention. Figure 6 As shown, the photovoltaic inverter 200 of the embodiment of the present invention includes the baud rate adjustment device 100 of the photovoltaic inverter 200 as described in any one of the above embodiments of the present invention.
[0144] It should be noted that when the photovoltaic inverter is adjusting the baud rate of the photovoltaic inverter, its specific implementation method is similar to the specific implementation method of the baud rate adjustment device or method of the photovoltaic inverter in any of the above-mentioned embodiments of the present invention. Therefore, for a detailed exemplary description of the process of the photovoltaic inverter adjusting the baud rate of the photovoltaic inverter, please refer to the relevant description part of the baud rate adjustment device or method of the photovoltaic inverter. In order to reduce redundancy, it will not be repeated here.
[0145] According to the photovoltaic inverter of the embodiment of the present invention, the pulse data sent by the remote device is received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data. The calculation unit then calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate. The communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0146] A further embodiment of the present invention also provides an electronic device 300 .
[0147] like Figure 7 FIG. 1 is a block diagram of an electronic device 300 according to an embodiment of the present invention. Figure 7 As shown, the electronic device 300 of the embodiment of the present invention includes: a processor 301, a memory 302, and a baud rate adjustment program of a photovoltaic inverter stored in the memory 302 and executable on the processor 301. When the baud rate adjustment program of the photovoltaic inverter is executed by the processor 301, the baud rate adjustment method of the photovoltaic inverter described in any one of the above embodiments of the present invention is implemented.
[0148] It should be noted that when the electronic device adjusts the baud rate of the photovoltaic inverter, its specific implementation method is similar to the specific implementation method of the baud rate adjustment device or method of the photovoltaic inverter in any of the above-mentioned embodiments of the present invention. Therefore, for a detailed exemplary description of the process of the photovoltaic inverter adjusting the baud rate of the photovoltaic inverter, please refer to the relevant description part of the baud rate adjustment device or method of the photovoltaic inverter. In order to reduce redundancy, it will not be repeated here.
[0149] According to the electronic device 300 of the embodiment of the present invention, the pulse data sent by the remote device is received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data. The calculation unit then calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate. The communication baud rate of the photovoltaic inverter can be adaptively configured, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rate of various external devices according to the scenario, thereby reducing manual intervention and improving communication efficiency and scalability.
[0150] A further embodiment of the present invention also discloses a computer-readable storage medium, on which a baud rate adjustment program for a photovoltaic inverter is stored. When the baud rate adjustment program for the photovoltaic inverter is executed by a processor, the baud rate adjustment method for the photovoltaic inverter described in any one of the above embodiments of the present invention is implemented.
[0151] According to the computer-readable storage medium of the embodiment of the present invention, when the baud rate adjustment program of the photovoltaic inverter stored thereon is executed by the processor, the pulse data sent by the remote device can be received by the data transceiver unit and transmitted to the detection unit. The detection unit detects the high level duration in the pulse data, and the calculation unit calculates the target baud rate according to the high level duration. The configuration unit configures the communication serial port of the photovoltaic inverter according to the target baud rate, thereby adaptively configuring the communication baud rate of the photovoltaic inverter, so that the photovoltaic inverter can complete adaptive baud rate adjustment for different application scenarios and different communication devices, so as to solve the problem that the photovoltaic inverter cannot automatically adapt to the communication baud rates of various external devices according to the scenarios, thereby reducing manual intervention and improving communication efficiency and scalability.
[0152] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.
[0153] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A baud rate adjustment device for a photovoltaic inverter, characterized in that: include: A data transceiver unit, used for receiving pulse data sent by a remote device; A detection unit, used for detecting a high level duration in the pulse data; A calculation unit, used for calculating a target baud rate according to the high level duration; A configuration unit is used to configure the communication serial port of the photovoltaic inverter according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
2. The baud rate adjustment device according to claim 1, characterized in that: After configuring the communication serial port of the photovoltaic inverter according to the target baud rate, the configuration unit is further used to: Sending a response instruction to the remote device through the data transceiver unit, so that the remote device verifies and matches the photovoltaic inverter according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not; The data transceiver unit is also used to receive the feedback signal and transmit it to the configuration unit; The configuration unit is further configured to store the target baud rate and control the photovoltaic inverter to communicate at the target baud rate when determining that the remote device is successfully matched according to the feedback signal.
3. The baud rate adjustment device according to claim 2, characterized in that: The configuration unit is also used to: when it is determined according to the feedback signal that the number of consecutive unsuccessful matches of the remote device reaches a preset number, configure the communication serial port of the photovoltaic inverter according to a preset baud rate to adjust the communication baud rate of the photovoltaic inverter.
4. The baud rate adjustment device for a photovoltaic inverter according to claim 1, characterized in that: The computing unit is used for: Determine a reference baud rate according to the high level duration; Comparing the reference baud rate with each universal baud rate in a preset baud rate set, wherein the preset baud rate set has a plurality of universal baud rates preset; A common baud rate in the preset baud rate set that meets a preset condition is used as the target baud rate.
5. The baud rate adjustment device for a photovoltaic inverter according to claim 4, characterized in that: The preset conditions include: An error rate between the reference baud rate and the universal baud rate is less than a preset threshold.
6. The baud rate adjustment device for a photovoltaic inverter according to claim 4, characterized in that: When determining the reference baud rate according to the high level duration, the calculation module is used to: The reciprocal of the high level duration is used as the reference baud rate.
7. The baud rate adjustment device for a photovoltaic inverter according to claim 1, characterized in that: The detection unit is used for: Acquire a high level duration set, wherein the high level duration set includes a plurality of high level duration sampling values; An average value of each element in the high-level duration set is calculated, and the average value is used as the high-level duration.
8. The baud rate adjustment device for a photovoltaic inverter according to claim 7, characterized in that: The detection unit is used to calculate the average value of each element in the high level duration set by the following formula: in, is the average value, n is the number of pulse data sent by the remote device, and i is the serial number of the element in the high level duration set.
9. The baud rate adjustment device for a photovoltaic inverter according to claim 7, characterized in that: When acquiring the high level duration set, the detection unit is used to: Calculate multiple high level duration sampling values; Constructing a sampling set according to a plurality of high level duration sampling values; The maximum value and the minimum value in the sampling set are removed to obtain the high level duration set.
10. The baud rate adjustment device for a photovoltaic inverter according to claim 9, characterized in that: The detection unit is used to calculate a plurality of high level duration sampling values by the following formula: t i =(1*c i )us Among them, t i is the high level duration sampling value, c i is the number of the i-th high-level interruption, and i is the sequence number of the element in the high-level duration set.
11. A baud rate adjustment method for a photovoltaic inverter, characterized in that: The following steps are involved: Receive pulse data sent by remote equipment; Detecting a high level duration in the pulse data; Calculating a target baud rate according to the high level duration; The communication serial port of the photovoltaic inverter is configured according to the target baud rate to adjust the communication baud rate of the photovoltaic inverter.
12. The baud rate adjustment method of the photovoltaic inverter according to claim 11, characterized in that: After configuring the communication serial port of the photovoltaic inverter according to the target baud rate, the method further includes: Sending a response instruction to the remote device, so that the remote device verifies and matches the photovoltaic inverter according to the response instruction, and feeds back a feedback signal indicating whether the matching is successful or not; receiving the feedback signal; When it is determined according to the feedback signal that the remote device is successfully matched, the target baud rate is stored, and the photovoltaic inverter is controlled to communicate at the target baud rate.
13. The baud rate adjustment method of the photovoltaic inverter according to claim 12, characterized in that: After receiving the feedback signal, the method further includes: When it is determined according to the feedback signal that the number of consecutive unsuccessful matches of the remote device reaches a preset number, the communication serial port of the photovoltaic inverter is configured according to a preset baud rate to adjust the communication baud rate of the photovoltaic inverter.
14. The baud rate adjustment method of a photovoltaic inverter according to claim 11, characterized in that: The calculating the target baud rate according to the high level duration includes: Determine a reference baud rate according to the high level duration; Comparing the reference baud rate with each universal baud rate in a preset baud rate set, wherein the preset baud rate set has a plurality of universal baud rates preset; A common baud rate in the preset baud rate set that meets a preset condition is used as the target baud rate.
15. The baud rate adjustment method of the photovoltaic inverter according to claim 14, characterized in that: The detecting the high level duration in the pulse data comprises: Acquire a high level duration set, wherein the high level duration set includes a plurality of high level duration sampling values; An average value of each element in the high-level duration set is calculated, and the average value is used as the high-level duration.
16. A photovoltaic inverter, characterized in that: It comprises the baud rate adjustment device of the photovoltaic inverter as described in any one of claims 1 to 10.
Citation Information
Cited By
Communication method for inverter firmware upgrade and electronic equipment
CN121418462A