CN117675435A - Baud rate adjusting method and system - Google Patents

Baud rate adjusting method and system Download PDF

Info

Publication number
CN117675435A
CN117675435A CN202311646581.1A CN202311646581A CN117675435A CN 117675435 A CN117675435 A CN 117675435A CN 202311646581 A CN202311646581 A CN 202311646581A CN 117675435 A CN117675435 A CN 117675435A
Authority
CN
China
Prior art keywords
controller
baud rate
screening
data packets
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311646581.1A
Other languages
Chinese (zh)
Inventor
李宏波
申伟刚
李浩翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202311646581.1A priority Critical patent/CN117675435A/en
Publication of CN117675435A publication Critical patent/CN117675435A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a baud rate adjusting method and a baud rate adjusting system, wherein 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 a plurality of types of test data packets to the second CAN-EB controller, and the test data packets are used for carrying out fractional screening to obtain the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller; the optimal baud rate is set to an operating baud rate between the first CAN-EB controller and the second CAN-EB controller. According to the invention, the baud rate test data packets are stored in the first CAN-EB controller and the second CAN-EB controller in advance, the first CAN-EB controller is used for sending the multi-class test data packets to the second CAN-EB controller for screening for a plurality of times, and the obtained optimal baud rate is set as the working baud rate, so that the baud rate is adaptively adjusted according to the actual impedance, the problem of signal quality reduction caused by the mismatch of the actual impedance is solved, the stability and the reliability of CAN-EB communication are improved, and the application of the CAN-EB communication in a complex environment is more reliable.

Description

