A method and system for baud rate adjustment

CN117675435BActive Publication Date: 2026-09-22GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311646581.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-04
Publication Date
2026-09-22
Estimated Expiration
2043-12-04

AI Technical Summary

Technical Problem

[0005]本发明实施例提供了一种波特率调整方法及系统,旨在解决复杂的工程环境的波特率调整问题

Benefits of technology

[0014]本发明实施例公开了一种波特率调整方法及系统,该方法包括:预先在第一CAN-EB控制器和第二CAN-EB控制器均存储波特率测试数据包;其中,所述波特率测试数据包包括多类测试数据包;所述第一CAN-EB控制器依次向所述第二CAN-EB控制器发送所述多类测试数据包,并利用所述多类测试数据包进行分次筛选,得到第一CAN-EB控制器和第二CAN-EB控制器通讯的最优波特率;将所述最优波特率设置为所述第一CAN-EB控制器和第二CAN-EB控制器之间的工作波特率。本发明实施例通过预先在第一CAN-EB控制器和第二CAN-EB控制器均存储波特率测试数据包,并利用第一CAN-EB控制器依次向所述第二CAN-EB控制器发送的所述多类测试数据包进行分次筛选,得到第一CAN-EB控制器和第二CAN-EB控制器之间通讯的最优波特率,以及将所述最优波特率设置为所述第一CAN-EB控制器和第二CAN-EB控制器之间的工作波特率,实现了利用波特率测试数据包根据实际阻抗自适应调整波特率,解决了CAN-EB通讯中由于实际阻抗不匹配而导致的信号质量下降问题,提高了CAN-EB通讯的稳定性和可靠性,使得CAN-EB通讯在复杂环境中的应用更加可靠。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117675435B_ABST
    Figure CN117675435B_ABST
Patent Text Reader

Abstract

The application discloses a baud rate adjusting method and system, the method comprises the following steps: storing baud rate test data packets in a first CAN-EB controller and a second CAN-EB controller in advance; the first CAN-EB controller sends multiple types of test data packets to the second CAN-EB controller, and the multiple types of test data packets are used for screening in batches to obtain an optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller; and the optimal baud rate is set as a working baud rate between the first CAN-EB controller and the second CAN-EB controller. The application stores baud rate test data packets in the first CAN-EB controller and the second CAN-EB controller in advance, uses the first CAN-EB controller to send multiple types of test data packets to the second CAN-EB controller for screening in batches, sets the obtained optimal baud rate as the working baud rate, realizes adaptive adjustment of the baud rate according to the actual impedance, solves the problem of signal quality decline caused by mismatching of the actual impedance, improves the stability and reliability of CAN-EB communication, and makes the CAN-EB communication more reliable in the application of a complex environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a baud rate adjustment method and system. Background Technology

[0002] With the development and advancement of intelligentization, the demand for intelligent integration in building control scenarios is increasing, and communication protocols are being used more widely in these scenarios. Communication protocols offer excellent openness, standardizing the interaction behavior and communication format between the main controller and expansion modules in intelligent building control systems. Developers of building control products can develop their own expansion modules based on these communication protocols, enriching the devices and systems that the main controller can integrate. CAN communication, a masterless communication mechanism, supports a large number of module nodes, boasts high communication efficiency and strong scalability, and enables seamless access of expansion modules. CAN-EB communication, on the other hand, is a building industry communication technology specification based on CAN communication.

[0003] Common CAN communication typically has a standard characteristic impedance. However, in actual building control scenarios, due to the complexity and variability of the building control environment, as well as various factors such as the material, length, and distance of the wiring, it is difficult to ensure that the actual impedance of CAN-EB communication matches the standard characteristic impedance. Furthermore, factors such as the number of nodes in the building and environmental interference can also affect the signal transmission of CAN-EB communication, which may lead to problems such as signal reflection, waveform distortion, and reduced communication quality. In such cases, it is necessary to adjust the baud rate of CAN-EB communication according to the actual impedance to reduce signal reflection, maintain signal integrity, and reduce signal attenuation.

