摘要 |
Method for bus communication according to the LIN protocol, wherein the LIN master (M) is extended with a functionality for processing a data frame (100). The master has the following properties: - allocation of a node address to each slave (S1,...Sn), - communication of the number of slaves, - allocation of a single identifier to each slave, - reception of the serially transmitted useful data bytes (2) and buffer-storage of the useful data bytes (2), - calculation of a checksum over all received useful data bytes and communication of said checksum to all slaves. An observation window (WW) is opened, in which a bus level change to dominant becomes identifiable by the master (M). The master detects the level change and it processes the useful data bytes (2) further after transmission without a level change or it discards them after transmission with a level change. Each slave is extended with a functionality for processing the data frame (100). The slaves (S1,...Sn) have the following properties: - storage of the individually communicated node address, - storage of the number of slaves, - storage of the identifier according to which all the transmitted useful data bytes are received and buffer-stored in each slave (S1,... Sn), - transmission of the dedicated useful data bytes (2) in a specific order, - calculation of a checksum including the dedicated useful data bytes (2) after reception of all the useful data bytes (2') and buffer-storage of the checksum, - each slave (S1,...Sn) carries out a comparison of the checksum (3') communicated by the master (M) with the checksum that it itself calculated, - each slave (S1,... Sn) communicates an error byte in the observation window (WW) if there is inequality between its own checksum and the checksum communicated by the master. |