Baud rate adjusting method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a baud rate adjustment method and system.
Background
With the development and promotion of intelligence, the demand for intelligent integration is increasing in building control scenes, and communication protocols are also widely applied in building control scenes. The communication protocol has good openness, standardizes the interaction behavior and the communication format between the main controller and the expansion module of the control system in the intelligent building, and developers of building control products can develop the independent expansion module according to own requirements on the basis of the communication protocol and enrich the equipment and the system which can be integrated by the main controller. The CAN communication in the communication protocol is a non-main communication mechanism, the bus supports a large number of module nodes to access, the communication efficiency is high, the expandability is strong, the non-differential access of the expansion modules CAN be realized, and the CAN-EB communication is a building industry communication technical specification based on the CAN communication.
In an actual building control scene, because the building control scene is complex and changeable, the actual impedance of the CAN-EB communication is difficult to be matched with the standard characteristic impedance due to various reasons such as wire materials, lengths and distances in the building, and the signal transmission of the CAN-EB communication is influenced by the factors such as the number of nodes in the building, the environmental interference and the like, so that the problems such as signal reflection, waveform distortion and communication quality reduction CAN be caused, and at the moment, the baud rate of the CAN-EB communication needs to be adjusted according to the actual impedance to reduce the signal reflection, maintain the signal integrity and reduce the signal attenuation.
However, the current baud rate adjustment method cannot generally adapt to different communication environments, so how to provide a baud rate adjustment method suitable for a complex engineering environment is a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a baud rate adjusting method and a baud rate adjusting system, which aim to solve the problem of baud rate adjustment of a complex engineering environment.
In a first aspect, an embodiment of the present invention provides a baud rate adjustment method, including:
storing baud rate test data packets in both a first CAN-EB controller and a second CAN-EB controller in advance; wherein the baud rate test data packet comprises a plurality of 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 performs fractional screening by utilizing the multiple types of test data packets to obtain the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller;
setting the optimal baud rate to be an operating baud rate between the first and second CAN-EB controllers.
In a second aspect, an embodiment of the present invention provides a baud rate adjustment system, including a first CAN-EB controller and a second CAN-EB controller;
the first CAN-EB controller and the second CAN-EB controller are respectively stored with a baud rate test data packet; wherein the baud rate test data packet comprises a plurality of types of test data packets;
the first CAN-EB controller is used for sequentially sending the multiple types of test data packets to the second CAN-EB controller, and performing fractional screening by utilizing the multiple types of test data packets to obtain the optimal baud rate of the 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 as an operating baud rate therebetween.
The embodiment of the invention discloses a baud rate adjusting method and a baud rate adjusting system, wherein the method comprises the following steps: storing baud rate test data packets in both a first CAN-EB controller and a second CAN-EB controller in advance; wherein the baud rate test data packet comprises a plurality of 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 performs fractional screening by utilizing the multiple types of test data packets to obtain the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller; setting the optimal baud rate to be an operating baud rate between the first and second CAN-EB controllers. According to the embodiment of the invention, the baud rate test data packets are stored in the first CAN-EB controller and the second CAN-EB controller in advance, the first CAN-EB controller is utilized to sequentially screen the multiple types of test data packets sent to the second CAN-EB controller, the optimal baud rate of communication between the first CAN-EB controller and the second CAN-EB controller is obtained, and the optimal baud rate is set as the working baud rate between the first CAN-EB controller and the second CAN-EB controller, so that the baud rate is adaptively adjusted according to the actual impedance by utilizing the baud rate test data packets, the problem of signal quality degradation caused by the actual impedance mismatch in CAN-EB communication is solved, the stability and the reliability of the CAN-EB communication are improved, and the application of the CAN-EB communication in a complex environment is more reliable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a baud rate adjustment method according to an embodiment of the present invention;
FIG. 2 is an exemplary diagram of CAN communication provided by an embodiment of the invention;
fig. 3 is a schematic sub-flowchart of a baud rate adjustment method according to an embodiment of the present invention;
fig. 4 is an exemplary diagram of a baud rate adjustment method according to an embodiment of the present invention;
fig. 5 is a diagram illustrating another example of a baud rate adjustment method according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of 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 as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, fig. 1 is a flow chart of a baud rate adjustment method according to an embodiment of the present invention, which specifically includes: steps S101 to S103.
S101, storing baud rate test data packets in a first CAN-EB controller and a second CAN-EB controller in advance; wherein the baud rate test data packet comprises a plurality of types of test data packets;
s102, the first CAN-EB controller sequentially sends the multiple types of test data packets to the second CAN-EB controller, and the multiple types of test data packets are utilized for carrying out fractional screening to obtain the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller;
s103, setting the optimal baud rate as the working baud rate between the first CAN-EB controller and the second CAN-EB controller.
In this embodiment, the optimal baud rate of communication between the first CAN-EB controller and the second CAN-EB controller is obtained by storing baud rate test data packets in the first CAN-EB controller and the second CAN-EB controller in advance, and sequentially performing fractional screening on the multiple types of test data packets sent to the second CAN-EB controller by using the first CAN-EB controller, and setting the optimal baud rate as the operating baud rate between the first CAN-EB controller and the second CAN-EB controller. The embodiment utilizes multiple types of test data packets to carry out fractional screening, thereby self-adaptively adjusting the baud rate according to the actual impedance, solving the problem of signal quality reduction caused by the mismatch of the actual impedance in CAN-EB communication, improving the stability and reliability of the CAN-EB communication and ensuring that the CAN-EB communication is more reliably applied in a complex environment. Meanwhile, according to the baud rate adjusting method provided by the embodiment, when engineering personnel arrange engineering environments related to the first CAN-EB controller and the second CAN-EB controller, node and wiring configuration CAN be more freely carried out, and the baud rate is not required to be manually adjusted. In addition, the baud rate adjusting method provided by the embodiment does not need extra professional impedance testing equipment and personnel, CAN avoid the economic cost caused by the need of measuring the actual impedance, and reduces the maintenance cost of the CAN-EB communication network.
Referring to fig. 2, in a specific embodiment, the CAN-EB communication is a hand-in-hand topology CAN communication, the extended communication bus includes a main controller (equivalent to a first CAN-EB controller) and a plurality of extended modules 1 to n (equivalent to a second CAN-EB controller), in which the baud rate test data packets are pre-stored, and the baud rate test data packets include multiple types of test data packets. And the main controller is utilized to respectively and sequentially send multiple types of test data packets to each expansion module for screening in a dividing way, so that the optimal baud rate of the communication between the main controller and each expansion module is obtained, and the optimal baud rate is set to be the working baud rate corresponding to the communication between the main controller and each expansion module, so that signal reflection caused by inconsistent characteristic impedance and actual impedance in the CAN communication signal transmission process is reduced, and the transmission precision of the CAN communication in the complex engineering environment is improved.
In one embodiment, the multiple classes of test packets include: segment screening data packets and timeout checking screening data packets.
In this embodiment, the multiple types of test packets include a segment screening packet and a timeout check screening packet, and the segment screening packet and the timeout check screening packet are sequentially sent to the second CAN-EB controller by using the first CAN-EB controller, so that the baud rates corresponding to the segment screening packet and the timeout check screening packet are screened for multiple times, so as to obtain an optimal baud rate of communication between the first CAN-EB controller and the second CAN-EB controller.
In one embodiment, the step S101 includes:
segmenting the baud rate supported by the first CAN-EB controller and the second CAN-EB controller, and designing segmented screening data packets corresponding to the baud rate of each segment according to segmentation results.
In this embodiment, the baud rates supported by the first CAN-EB controller and the second CAN-EB controller are segmented, and the segment screening data packet corresponding to each segment baud rate is designed according to the segmentation result. In a specific application scenario, the baud rate CAN be segmented according to the CAN chips corresponding to the first CAN-EB controller and the second CAN-EB controller, for example, when the CAN chips support the baud rate of 1k-500k, the baud rate supported by the CAN chips CAN be uniformly and equally divided into 500 segments, such as 1k, 2k and 3k. The purpose of the baud rate segmentation is to adapt to different application scenarios, for example, some scenarios apply a baud rate of 10k, and other scenarios apply a baud rate of 100k, and when the segment screening data packet corresponding to each segment baud rate is designed, the baud rate corresponding to each segment screening data packet is different, but the content in the segment screening data packet may be the same or different.
In an embodiment, the step S101 further includes:
and designing timeout checking and screening data packets corresponding to each section of baud rate according to the segmentation result, and setting a retransmission mechanism of the timeout checking and screening data packets, wherein the retransmission mechanism comprises recording retransmission times and timeout time.
In this embodiment, according to the segmentation results of the baud rates supported by the first CAN-EB controller and the second CAN-EB controller, the timeout check screening data packet corresponding to each of the baud rates in the segmentation results is designed, and a retransmission mechanism of the timeout check screening data packet is set.
In one embodiment, as shown in fig. 3, the step S102 includes steps S301 to S304.
S301, the first CAN-EB controller sends the segment screening data packet to the second CAN-EB controller;
s302, carrying out first screening on the baud rate according to the fitting degree of the segmentation screening data packet: removing the baud rate corresponding to the segment screening data packet with the fitting degree lower than the fitting degree threshold value, and setting the rest baud rate as a first baud rate;
s303, the first CAN-EB controller sends the overtime check screening data packet corresponding to the first baud rate to the second CAN-EB controller;
s304, performing second screening on the baud rate according to the retransmission mechanism of the timeout checking screening data packet: and acquiring the corresponding timeout duration of the timeout checking and screening data packet, and reserving a second baud rate of which the timeout duration is lower than a timeout duration threshold.
In this embodiment, first, the first CAN-EB controller sends a segment screening data packet to the second CAN-EB controller to perform first screening on the baud rate, where the first screening action may be completed at the second CAN-EB controller side, specifically, the second CAN-EB controller calculates a fitness of each received segment screening data packet, compares the fitness of the segment screening data packet with a preset fitness threshold, rejects baud rates corresponding to segment screening data packets with a fitness lower than the fitness threshold, and sets the remaining baud rate as the first baud rate. After the first screening is finished, the second CAN-EB controller CAN feed back to the first CAN-EB controller, so that the first CAN-EB controller continues to send timeout check screening data packets to the second CAN-EB controller, and secondly, the first CAN-EB controller sends timeout check screening data packets corresponding to the first baud rate to the second CAN-EB controller, and performs second screening on the baud rate according to a retransmission mechanism of the timeout check screening data packets, wherein the second screening action CAN be finished at the second CAN-EB controller side, specifically, the second CAN-EB controller calculates timeout duration corresponding to the timeout check screening data packets according to the received timeout check screening data packets, compares the timeout durations corresponding to the timeout check screening data packets with timeout duration thresholds, and reserves a second baud rate with the timeout duration lower than the timeout duration thresholds. After the second screening is completed, the second CAN-EB controller may feed back to the first CAN-EB controller so that the first CAN-EB controller continues to send subsequent data packets to the second CAN-EB controller.
According to the embodiment, the baud rate is screened twice, so that the screening time of the baud rate CAN be reduced, the baud rate with higher fitting degree and shorter time-out duration between the first CAN-EB controller and the second CAN-EB controller CAN be obtained more rapidly, and the transmission precision of communication signals between the first CAN-EB controller and the second CAN-EB controller CAN be improved.
In a specific embodiment, the segment screening data packets are stored in the first CAN-EB controller and the second CAN-EB controller in advance, after the second CAN-EB controller receives the segment screening data packet sent by the first CAN-EB controller, the second CAN-EB controller compares the segment screening data packet with the stored segment screening data packet to obtain a fitness, for example, the baud rate corresponding to the segment screening data packet is 10kbps, the content of the segment screening data packet sent by the first CAN-EB controller is 0101010101, and part of data loss or damage may be caused by the influence of environment (impedance, line fault, etc.) in the transmission process of the content sent by the first CAN-EB controller, so that the received content needs to be compared with the prestored 0101010101 after the second CAN-EB controller receives the segment screening data packet sent by the first CAN-EB controller, and if the fitness of the received content is lower than a threshold of the fitness of the two is eliminated.
The complexity of the content in the time-out checking and screening data packet is higher than that of the segmented screening data packet, the time-out checking and screening data packet is repeatedly sent to the second CAN-EB controller through the first CAN-EB controller, the time-out checking and screening data packet received by the second CAN-EB controller is repeatedly compared with the pre-stored time-out checking and screening data packet, until the content of the time-out checking and screening data packet received by the second CAN-EB controller is consistent with that of the pre-stored time-out checking and screening data packet, at the moment, the time-out time length for sending the time-out checking and screening data packet is acquired, the time-out time length is compared with the time-out time length threshold, and only the second baud rate with the time-out time length lower than the time-out time length threshold is reserved.
In one embodiment, the step S304 includes:
obtaining the overtime time and the retransmission times of the corresponding overtime check screening data packet, calculating the product of the overtime time and the retransmission times, and taking the product result as the overtime time of the corresponding overtime check screening data packet.
In this embodiment, according to the retransmission times and the timeout times recorded in the retransmission mechanism, the timeout times and the retransmission times of the corresponding timeout check screening data packet are obtained, product calculation is performed according to the timeout times and the retransmission times, and the result of the product calculation is used as the timeout time length of the corresponding timeout check screening data packet to perform the second screening.
In a specific application scenario, the overtime time refers to the single sending message time of the overtime check screening data packet sent by the first CAN-EB controller to the second CAN-EB controller, the retransmission times refers to the times of repeated sending of the overtime check screening data packet by the first CAN-EB controller to the second CAN-EB controller, the product calculation of the overtime time and the retransmission times CAN obtain the information of the CAN-EB communication in two dimensions of message time and communication quality under the corresponding baud rate, the larger the value of the overtime time length is, the larger the message delay of the CAN-EB communication is, the larger the retransmission times are, the worse the communication quality of the CAN-EB communication is, and therefore, the second baud rate with the overtime time length lower than the threshold value of the overtime time length is reserved for eliminating the baud rate with poor communication quality.
In an embodiment, the multiple types of test packets further include: CRC cyclic redundancy check data packets.
In this embodiment, in addition to the segment screening data packet and the timeout check screening data packet, the multiple types of test data packets further include a CRC cyclic redundancy check data packet, that is, the baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller is further screened by the CRC cyclic redundancy check data packet, so as to obtain an optimal baud rate.
As shown in fig. 4, in an embodiment, the step S102 further 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;
and thirdly screening the baud rate according to the fitting degree of the CRC cyclic redundancy check data packet: and selecting the baud rate corresponding to the CRC cyclic redundancy check data packet with the highest fitting degree, and taking the baud rate as the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller.
In this embodiment, after the second baud rate is obtained, 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, obtains a fitting degree corresponding to each CRC cyclic redundancy check data packet, and performs a third screening on the baud rate according to the fitting degree of the CRC cyclic redundancy check data packet, where the act of the third screening may be completed at the second CAN-EB controller side, specifically, the fitting degree of each CRC cyclic redundancy check data packet is compared, and the baud rate corresponding to the CRC cyclic redundancy check data packet with the highest fitting degree is selected from the two baud rates as the optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller. In a specific application scenario, the complexity of the CRC cyclic redundancy check data packet is higher than that of the segmentation screening data packet and the overtime check screening data packet, and if all the baud rates are screened directly through the CRC cyclic redundancy check data packet, a lot of time and resources are consumed, because the segmentation screening data packet and the overtime check screening data packet are required to be screened for multiple times, the range of the optimal baud rate is narrowed, the optimal baud rate is screened out by utilizing the CRC cyclic redundancy check data packet, and the time and the resources can be saved while the baud rate screening precision is ensured. Meanwhile, after the third screening is finished, as the optimal baud rate is selected, the second CAN-EB controller CAN directly adopt the optimal baud rate to communicate with the first CAN-EB controller, so that the second CAN-EB controller does not need to feed back to the first CAN-EB controller, namely, in the verification process, only the first CAN-EB controller sends a CRC cyclic redundancy check data packet to the second CAN-EB controller, and the first CAN-EB controller does not need to acquire corresponding feedback, so that the circulation path of a transmission signal CAN be shortened, and the accuracy of baud rate check is improved.
As shown in fig. 5, in an embodiment, the baud rate adjusting method further includes:
the first CAN-EB controller sends an error rate verification data packet to the second CAN-EB controller and records the error rate under the working baud rate;
comparing the error rate with a preset error rate threshold, and when the error rate exceeds the error rate threshold, retransmitting a CRC cyclic redundancy check data packet to the second CAN-EB controller by the first CAN-EB controller so as to carry out rechecking.
In this embodiment, after the working baud rate between the first CAN-EB controller and the second CAN-EB controller is set, the first CAN-EB controller sends a bit error rate check data packet to the second CAN-EB controller, records the bit error rate under the working baud rate, compares the bit error rate with a preset bit error rate threshold, and when the bit error rate exceeds the bit error rate threshold, the first CAN-EB controller sends a CRC cyclic redundancy check data packet to the second CAN-EB controller again for checking so as to update the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller, thereby serving as the working baud rate.
In a specific application scene, after the working baud rate between the first CAN-EB controller and the second CAN-EB controller is set, in the communication process between the first CAN-EB controller and the second CAN-EB controller, the impedance of a communication line CAN be changed due to some factors, such as the occurrence of environmental factors such as loose interfaces and ageing of wires, and the like, so that the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller needs to be obtained again to ensure the communication effect of the first CAN-EB controller and the second CAN-EB controller. By setting that the first CAN-EB controller automatically sends the error rate verification data packet to the second CAN-EB controller for re-verification during working or idle time, the dynamic adjustment method CAN be utilized to automatically verify and correct the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller, so that the working baud rate CAN be always suitable for the communication between the first CAN-EB controller and the second CAN-EB controller, and the communication effect between the first CAN-EB controller and the second CAN-EB controller is ensured. In addition, the content of the bit error rate check packet may be the same as the timeout check filter packet.
In other application scenarios, if the communication conditions between the first CAN-EB controller and the second CAN-EB controller change greatly, for example, an engineering worker readjusts or arranges the engineering environment, the first CAN-EB controller needs to send multiple types of test data packets to the second CAN-EB controller in sequence, and the multiple types of test data packets are utilized to perform screening in a fractional manner, and the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller is set as the working baud rate.
The embodiment of the invention also provides a baud rate adjusting system which comprises a first CAN-EB controller and a second CAN-EB controller;
the first CAN-EB controller and the second CAN-EB controller are respectively stored with a baud rate test data packet; wherein the baud rate test data packet comprises a plurality of types of test data packets;
the first CAN-EB controller is used for sequentially sending the multiple types of test data packets to the second CAN-EB controller, and performing fractional screening by utilizing the multiple types of test data packets to obtain the optimal baud rate of the 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 as an operating baud rate therebetween.
In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A baud rate adjustment method, comprising:
storing baud rate test data packets in both a first CAN-EB controller and a second CAN-EB controller in advance; wherein the baud rate test data packet comprises a plurality of 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 performs fractional screening by utilizing the multiple types of test data packets to obtain the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller;
setting the optimal baud rate to be an operating baud rate between the first and second CAN-EB controllers.
2. The baud rate adjustment method according to claim 1, wherein said plurality of types of test data packets comprise: segment screening data packets and timeout checking screening data packets.
3. The baud rate adjusting method according to claim 2, wherein storing the baud rate test data packet in both the first CAN-EB controller and the second CAN-EB controller in advance comprises:
segmenting the baud rate supported by the first CAN-EB controller and the second CAN-EB controller, and designing segmented screening data packets corresponding to the baud rate of each segment according to segmentation results.
4. The baud rate adjusting method according to claim 3, wherein said storing baud rate test data packets in both of the first CAN-EB controller and the second CAN-EB controller in advance further comprises:
and designing timeout checking and screening data packets corresponding to each section of baud rate according to the segmentation result, and setting a retransmission mechanism of the timeout checking and screening data packets, wherein the retransmission mechanism comprises recording retransmission times and timeout time.
5. The baud rate adjustment method according to claim 4, wherein said first CAN-EB controller sequentially sends said plurality of types of test data packets to said second CAN-EB controller, and performs a fractional screening using said plurality of types of test data packets to obtain an optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller, comprising:
the first CAN-EB controller sends the segment screening data packet to the second CAN-EB controller;
and carrying out first screening on the baud rate according to the fitting degree of the segment screening data packet: removing the baud rate corresponding to the segment screening data packet with the fitting degree lower than the fitting degree threshold value, and setting the rest baud rate as a first baud rate;
the first CAN-EB controller sends the overtime check screening data packet corresponding to the first baud rate to the second CAN-EB controller;
and carrying out second screening on the baud rate according to the retransmission mechanism of the timeout checking screening data packet: and acquiring the corresponding timeout duration of the timeout checking and screening data packet, and reserving a second baud rate of which the timeout duration is lower than a timeout duration threshold.
6. The baud rate adjustment method according to claim 5, wherein said plurality of types of test packets further comprise: CRC cyclic redundancy check data packets.
7. The baud rate adjustment method according to claim 6, wherein said first CAN-EB controller sequentially sends said plurality of types of test data packets to said second CAN-EB controller, and performs a fractional screening using said plurality of types of test data packets to obtain an optimal baud rate for communication between the first CAN-EB controller and the second CAN-EB controller, further comprising:
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;
and thirdly screening the baud rate according to the fitting degree of the CRC cyclic redundancy check data packet: and selecting the baud rate corresponding to the CRC cyclic redundancy check data packet with the highest fitting degree, and taking the baud rate as the optimal baud rate of the communication between the first CAN-EB controller and the second CAN-EB controller.
8. The baud rate adjustment method according to claim 5, wherein said obtaining timeout periods of all of said timeout check filter packets comprises:
obtaining the overtime time and the retransmission times of the corresponding overtime check screening data packet, calculating the product of the overtime time and the retransmission times, and taking the product result as the overtime time of the corresponding overtime check screening data packet.
9. The baud rate adjustment method according to claim 7, further comprising:
the first CAN-EB controller sends an error rate verification data packet to the second CAN-EB controller and records the error rate under the working baud rate;
comparing the error rate with a preset error rate threshold, and when the error rate exceeds the error rate threshold, retransmitting a CRC cyclic redundancy check data packet to the second CAN-EB controller by the first CAN-EB controller so as to carry out rechecking.
10. The baud rate adjusting system is characterized by comprising a first CAN-EB controller and a second CAN-EB controller;
the first CAN-EB controller and the second CAN-EB controller are respectively stored with a baud rate test data packet;
wherein the baud rate test data packet comprises a plurality of types of test data packets;
the first CAN-EB controller is used for sequentially sending the multiple types of test data packets to the second CAN-EB controller, and performing fractional screening by utilizing the multiple types of test data packets to obtain the optimal baud rate of the 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 as an operating baud rate therebetween.
CN202311646581.1A 2023-12-04 2023-12-04 Baud rate adjusting method and system Pending CN117675435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311646581.1A CN117675435A (en) 2023-12-04 2023-12-04 Baud rate adjusting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311646581.1A CN117675435A (en) 2023-12-04 2023-12-04 Baud rate adjusting method and system

