SUBSCRIBER STATION FOR A BUS SYSTEM, AND METHOD FOR CHECKING THE CORRECTNESS OF A MESSAGE
20170235630 · 2017-08-17
Inventors
Cpc classification
International classification
G06F11/10
PHYSICS
H04L12/413
ELECTRICITY
Abstract
A user station for a bus system and a method for checking the correctness of a message, in which the user station includes a communication control unit for writing or reading at least one message for/from at least one further user station of the bus system, in which an exclusive, collision-free access by a user station to a bus line of the bus system is ensured at least intermittently, a checksum generator for generating a checksum for the message to detect bit errors in the message, and a configuration register for specifying the initialization value with which the checksum generator is to be preloaded to start the message, the initialization value being changeable as necessary even following a communication with the communication control unit.
Claims
1-9. (canceled)
10. A user station for a bus system, comprising: a communication control unit to write or read at least one message for or from at least one further user station of the bus system, in which exclusive, collision-free access by a user station to a bus line of the bus system is ensured at least intermittently; a checksum generator to generate a checksum for the message to detect bit errors in the message; and a configuration register to specify the initialization value with which the checksum generator is to be preloaded to start the message; wherein the initialization value is changeable as necessary even following a communication with the communication control unit.
11. The user station of claim 10, wherein the configuration register includes an overwritable memory.
12. The user station of claim 10, wherein the configuration register includes at least one changeable configuration bit, and at least two initialization values as permanently stored values, and wherein the at least one changeable configuration bit indicates the at least two initialization values with which the checksum generator is preloaded to start the message.
13. The user station of claim 10, further comprising: a further checksum generator to generate a checksum for the message to detect bit errors in the message; and a further configuration register to specify the initialization value with which the further checksum generator is preloaded to start the message; wherein the checksum generator is configured to generate a checksum for a message, which includes fewer than a predetermined number of data bytes, and wherein the further checksum generator is configured to generate a checksum for a message, which includes more than the predetermined number of data bytes.
14. The user station of claim 13, wherein the predetermined number of data bytes is 16.
15. The user station of claim 10, wherein the communication control unit includes the configuration register a further configuration register.
16. The user station of claim 10, wherein the at least one message is a CAN FD message.
17. A bus system, comprising: a parallel bus line; and at least two user stations, which are connected to one another via the bus line so that they can communicate with each other; wherein at least one of the at least two user stations includes a user station which includes: a communication control unit to write or read at least one message for or from another one of the at least two user stations of the bus system, in which exclusive, collision-free access by a user station to a bus line of the bus system is ensured at least intermittently; a checksum generator to generate a checksum for the message to detect bit errors in the message; and a configuration register to specify the initialization value with which the checksum generator is to be preloaded to start the message; wherein the initialization value is changeable as necessary even following a communication with the communication control unit.
18. A method for checking a correctness of a message which is to be written or read with a communication control unit of a user station for or from at least one further user station of the bus system, in which exclusive, collision-free access by a user station to a bus line of the bus system is ensured at least intermittently, the method comprising: specifying, with a configuration register, an initialization value with which a checksum generator is preloaded to start the message, wherein a checksum for the message is to be calculated with the checksum generator to detect bit errors in the message; and changing the initialization value as necessary even after a communication with the communication control unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0021]
[0022]
[0023]
[0024]
[0025] and
[0026]
DETAILED DESCRIPTION
[0027]
[0028] In
[0029] As shown in
[0030] As shown in
[0031] Communication control unit 11 is used for controlling a communication of particular user station 10, 20, 30 via bus line 40 with another user station of user stations 10, 20, 30 connected to bus line 40. Checksum generator 12 is used for calculating a checksum, for example a CRC checksum (CRC=cyclic redundancy check), via predetermined bits of messages 3, 4. Before the communication in bus system 1 begins, configuration register 13 stores an initialization value, as is described in greater detail in the following. Communication control unit 11 may be configured as a conventional CAN controller or CAN FD controller. Transceiver 14 may be configured as a conventional CAN transceiver or CAN FD transceiver.
[0032] With the aid of the two user stations 20, 30, a formation and then transmission of messages 3 may be implemented with CAN FD, or at higher data rates as CAN FD. User station 10, however, corresponds to a conventional CAN or CAN FD user station in terms of its transmission functionality and reception functionality, and transmits messages 4 according to the present CAN or CAN FD protocol.
[0033]
[0034]
[0035]
[0036] The present exemplary embodiment and its modification are particularly advantageous when possible initialization values 131 are not yet known or are only partially known. In this case, initialization values 131 may be arbitrarily established, as necessary.
[0037]
[0038] In the present exemplary embodiment, further configuration register 130 is configured in the same way as configuration register 13.
[0039] Otherwise, the bus system according to the present exemplary embodiment is configured in the same way as described with respect to the first exemplary embodiment.
[0040] The present exemplary embodiment is advantageous when possible initialization values 131, 132 are already known.
[0041] In one modification of the second exemplary embodiment, more than one configuration bit 133 may also be present. In this case, more than two initialization values 131, 132 may be permanently stored. In this case, a selection may be made between more than two initialization values 131, 132.
[0042] According to one third exemplary embodiment, configuration register 13 is configured as described with respect to the first exemplary embodiment. Second or further configuration register 130, however, is configured as described with respect to the second exemplary embodiment. Otherwise, the bus system according to the present exemplary embodiment is configured in the same way as described with respect to the first exemplary embodiment.
[0043] All of the above-described embodiments of bus system 1 and user stations 10, 20, 30, and of the method may be utilized individually or in all possible combinations. In particular, all features of the above-described exemplary embodiments and/or their modifications may be arbitrarily combined. In addition, the following modifications, in particular, are conceivable.
[0044] Above-described bus system 1 according to the exemplary embodiments is described with reference to a bus system based on the CAN protocol. Bus system 1 according to the exemplary embodiments may also be another type of communication network, however. It is advantageous, although not a necessary precondition, that exclusive, collision-free access by a user station 10, 20, 30 to one shared channel is ensured, at least for certain periods of time, in bus system 1.
[0045] Bus system 1 according to the exemplary embodiments is, in particular, a CAN network or a TTCAN network or a CAN FD network.
[0046] The number and arrangement of user stations 10, 20, 30 in bus system 1 of the exemplary examples is arbitrary. In particular, only user stations 10 or user stations 20, etc., may be present in bus system 1 of the exemplary embodiments.