The present invention relates to a user station for a serial bus system and to a method for transmitting data in a serial bus system.
In serial bus systems, data that are to be transmitted between user stations are encoded in temporally successive bits and are sent in messages according to a predetermined communication protocol in succession to the bus and thereby transmitted via the bus. The communication protocol establishes at which point in the message which data or bits are encoded. At least one line is used as a transmission medium in hardwired bus systems for transmitting data between the user stations.
For example, certain serial communication protocols including bit arbitration, such as Classical CAN and CAN FD, use a recessive and a dominant bus level as two different bit levels. In this case, the bus levels are selected while taking the transmission medium into account in such a way that the dominant level is able to overwrite the recessive level. Thus, for example, a transmitter which transmits a recessive bit (‘1’) during the arbitration and instead sees a dominant bit (‘0’) on the bus, abandons transmitting and operates only as a receiver for the rest of the ongoing message. The arbitration is won by the transmitter, whose message contains the most leading ‘0’ bits. The winner of the arbitration notices no access conflict for the bus. Thus, a collision and thereby the destruction of transmitted messages does not occur, which is why the arbitration and the following communication occur in a non-destructive manner.
Moreover, the overwriteability of a recessive level with a dominant level allows a bus user, who establishes an error in a message, for example, violation of the bit stuffing rule or checksum error, to overwrite this message with an error detection (error flag).
The transmission medium normally used is, for example, according to the ISO 1898-2 standard, a drilled two-wire line, both line wires of which are interconnected by terminating resistors. Thus, according to the ISO 11898-2 standard, the dominant bus level is actively driven so that a current flows through the terminating resistors. In contrast, the recessive bus level is not driven so that no current flows through the terminal resistors. The differential voltage VDiff between the line wires is therefore close to 0V in the non-driven recessive state.
The problem is that the bits on such a bus having bus levels driven to various degrees are asymmetrically deformed. The edge shift of the bits taking place as a result makes the recessive bits appear shorter than the adjacent dominant bits. At higher bit rates, recessive bits are reduced to such an extent that it is no longer possible to reliably recognize the recessive bits. This asymmetry limits the bit rate for the serial transmission.
A further problem is that the edges, in particular, tend to overshoot from dominant to recessive due to signal reflections. This further restricts the usable portion of the bit time, in particular for sampling, and thus the maximum usable bit rate.
It is an object of the present invention to provide a user station for a serial bus system and a method for transmitting data in a serial bus system, which solves the aforementioned problems. A user station for a serial bus system and a method for transmitting data in a serial bus system are, in particular, to be provided, in which both an increase in the bit rate for the transmission of messages as well as a reliable error detection are possible.
The object may be achieved by a user station for a serial bus system including the features of an example embodiment of the present invention. In accordance with an example embodiment of the present invention, the user station includes a transceiver unit for serially transmitting a message on a bus line to at least one further user station of the bus system or for serially receiving a message from the bus line, the transceiver unit being designed, in the event in which the transceiver unit does not operate as the transmitter of the received message, to generate, if needed, a first or a second bus level on the bus line, and the transceiver unit being designed, in the event the transceiver unit operates as a transmitter of the received message, to generate instead of the first or second bus level, a third bus level, which is lower than the bus level replaced by the third bus level, but again is one of two bus levels distinguishable in the bus system on the bus line.
The user station makes it possible that bits be more symmetrically driven on the bus line and that an overshooting, in particular, after signal edges from dominant to recessive, be reduced. This enables higher bit rates and reduces the emission.
The method carried out by the user station may be subsequently inserted into a serial communication protocol, in particular, into the CAN protocol specification with the CAN FD according to the aforementioned standard. For example, the insertion is also possible as an option, which is selectively installed.
Advantageous further embodiments of the user station are described herein.
It is possible that the transceiver unit is designed to generate as a bus level a dominant bus level or a recessive bus level depending on the logic state of the message to be transmitted, the transceiver unit also being designed to transmit the dominant bus level on the bus line by actively driving a differential voltage state, and for the recessive bus level not to drive the differential voltage state on the bus line or to drive it weaker than the dominant bus level.
According to one exemplary embodiment of the present invention, the transceiver unit is designed, in the event that the transceiver unit operates as the transmitter of the received message, to generate the differential voltage state on the bus line for the recessive bus level as a negative voltage state.
In one specific embodiment of the present invention, the transceiver unit may be designed to distinguish a data phase in the message, in which useful data of the message are transmitted, from an arbitration phase, in which it is negotiated which of the user stations operates as the transmitter in the next data phase. In this case, it is possible that the transceiver unit is designed to switch to an operating mode at the start of the data phase, in which the third bus level is generated for a message to be transmitted.
Alternatively, it is possible that the transceiver unit is designed to replace in the data phase of a message to be transmitted both a first recessive bus level with a second recessive bus level as well as a first dominant bus level with a second dominant bus level.
The transceiver unit is optionally designed to reduce at the start of the data phase a first bit time, with which bits are generated in the arbitration phase to a second bit time, with which bits are generated in the data phase.
The user station is potentially designed for a bus system, in which an exclusive, collision-free access of a user station to a bus line of the bus system is at least temporarily ensured. In this case, the transceiver unit may be designed to generate the third bus level only if the transceiver unit has the exclusive collision-free access to the bus line.
The message created or received by the user station may be a CAN message or a CAN FD message.
The above-described user station may be part of a bus system, which also includes a bus line and at least two user stations, which are interconnected via the bus line in such a way that they are able to communicate with one another. In this case, at least one of the at least two user stations is a previously described user station.
The aforementioned object may also achieved by a method for transmitting data in a serial bus system in accordance with an example embodiment of the present invention. In accordance with an example embodiment of the present invention, the method is carried out using a transceiver unit of a user station of the bus system, which is designed for serially transmitting a message on a bus line to at least one further user station of the bus system and for serially receiving a message from the bus line, the method including the step: serially transmitting using the transceiver unit on the bus line in such a way that the transceiver unit, in the event in which the transceiver unit does not operate as the transmitter of a received message, generates, if needed, a first or a second bus level on the bus line, and that the transceiver unit, in the event in which the transceiver unit operates as the transmitter of the received message, generates instead of the first or second bus level, a third bus level, which is lower than the bus level replaced by the third bus level, but is again one of two bus levels distinguishable in the bus system on the bus line.
The above-described method yields the same advantages as were described above with respect to the user station.
Further possible implementations of the present invention also include combinations, not explicitly cited, of features or specific embodiments described above or in the following with reference to exemplary embodiments. In this case, those skilled in the art will also add individual aspects as improvements on or additions to the respective basic form of the present invention.
The present invention is described in greater detail below with reference to the figures and based on exemplary embodiments.
In the figures, identical or functionally identical elements are, unless otherwise indicated, provided with the same reference numerals.
Bus system 1 in
The present invention is described by way of example below based on the CAN bus system and CAN FD bus system. However, the present invention is not limited thereto; rather the present invention may be applied to an arbitrary serial bus system.
As shown in
Communication control units 11, 21, 31 are each used to control a communication of respective user station 10, 20, 30 via bus line 3 with another user station of user stations 10, 20, 30, which are connected to bus line 3.
Communication control unit 11 for the example of the CAN bus system may, with the exception of the differences described in greater detail below, be designed as a conventional CAN controller. In this case, communication control unit 11 creates and reads first messages 4, for example modified Classic CAN messages 4. Classic CAN messages 4 are, with the exception of the following described modifications, structured according to the classic basic format, in which a number of up to 8 data bytes may be included in message 4, as shown in the upper portion of
Communication control unit 21 in
Communication control unit 31 may be designed for the example of the CAN bus system in order, depending on the need, to provide a modified Classic CAN message 4 or a modified CAN FD message 5 for, or to receive them from, transceiver unit 32. Communication control unit 21 thus creates and reads a first message 4 or second message 5, first and second message 4, 5 differing in terms of their data transmission standard, namely, in this case modified CAN or modified CAN FD.
Thus, transceiver unit 12 may, with the exception of the differences described in greater detail below, be designed as a conventional CAN transceiver. Transceiver unit 22 may, with the exception of the differences described in greater detail below, be designed as a conventional CAN FD transceiver. Transceiver unit 32 may be designed, depending on the need, to provide for, or to receive from, communication control unit 31 messages 4 according to the modified CAN basic format or messages 5 according to the modified CAN FD format.
A formation and then transmission of messages 5 with the modified CAN FD or also at higher data rates than CAN FD is implementable using the two user stations 20, 30.
In arbitration phase 451, it is negotiated between two or more transmitters that have simultaneously started messages 4, 5, which of the transmitters subsequently has at least temporarily an exclusive, collision-free access to bus line 3. The transmitter that transmits a recessive bit (logic state ‘1’) during the arbitration and sees instead a dominant bit (logic state ‘0’) on the bus or bus line 3, loses the arbitration and becomes the receiver of ongoing message 4 or of message 5. The arbitration is won by the transmitter whose messages 4, 5 contain the most leading ‘0’ bits. The winner of the arbitration notes no access conflict for bus line 3. Thus, no collision results and therefore no destruction of transmitted messages 4, 5, which is why the arbitration and the following communication take place in a non-destructive manner.
As shown in
In a serial bus system without arbitration 451, 453 such as, for example, Ethernet, FlexRay, etc., two data phases 452 directly follow one another.
If one of user stations 10, 20, 30 of
An error free message 4, 5 is confirmed by the receivers via an acknowledge bit. For this purpose, the receivers drive a dominant bit in an acknowledge slot recessively transmitted by the transmitter. Except for the acknowledge slot, the transmitter of a message 4, 5 expects to always see on the bus or on bus line 3 the level that the transmitter itself transmits. Otherwise, it recognizes a bit error. In the event of a bit error (apart from the loss of the arbitration) the transmitter considers transmitted messages 4, 5 to be invalid.
Invalid and therefore unsuccessful messages 4, 5 are repeated by the transmitter.
Transceiver units 12, 22, 32 as receivers convert the previously described differential bus levels into logic bit levels, i.e., 0 and 1. As transmitters, transceiver units 12, 22, 32, convert the logic bit levels into the differential bus levels shown in
Message 5 is generated in arbitration phase 451 with previously described differential bus levels 471, 481 via the two-wire bus line as bus line 3. In other words, differential voltage VDIFF forms differential voltage states for signals CAN H and CAN L, which are generated separately by transceiver units 12, 22, 32 on the two wires of bus line 3.
Recessive bus level 471, which is designated as logic ‘1’ in
In other words, in the previously described first operating mode of one of transceiver units 12, 22, 32, logic ‘0’ is driven as dominant bus level 481. In the first operating mode for logic ‘1’, i.e., for recessive bus state 471, however, the bus or the voltage state is not driven on bus line 3. The terminal resistors cause recessive bus level 471 to adjust.
As shown in
For this purpose, the level for the recessive bus level is switched at the start of data phase 452 of message 5 at the BRS bit, which follows an FDF bit and a Res bit at the end of arbitration phase 451. The bit rate is also switched at the BRS bit. The method described is, however, not bound to one particular message format for the serial transmission.
In data phase 452, the weaker driven negative differential voltage VDIFF corresponding to bus level 472 is then used instead of previous recessive bus level 471. However, bus levels 472, 481 are also distinguishable from one another as two different bus levels or voltage values for logic ‘1’ and logic ‘0’.
Thus, when transmitting message 5 in the previously described second operating mode of one of transceiver units 12, 22, 32, transmitting user station 10, 20, 30 also drives recessive bus level 472, even if weaker than dominant bus level 482. This negative differential voltage VDIFF, a third specific voltage value, is also recognized by existing transceiver units such as, for example, transceiver unit 12 of user station 10 as a recessive bus level, logic ‘1’.
Only the transmitter of a message 5 switches its transceiver unit 12, 22, 32 in data phase 452 from previous bus level 471 for logic ‘1’, i.e., the recessive bus level in arbitration phase 451, to new bus level 472 for logic ‘1’ or from the first operating mode into the second operating mode. In contrast, the receivers of message 5 do need not to switch their bus levels 471.
By way of example of the CAN FD protocol, the suitable point in time for switching recessive bus level 471, 472 of the transmitter would be the start and the end of data phase 452. In arbitration phase 451 of message 5 on the other hand, the normally recessive and dominant bus levels 471, 481 are used as illustrated in
If a receiver of message 5 recognizes an error, non-switched transceiver unit 12, 22, 32, of this receiver may then overwrite weakly driven logic ‘1’ level, i.e., bus level 472 of the transmitter, with a dominant error detection (error flag). Thus, the handling of errors by, for example, the CAN protocol remains possible.
The numerical value for new or second recessive bus level 472 is established as a function of the specified limits for the length of bus line 3, of the number of user stations 10, 20, 30 of bus system 1 and of the bit rate(s) desired for the respective application, in each case with respect to the numerical values for bus level 471, 481 in arbitration phase 451. In CAN, recessive bus levels 471, 472 may, according to the ISO 11898-2, be selected as VDIFF in the range of −1.0V to 0.5V, dominant bus levels 481, 482 as VDIFF in the range of 0.9V to 5V.
Thus, at least one of transceiver units 12, 22, 32 may for a case, in which transceiver unit 12, 22, 32 does not operate as transmitter of received message 5, generate, if needed, first or second bus level 471, 481 on bus line 3. In the event, in which transceiver unit 12, 22, 32 operates, however, as the transmitter of received message 5, transceiver unit 12, 22, 32 generates instead of bus level 471 a third bus level, namely the more minor bus level 472. In the process, third bus level 472 is in turn designed in such a way that bus level 472 and bus level 482 are again two bus levels distinguishable in bus system 1.
Thus, a method is carried out by at least one of user stations 10, 20, 30, more precisely, by one of transceiver units 12, 22, 32, in which transceiver unit 12, 22, 32 is switched during a message 5, so that they use other bus levels 472, 481 in data phase 452, which are less asymmetrical than bus levels 471, 481 in arbitration phase 451.
In this way, faster or higher bit rates in bus system 1 with compatibility to previous user stations 10, 20 are possible. This is also advantageous with a view to a successive expansion and/or renewal of an already existing bus system 1.
In contrast to
For this purpose, the transmitter of a message 50 in data phase 452 optionally drives the transmission level for dominant bits (with a positive differential voltage VDIFF), i.e., a second dominant bus level 482, less intensively than in arbitration phase 451 for first dominant bus level 481. However, second dominant bus level 482 continues to be driven intensively enough that transceiver units 12, 22, 32 of the receiver of message 50 recognize bus level 482 reliably as dominant logic ‘0’. Reduced bus level 482 for logic ‘0’ also reduces the emissions.
Otherwise, the same applies as previously described in conjunction with
According to a third exemplary embodiment, only dominant bus level 481 in data phase 452 as compared to arbitration phase 451 is lowered by the transmitters of a message 50 to dominant bus level 482, but not recessive bus level 471. Thus, bus levels 471, 481 in this case are used in arbitration phase 451, but bus levels 471, 482 are used in data phase 452.
Otherwise, the same applies as previously described in conjunction with
All previously described embodiments of bus system 1, of user stations 10, 20, 30 and of the method carried out by user stations 10, 20, 30 may be used individually or in all possible combinations. All features of the previously described exemplary embodiments and/or of their embodiment variants and/or of their modifications may, in particular, be arbitrarily combined. In addition or alternatively, the following modifications, in particular, are possible.
Previously 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, however, also be a different type of serial communication network. It is advantageous, though not necessarily a prerequisite, that in bus system 1 an exclusive, collision-free access of a user station 10, 20, 30 on a shared channel is ensured, at least for particular time periods.
The number and arrangement of user stations 10, 20, 30 in bus system 1 of the exemplary embodiments is arbitrary. User station 10 may, in particular, be omitted in bus system 1. It is possible that one or multiple user stations 10 or 20 or 30 are present in bus system 1.
Number | Date | Country | Kind |
---|---|---|---|
10 2018 214 967.4 | Sep 2018 | DE | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2019/071597 | 8/12/2019 | WO | 00 |