Publications (1)

Publication Number Publication Date
CN117675435A true CN117675435A (en) 2024-03-08

Family

ID=90067570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311646581.1A Pending CN117675435A (en) 2023-12-04 2023-12-04 Baud rate adjusting method and system

Country Status (1)

Country Link
CN (1) CN117675435A (en)

Similar Documents

Publication Publication Date Title
CN101416443B (en) Apparatus and method for configuring digital customer line
CN101854648B (en) Testing method, device and testing system for single board of communication apparatus
EP3082285B1 (en) Ethernet data rate selection based on cable parameters
CN111984477B (en) PCIe equipment signal parameter dynamic correction device and method
CN109257094B (en) Pre-emphasis value evaluation method and device for serial deserializing transmitter
US6865700B1 (en) Using profiles to perform bit error rate testing
CN112671584B (en) Network topology identification method, device, system and storage medium
CN109089318B (en) Method for allocating frequency channels to a plurality of adjacent access points
CN113971087A (en) Task allocation method, device and system and computer storage medium
CN112332903A (en) Congestion control method, device, terminal and medium for satellite link
US10397057B2 (en) Transmitting digital data in two-wire communication networks
CN114040446A (en) Method and device for coupling verification between information
CN117675435A (en) Baud rate adjusting method and system
CN116521602A (en) Bus data transmission method and device and storage medium
CN101500253B (en) Test system and method for base station uplink transmission channel performance
CN110460398B (en) Reliability test system for synchronous wireless channel of wireless expander
US6956819B1 (en) Method, apparatus and system for evaluating quality-of-service in packet switching network
CN108270641B (en) Method and device for testing performance of heaven and earth integrated information network
CN112738568B (en) Code rate adjusting method, audio and video server side, receiving side and sending side
CN105553589B (en) The method and device of time synchronized is realized in packet bearer network
CN115052264B (en) Railway passenger station wireless network communication method and device based on multipath screening
KR100513340B1 (en) An adaptive bit rate allocation method using the estimation signal to noise ratio
CN113923108A (en) Method, system, equipment and storage medium for automatically configuring time delay parameters
CN115734105A (en) Data processing method, device and equipment of local side equipment
US20100271967A1 (en) Method and apparatus for measuring demodulating performance of communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination