An adaptive method and system for baud rate
The invention discloses an adaptive method of baud rate. The method comprises the following steps: when the preset pin of a target controller in a target local area network is detected to be powered on, an initial state value of a preset scanning mark is obtained; Judging whether the initial state v...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an adaptive method of baud rate. The method comprises the following steps: when the preset pin of a target controller in a target local area network is detected to be powered on, an initial state value of a preset scanning mark is obtained; Judging whether the initial state value satisfies a scanning condition; If so, judging whether at least one of the calibration switch or the data switch of the current node is in the on state; If yes, judging whether there is a match between the target baud rate and the baud rate of the target bus in each baud rate in the preset baudrate database; If so, the target baud rate is taken as the baud rate of the current node. The method can obtain the baud rate of the current node in the target local area network by scanning, therebyavoiding the problem that the baud rate of the newly-added CAN node cannot be matched with the CAN network under the condition of insufficient testing and debugging equipment when the baud rate of the newly-added CAN node is |
---|