[0004] However, current baud rate adjustment methods are generally not adaptable to different communication environments. Therefore, how to provide a baud rate adjustment method suitable for complex engineering environments is a problem to be solved by those skilled in the art. Summary of the Invention

[0005] This invention provides a baud rate adjustment method and system, aiming to solve the baud rate adjustment problem in complex engineering environments.

[0006] In a first aspect, embodiments of the present invention provide a baud rate adjustment method, including:

[0007] Baud rate test data packets are pre-stored in both the first CAN-EB controller and the second CAN-EB controller; wherein, the baud rate test data packets include multiple types of test data packets;

[0008] The first CAN-EB controller sequentially sends the various types of test data packets to the second CAN-EB controller, and uses the various types of test data packets to perform multiple filtering to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller;

[0009] The optimal baud rate is set as the operating baud rate between the first CAN-EB controller and the second CAN-EB controller.

[0010] Secondly, embodiments of the present invention provide a baud rate adjustment system, including a first CAN-EB controller and a second CAN-EB controller;

[0011] Both the first CAN-EB controller and the second CAN-EB controller store baud rate test data packets; wherein, the baud rate test data packets include multiple types of test data packets;

[0012] The first CAN-EB controller is used to send the multiple types of test data packets to the second CAN-EB controller in sequence, and to use the multiple types of test data packets to perform filtering in stages to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller;

[0013] The first CAN-EB controller and the second CAN-EB controller set the optimal baud rate to a working baud rate between the two.

[0014] This invention discloses a baud rate adjustment method and system. The method includes: pre-storing baud rate test data packets in both a first CAN-EB controller and a second CAN-EB controller; wherein the baud rate test data packets include multiple types of test data packets; the first CAN-EB controller sequentially sends the multiple types of test data packets to the second CAN-EB controller, and uses the multiple types of test data packets to perform sequential filtering to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller; and setting the optimal baud rate as the working baud rate between the first CAN-EB controller and the second CAN-EB controller. This invention, through pre-storing baud rate test data packets in both the first and second CAN-EB controllers, and sequentially filtering the various types of test data packets sent from the first CAN-EB controller to the second CAN-EB controller, obtains the optimal baud rate for communication between the first and second CAN-EB controllers. The optimal baud rate is then set as the operating baud rate between the first and second CAN-EB controllers. This achieves adaptive baud rate adjustment based on actual impedance using baud rate test data packets, solving the signal quality degradation problem caused by actual impedance mismatch in CAN-EB communication, improving the stability and reliability of CAN-EB communication, and making its application in complex environments more reliable. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 A schematic flowchart of a baud rate adjustment method provided in an embodiment of the present invention;

[0017] Figure 2 Example diagram of CAN communication provided in an embodiment of the present invention;

[0018] Figure 3 A schematic diagram of a sub-process of a baud rate adjustment method provided in an embodiment of the present invention;

[0019] Figure 4 An example diagram illustrating a baud rate adjustment method provided in an embodiment of the present invention;

[0020] Figure 5 Another example diagram of a baud rate adjustment method provided in an embodiment of the present invention. Detailed Implementation

[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0023] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0024] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0025] Please see below. Figure 1 , Figure 1 The flowchart of a baud rate adjustment method provided in an embodiment of the present invention specifically includes steps S101 to S103.

[0026] S101. Baud rate test data packets are pre-stored in both the first CAN-EB controller and the second CAN-EB controller; wherein, the baud rate test data packets include multiple types of test data packets;

[0027] S102. The first CAN-EB controller sequentially sends the multiple types of test data packets to the second CAN-EB controller, and uses the multiple types of test data packets to perform filtering in stages to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller.

[0028] S103. Set the optimal baud rate to the working baud rate between the first CAN-EB controller and the second CAN-EB controller.

[0029] In this embodiment, baud rate test data packets are pre-stored in both the first and second CAN-EB controllers. Multiple test data packets sent sequentially from the first CAN-EB controller to the second CAN-EB controller are used for sequential filtering to obtain the optimal baud rate for communication between the first and second CAN-EB controllers. This optimal baud rate is then set as the operating baud rate between the first and second CAN-EB controllers. This embodiment utilizes multiple test data packets for sequential filtering, thereby adaptively adjusting the baud rate based on the actual impedance. This solves the signal quality degradation problem caused by actual impedance mismatch in CAN-EB communication, improving the stability and reliability of CAN-EB communication and making its application in complex environments more reliable. Furthermore, based on the baud rate adjustment method provided in this embodiment, engineers can more freely configure nodes and wiring when setting up the engineering environment related to the first and second CAN-EB controllers, without needing to manually adjust the baud rate. In addition, the baud rate adjustment method provided in this embodiment does not require additional professional impedance testing equipment and personnel, avoiding the economic costs associated with measuring actual impedance and reducing the maintenance costs of the CAN-EB communication network.

[0030] Combination Figure 2 As shown, in one specific embodiment, the CAN-EB communication is a daisy-chain topology CAN communication. Its extended communication bus includes a main controller (equivalent to the first CAN-EB controller) and multiple extension modules 1 to n (equivalent to the second CAN-EB controller). Both the main controller and the extension modules pre-store baud rate test data packets, which include multiple types of test data packets. The main controller sequentially sends multiple types of test data packets to each extension module for sequential filtering to obtain the optimal baud rate for communication between the main controller and each extension module. This optimal baud rate is then set as the corresponding operating baud rate for communication between the main controller and each extension module. This reduces signal reflection caused by the inconsistency between characteristic impedance and actual impedance during CAN communication signal transmission, improving the transmission accuracy of CAN communication in complex engineering environments.

[0031] In one embodiment, the multiple types of test data packets include: segmented filtering data packets and timeout verification filtering data packets.

[0032] In this embodiment, the multiple test data packets include segmented filtering data packets and timeout verification filtering data packets. The first CAN-EB controller sequentially sends segmented filtering data packets and timeout verification filtering data packets to the second CAN-EB controller, thereby filtering the baud rates corresponding to the segmented filtering data packets and timeout verification filtering data packets in stages to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller.

[0033] In one embodiment, step S101 includes:

[0034] The baud rates supported by the first CAN-EB controller and the second CAN-EB controller are segmented, and segmented filtering data packets corresponding to each baud rate are designed based on the segmentation results.

[0035] In this embodiment, the baud rates supported by the first and second CAN-EB controllers are segmented, and segmented filtering data packets corresponding to each baud rate segment are designed based on the segmentation results. In specific application scenarios, baud rate segmentation can be performed according to the CAN chips corresponding to the first and second CAN-EB controllers. For example, when the CAN chip supports baud rates from 1k to 500k, the baud rates supported by the CAN chip can be evenly divided into 500 segments, such as 1k, 2k, 3k, etc., dividing the baud rates into multiple segments, and designing corresponding segmented filtering data packets for filtering, which can save baud rate filtering time. Here, the purpose of baud rate segmentation is to adapt to different application scenarios. For example, some scenarios are suitable for a 10k baud rate, while others are suitable for a 100k baud rate. When designing the segmented filtering data packets corresponding to each baud rate segment, the baud rates corresponding to each segmented filtering data packet are different, but the content in the segmented filtering data packets can be the same or different.

[0036] In one embodiment, step S101 further includes:

[0037] Based on the segmentation results, design timeout check filtering data packets corresponding to each baud rate segment, and set a retransmission mechanism for the timeout check filtering data packets, wherein the retransmission mechanism includes recording the number of retransmissions and the timeout period.

[0038] In this embodiment, based on the segmentation results of the baud rates supported by the first CAN-EB controller and the second CAN-EB controller, a timeout check filtering data packet corresponding to each baud rate segment in the segmentation results is designed, and a retransmission mechanism for the timeout check filtering data packet is set.

[0039] Combination Figure 3 As shown, in one embodiment, step S102 includes steps S301 to S304.

[0040] S301, The first CAN-EB controller sends the segmented filtering data packet to the second CAN-EB controller;

[0041] S302. Perform the first screening of baud rates based on the fitting degree of the segmented filtering data packets: remove the baud rates corresponding to segmented filtering data packets with a fitting degree lower than the fitting degree threshold, and set the remaining baud rates as the first baud rate;

[0042] S303, The first CAN-EB controller sends the timeout check filtering data packet corresponding to the first baud rate to the second CAN-EB controller;

[0043] S304. Perform a second filtering of baud rates according to the retransmission mechanism of the timeout check filtering data packets: obtain the timeout duration of the corresponding timeout check filtering data packets, and retain the second baud rate whose timeout duration is lower than the timeout duration threshold.

[0044] In this embodiment, firstly, the first CAN-EB controller sends segmented filtering data packets to the second CAN-EB controller to perform the first filtering of baud rates. The first filtering action can be completed on the second CAN-EB controller side. Specifically, the second CAN-EB controller calculates the fitting degree of each received segmented filtering data packet, compares the fitting degree of the segmented filtering data packets with a preset fitting degree threshold, removes the baud rates corresponding to segmented filtering data packets with fitting degrees lower than the fitting degree threshold, and sets the remaining baud rates as the first baud rate. After the first filtering is completed, the second CAN-EB controller can provide feedback to the first CAN-EB controller, enabling the first CAN-EB controller to continue sending timeout verification filtering data packets to the second CAN-EB controller. Next, the first CAN-EB controller sends a timeout verification filtering data packet corresponding to the first baud rate to the second CAN-EB controller. A second filtering of the baud rate is then performed based on the retransmission mechanism of the timeout verification filtering data packet. This second filtering can also be performed on the second CAN-EB controller side. Specifically, the second CAN-EB controller calculates the timeout duration corresponding to each received timeout verification filtering data packet and compares the timeout duration of each timeout verification filtering data packet with a timeout duration threshold, retaining the second baud rate whose timeout duration is lower than the threshold. After the second filtering is completed, the second CAN-EB controller can provide feedback to the first CAN-EB controller, enabling the first CAN-EB controller to continue sending subsequent data packets to the second CAN-EB controller.

[0045] This embodiment reduces the baud rate filtering time by performing baud rate filtering twice, thereby obtaining a baud rate with higher fitting degree and shorter timeout duration between the first CAN-EB controller and the second CAN-EB controller more quickly, and improving the accuracy of communication signal transmission between the first CAN-EB controller and the second CAN-EB controller.

[0046] In a specific embodiment, the segmented filtering data packets are pre-stored in the first CAN-EB controller and the second CAN-EB controller. After receiving the segmented filtering data packets sent by the first CAN-EB controller, the second CAN-EB controller compares them with the stored segmented filtering data packets to obtain the fit. For example, if the baud rate corresponding to the segmented filtering data packets is 10kbps, and the content of the segmented filtering data packets sent by the first CAN-EB controller is 0101010101, the transmitted content may be partially lost or damaged due to environmental factors (impedance or line faults, etc.). Therefore, after the second CAN-EB controller receives the segmented filtering data packets sent by the first CAN-EB controller, it needs to compare the received content with the pre-stored 0101010101. If the fit between the two is lower than the fit threshold, the baud rate corresponding to the segmented filtering data packets is discarded.

[0047] The complexity of the content in the timeout check filtering data packet is relatively higher than that of the segmented filtering data packet. The first CAN-EB controller repeatedly sends the timeout check filtering data packet to the second CAN-EB controller, and the timeout check filtering data packet received by the second CAN-EB controller is repeatedly compared with the pre-stored timeout check filtering data packet until the content of the timeout check filtering data packet received by the second CAN-EB controller is consistent with the content of the pre-stored timeout check filtering data packet. At this time, the timeout duration of sending the timeout check filtering data packet is obtained, and the timeout duration is compared with the timeout duration threshold. Only the second baud rate with a timeout duration lower than the timeout duration threshold is retained.

[0048] In one embodiment, step S304 includes:

[0049] Obtain the timeout time and retransmission count of the corresponding timeout verification filtering data packet, calculate the product of the timeout time and the retransmission count, and use the product result as the timeout duration of the corresponding timeout verification filtering data packet.

[0050] In this embodiment, based on the number of retransmissions and the timeout time recorded in the retransmission mechanism, the timeout time and the number of retransmissions of the corresponding timeout verification filtering data packet are obtained, and the timeout time and the number of retransmissions are multiplied together. The result of the multiplication calculation is used as the timeout duration of the corresponding timeout verification filtering data packet for a second filtering.

[0051] In specific application scenarios, the timeout period refers to the single transmission time of the timeout check filtering data packet from the first CAN-EB controller to the second CAN-EB controller. The number of retransmissions refers to the number of times the first CAN-EB controller repeatedly sends the timeout check filtering data packet to the second CAN-EB controller. Multiplying the timeout period and the number of retransmissions yields information on CAN-EB communication in two dimensions: message time and communication quality, at the corresponding baud rate. The larger the timeout period, the greater the message delay in CAN-EB communication; the more retransmissions, the worse the communication quality of CAN-EB communication. Therefore, retaining the second baud rate with a timeout period lower than the timeout period threshold is to eliminate baud rates with poor communication quality.

[0052] In one embodiment, the multiple test data packets further include: CRC cyclic redundancy check data packets.

[0053] In this embodiment, in addition to segmented filtering data packets and timeout check filtering data packets, multiple types of test data packets also include CRC cyclic redundancy check data packets. That is, the baud rate of communication between the first CAN-EB controller and the second CAN-EB controller is also filtered through CRC cyclic redundancy check data packets to obtain the optimal baud rate.

[0054] Combination Figure 4 As shown, in one embodiment, step S102 further includes:

[0055] The first CAN-EB controller sends the CRC cyclic redundancy check data packet corresponding to the second baud rate to the second CAN-EB controller;

[0056] The baud rate is then filtered a third time based on the fit of the CRC cyclic redundancy check data packet: the baud rate corresponding to the CRC cyclic redundancy check data packet with the highest fit is selected as the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller.

[0057] In this embodiment, after obtaining the second baud rate, the first CAN-EB controller sends a CRC (Cyclic Redundancy Check) data packet corresponding to the second baud rate to the second CAN-EB controller, and obtains the fitting degree corresponding to each CRC data packet. Based on the fitting degree of the CRC data packets, a third baud rate selection is performed. This third selection can be completed on the second CAN-EB controller side. Specifically, the fitting degrees of each CRC data packet are compared, and the baud rate corresponding to the CRC data packet with the highest fitting degree is selected as the optimal baud rate for communication between the first and second CAN-EB controllers. In specific application scenarios, the complexity of CRC data packets is higher than that of segmented selection data packets and timeout check selection data packets. Directly selecting all baud rates using CRC data packets would consume a lot of time and resources, because it is necessary to first perform multiple selections using segmented selection data packets and timeout check selection data packets to narrow down the range of optimal baud rates, and then use CRC data packets to select the optimal baud rate from among them. This approach can save time and resources while ensuring the accuracy of baud rate selection. Meanwhile, after the third screening is completed, since the optimal baud rate has been selected, the second CAN-EB controller can directly communicate with the first CAN-EB controller using the optimal baud rate. Therefore, the second CAN-EB controller does not need to provide feedback to the first CAN-EB controller. That is, in the verification process, only the first CAN-EB controller sends CRC cyclic redundancy check data packets to the second CAN-EB controller. The first CAN-EB controller does not need to obtain the corresponding feedback, which can shorten the transmission path of the signal and thus increase the accuracy of baud rate verification.

[0058] Combination Figure 5 As shown, in one embodiment, the baud rate adjustment method further includes:

[0059] The first CAN-EB controller sends a bit error rate verification data packet to the second CAN-EB controller and records the bit error rate at the operating baud rate;

[0060] The bit error rate is compared with a preset bit error rate threshold. When the bit error rate exceeds the bit error rate threshold, the first CAN-EB controller resends the CRC cyclic redundancy check data packet to the second CAN-EB controller for re-verification.

[0061] In this embodiment, after setting the operating baud rate between the first CAN-EB controller and the second CAN-EB controller, the first CAN-EB controller sends a bit error rate verification data packet to the second CAN-EB controller to record the bit error rate at the operating baud rate and compare it with a preset bit error rate threshold. When the bit error rate exceeds the bit error rate threshold, the first CAN-EB controller resends a CRC cyclic redundancy check data packet to the second CAN-EB controller for verification, thereby updating the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller, which is then used as the operating baud rate.

[0062] In specific application scenarios, after setting the operating baud rate between the first and second CAN-EB controllers, during communication between them, factors such as loose interfaces or aging cables may cause changes in the impedance of the communication line. In such cases, it is necessary to re-observe the optimal baud rate for communication between the first and second CAN-EB controllers to ensure effective communication. By configuring the first CAN-EB controller to automatically send a bit error rate verification data packet to the second CAN-EB controller for re-verification during operation or idle time, a dynamic adjustment method can be used to autonomously verify and correct the optimal baud rate for communication between the two controllers. This ensures that the operating baud rate is always suitable for communication between the first and second CAN-EB controllers, guaranteeing effective communication. Furthermore, the content of the bit error rate verification data packet can be the same as the timeout verification filter data packet.

[0063] In other application scenarios, if the communication conditions between the first CAN-EB controller and the second CAN-EB controller change significantly, such as when engineers readjust or rearrange the engineering environment, it is necessary to send multiple types of test data packets from the first CAN-EB controller to the second CAN-EB controller in sequence, use these test data packets for filtering in stages, and set the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller to the working baud rate.

[0064] This invention also provides a baud rate adjustment system, including a first CAN-EB controller and a second CAN-EB controller;

[0065] Both the first CAN-EB controller and the second CAN-EB controller store baud rate test data packets; wherein, the baud rate test data packets include multiple types of test data packets;

[0066] The first CAN-EB controller is used to send the multiple types of test data packets to the second CAN-EB controller in sequence, and to use the multiple types of test data packets to perform filtering in stages to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller;

[0067] The first CAN-EB controller and the second CAN-EB controller set the optimal baud rate to a working baud rate between the two.

[0068] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0069] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A baud rate adjustment method, characterized in that, include: Baud rate test data packets are pre-stored in both the first CAN-EB controller and the second CAN-EB controller; wherein, the baud rate test data packets include multiple types of test data packets; the multiple types of test data packets include: segmented filtering data packets and timeout check filtering data packets; The first CAN-EB controller sequentially sends the various types of test data packets to the second CAN-EB controller, and uses the various types of test data packets to perform multiple filtering to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller; Set the optimal baud rate to the operating baud rate between the first CAN-EB controller and the second CAN-EB controller; The first CAN-EB controller sequentially sends the various types of test data packets to the second CAN-EB controller, and uses these test data packets to perform sequential filtering to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller, including: The first CAN-EB controller sends the segmented filtering data packet to the second CAN-EB controller; The baud rate is first filtered based on the fit of the segmented data packets: the baud rates corresponding to the segmented data packets with a fit lower than the fit threshold are removed, and the remaining baud rates are set as the first baud rate. The first CAN-EB controller sends the timeout check filtering data packet corresponding to the first baud rate to the second CAN-EB controller; The baud rate is filtered a second time according to the retransmission mechanism of the timeout check filtering data packet: the timeout duration of the corresponding timeout check filtering data packet is obtained, and the second baud rate with a timeout duration lower than the timeout duration threshold is retained.

2. The baud rate adjustment method according to claim 1, characterized in that, The pre-stored baud rate test data packets in both the first and second CAN-EB controllers include: The baud rates supported by the first CAN-EB controller and the second CAN-EB controller are segmented, and segmented filtering data packets corresponding to each baud rate are designed based on the segmentation results.

3. The baud rate adjustment method according to claim 2, characterized in that, The pre-storing of baud rate test data packets in both the first and second CAN-EB controllers also includes: Based on the segmentation results, design timeout check filtering data packets corresponding to each baud rate segment, and set a retransmission mechanism for the timeout check filtering data packets, wherein the retransmission mechanism includes recording the number of retransmissions and the timeout period.

4. The baud rate adjustment method according to claim 1, characterized in that, The multiple types of test data packets also include: CRC cyclic redundancy check data packets.

5. The baud rate adjustment method according to claim 4, characterized in that, The first CAN-EB controller sequentially sends the various types of test data packets to the second CAN-EB controller, and uses these test data packets to perform sequential filtering to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller. The method also includes: The first CAN-EB controller sends the CRC cyclic redundancy check data packet corresponding to the second baud rate to the second CAN-EB controller; The baud rate is then filtered a third time based on the fit of the CRC cyclic redundancy check data packet: the baud rate corresponding to the CRC cyclic redundancy check data packet with the highest fit is selected as the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller.

6. The baud rate adjustment method according to claim 1, characterized in that, The step of obtaining the timeout duration of the corresponding timeout verification filtering data packet includes: Obtain the timeout time and retransmission count of the corresponding timeout verification filtering data packet, calculate the product of the timeout time and the retransmission count, and use the product result as the timeout duration of the corresponding timeout verification filtering data packet.

7. The baud rate adjustment method according to claim 5, characterized in that, Also includes: The first CAN-EB controller sends a bit error rate verification data packet to the second CAN-EB controller and records the bit error rate at the operating baud rate; The bit error rate is compared with a preset bit error rate threshold. When the bit error rate exceeds the bit error rate threshold, the first CAN-EB controller resends the CRC cyclic redundancy check data packet to the second CAN-EB controller for re-verification.

8. A baud rate adjustment system, characterized in that, Including the first CAN-EB controller and the second CAN-EB controller; Both the first CAN-EB controller and the second CAN-EB controller store baud rate test data packets; wherein, the baud rate test data packets include multiple types of test data packets; the multiple types of test data packets include: segmented filtering data packets and timeout check filtering data packets; The first CAN-EB controller is used to send the multiple types of test data packets to the second CAN-EB controller in sequence, and to use the multiple types of test data packets to perform filtering in stages to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller; The first CAN-EB controller and the second CAN-EB controller set the optimal baud rate to a working baud rate between the two; The first CAN-EB controller sequentially sends the various types of test data packets to the second CAN-EB controller, and uses these test data packets to perform sequential filtering to obtain the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller, including: The first CAN-EB controller sends the segmented filtering data packet to the second CAN-EB controller; The baud rate is first filtered based on the fit of the segmented data packets: the baud rates corresponding to the segmented data packets with a fit lower than the fit threshold are removed, and the remaining baud rates are set as the first baud rate. The first CAN-EB controller sends the timeout check filtering data packet corresponding to the first baud rate to the second CAN-EB controller; The baud rate is filtered a second time according to the retransmission mechanism of the timeout check filtering data packet: the timeout duration of the corresponding timeout check filtering data packet is obtained, and the second baud rate with a timeout duration lower than the timeout duration threshold is retained.

Citation Information

Patent Citations

  • An adaptive method and system for baud rate

    CN109274567A

  • Bidirectional interactive communication baud rate self-adaption method

    CN113891183A