This application claims priority under 35 U.S.C. §119 to application no. DE 10 2015 202 219.6, filed on Feb. 9, 2015 in Germany, the disclosure of which is incorporated herein by reference in its entirety.
The present disclosure relates to a subscriber station for a bus system and a method for time-optimized data transmission in a bus system.
The CAN bus system has become widely used for communication between sensors and control devices such as, for example, in motor vehicles. In the CAN bus system, messages are transmitted by means of the CAN protocol as is described in ISO11898. Automobile bus systems, in particular, are developing continuously to increased bandwidths, lower periods of latency and stricter real-time capability. In recent times, techniques have also been proposed for this such as, for example, CAN FD in which the maximum possible data rate is increased beyond a value of 1 MBit/s by using a higher clock rate in the area of the datasheets. Such messages will also be called CAN FD frames or CAN FD messages in the text which follows. In the case of CAN FD, the useful data length is expanded from 8 up to 84 bytes and the data transmission rates are distinctly higher than in the case of CAN. This is also specified in the current ISO-CD-11898-1 as CAN protocol specification with CAN FD.
Apart from primarily functional additions such as, e.g. TTCAN, the extension of the CAN protocol or CAN standard has been extended in recent times with CAN FD, particularly with regard to the possible (higher) data rate and the usable data packet size, retaining the original CAN characteristics, in particular in the form of the arbitration. In the arbitration, it is determined which of the subscriber stations of the bus system, as a transmitter, has at least temporarily an exclusive, collision-free access to a bus line of the bus system.
On a CAN bus, each message begins with a dominant SOF bit (SOF=Start of Frame). This is followed by an arbitration field with 11 bits followed by control bits and an optional extended arbitration field with 29 bits.
In the arbitration field of the CAN, the logical states of individual bits are mapped dominantly and recessively by the electrical states. According to the present state of the art, the bits on the CAN bus are coded in this manner for the entire frame or the entire message. This method needs 12 bit times for a standard identifier and 32 bit times for an extended identifier.
According to the Classic CAN specification and also according to the new specification according to ISO-CD-11898-1, which also includes CAN FD messages, the CAN bit arbitration ends at the bit which comes after the last identifier bit, excluding stuff bits. Up to this bit, a transmitter of a classic CAN or CAN FD message, which transmits a recessive bit but, instead, sees a dominant bit on the CAN bus, considers the arbitration as lost and becomes the receiver of a CAN message.
In the increase of the CAN transmission rate, the arbitration field limits the netto data rate. This is because the prioritizing and non-destructive arbitration method on the CAN bus requires that each bit is propagated to each subscriber station or bus node and back.
With a given physical extent of the bus system or network, the Baud rate can thus not be increased arbitrarily during the arbitration.
To increase the CAN transmission rate further, it would be possible to dispense with the arbitration. However, the arbitration characteristics, being prioritized and non-destructive, are features of the CAN protocol which make it unique and are greatly appreciated by the users.
It is the object of the present disclosure, therefore, to provide a subscriber station for a bus system and a method for time-optimized data transmission in a bus system which solve the aforementioned problems. In particular, a subscriber station for a bus system and a method for time-optimized data transmission in a bus system are to be provided in which the CAN transmission rate is increased further compared with previous methods.
The object is achieved by a subscriber station for a bus system having the features of according to the disclosure. The subscriber station comprises a coding device for coding and/or decoding bits of a message to/from at least one further subscriber station of the bus system, in which at least temporarily an exclusive, collision-free access of a subscriber station to a bus line of the bus system is ensured, wherein the coding device is designed to allocate, during the coding of the message, to at least two bits as bit combination, a predetermined voltage level for a bit time and/or wherein the coding device is designed to allocate, during the decoding of the message, at least two bits as bit combination to a predetermined voltage level for a bit time.
By means of the subscriber station, the arbitration method is retained but the period of time required for it is reduced. Thus, the characteristics of the arbitration, namely prioritizing and non-destructive, are retained as features of the CAN protocol which make it unique, so that the requirements of the users can be taken into account.
The subscriber station enables a number of bits of the arbitration field to be coded in a single bit time. In this context, a bit time is the time which is needed for transferring a bit on the bus line of the bus system. This coding is achieved by allocating different voltage levels to bit combinations or, in other words, graduating the bus state dominantly.
Thus, the CAN transmission rate can be increased with the subscriber station even for classic CAN messages compared with the prior art.
Advantageous further embodiments of the subscriber station are specified in the disclosure.
The number of predetermined voltage levels is possibly 2N, N being the number of bits coded together in a bit combination.
The coding device is preferably designed to code the bit combination in such a manner that a greater voltage level is allocated to a bit to be transmitted earlier in time in the message than to a bit to be transmitted later in time in the message. As a result, information is also coded in the previous temporal sequence.
In a special embodiment, the coding device can be designed to code two bits as a predetermined voltage level for a bit time, wherein a voltage level of 0/3 of a dominant voltage level UD is allocated to a bit combination having a bit code 00, wherein a voltage level of 1/3 of the dominant voltage level UD is allocated to a bit combination having a bit code 01, wherein a voltage level of 2/3 of the dominant voltage level UD is allocated to a bit combination having a bit code 10, and wherein a voltage level of 3/3 of the dominant voltage level UD is allocated to a bit combination having a bit code 11.
It is also conceivable that the message has an arbitration field in the message head and the coding device is designed only for coding the arbitration field in such a manner that to at least two bits as bit combination a predetermined voltage level is allocated for a bit time. In this case, the coding device can also be designed for coding bits after the arbitration field in such a manner that to at least two bits as bit combination a predetermined voltage level is allocated for a bit time.
In one embodiment, it is possible that the subscriber station also has a communication control device for generating or reading a message to/from at least one further subscriber station of the bus system, wherein the communication control device has the coding device.
In one embodiment, it is also possible that the subscriber station also a transceiver device for transmitting or receiving the message on the bus line, wherein the transceiver device has the coding device.
The subscriber station previously described can be part of a bus system which also comprises a parallel bus line and at least two subscriber stations which are connected to one another via the bus line in such a manner that they can communicate with one another. In this context, at least one of the at least two subscriber stations is a subscriber station previously described.
The aforementioned object is also achieved by a method for time-optimized data transmission in a bus system according to the disclosure. In the bus system, a coding device is designed for coding and/or decoding bits of a message to/from at least one further subscriber station of the bus system, in which at least temporarily an exclusive, collision-free access of a subscriber station to a bus line of the bus system is ensured. The method has the step or steps for coding the message with the coding device in such a manner that to at least two bits as bit combination, a predetermined voltage level is allocated for a bit time or decoding the message with the coding device in such a manner that at least two bits are allocated as bit combination to a predetermined voltage level for a bit time.
The method offers the same advantages as has been mentioned previously with respect to the subscriber station.
Further possible implementations of the disclosure also comprise combinations not mentioned explicitly of features or embodiments described previously or in the text which follows with respect to the exemplary embodiments. In this context, the expert will also add individual aspects as improvements or supplements to the respective basic form of the disclosure.
Exemplary embodiments of the disclosure are presented in the drawings an are explained in more detail in the description below.
In the drawings:
In the figures, identical or functionally identical elements are provided with the same reference symbol unless otherwise specified.
In
As shown in
The communication control devices 11, 21, 31 are in each case used for controlling a communication of the respective subscriber station 10, 20, 30 via the bus line 3 with another subscriber station of the subscriber stations 10, 20, 30 connected to the bus line 3.
The communication control devices 11, 21, 31 can be constructed like a conventional CAN controller, the communication control device 21, in distinction thereto, additionally also comprising the coding device 22. The communication control devices 11, 21, 31 generate and read first messages N1, N1, N3 which, for example, are classical CAN messages N1, N2, N3. The classical CAN messages N1, N2, N3 are configured, as an example, according to the basic classical CAN format in which in each of the messages N1, N2, N3, a number of up 8 data bytes can be comprised as shown in
The transceiver devices 13, 23, 33 can be constructed like a conventional CAN transceiver, the transceiver device 33, in contrast, additionally also comprising the coding device 32. The transceiver devices 13, 23, 33 are constructed to provide messages N1, N2, N3 according to the current basic CAN format for the associated communication control device 11, 21, 31 or to receive these from the latter.
In the message N1 shown in
In the classical CAN message N1 of
In
As shown in
The second dominant bus states 47_H_2, 47_L_2 form a voltage difference UDiff which corresponds to 2/3 of the dominant voltage level UD. The third dominant bus states 47_H_3, 47_L_3 form a voltage difference DDiff which corresponds to 3/3 of the dominant voltage level UD. The recessive bus state 48 forms a voltage difference UDiff which corresponds to 0/3 of the dominant voltage level UD. The recessive bus state 48 is thus equal to the center voltage on the bus line 3 as mentioned before in other words.
In the special case, shown in
The coding devices 12, 22, 32 are in each case able to code a number of bits of the arbitration field 42 in a single or common bit time TB. For this purpose, the respective coding device 12, 22, 32 allocates one of the aforementioned different voltage levels to bit combinations as specified in Table 1 below:
In the example of
In other words, the coding devices 12, 22, 32 are designed to graduate the bus state dominantly or to graduate the dominant bus state 47. The coding devices 12, 22, 32 are also designed to code the messages N1 with a multi-level technique.
In
As can be seen from
In this manner, the arbitration phase can be reduced. The coding devices 12, 22, 32 thus carry out a method for time-optimized data transmission in the bus system 1 with the features as described before. In the case of the 2-bit coding previously described, the arbitration phase is reduced to 50% as is shown very illustratively in
The method also operates with codings of more than two bits in a bit time TB. The number of required voltage levels is 2N, N being the number of bits to be coded together. N is an integral number.
If more than two bits are coded together, the arbitration phase is reduced even more in time. To 1/3 in the case of 3 bits, to 1/4 of the time in the case of four bits according to the prior art etc.
However, the higher the number of bits to be coded together, the higher the requirements for the signal/noise ratio (SNR) of the messages N1, N2, N3. Thus, depending on the case the number of bits to be coded together must be selected suitably. If the circumstances are such that the signal/noise ratio (SNR) to be expected is not adequate, the coding devices 12, 22, 32 could also perform coding according to the prior art, if necessary.
To be able to read the messages N1, N2, N3 again, which are coded by means of the multi-level technique in the manner described before, the coding devices 12, 22, 32 can be designed to correspondingly decode the received messages N1, N2, N3 coded by means of the multi-level technique. For this purpose, the coding devices 12, 22, 32 can allocate at least two bits as bit combination to a predetermined voltage level for a bit time (TB) during decoding the messages N1, N2, N3.
In a modification of the present exemplary embodiment, the coding method previously described which is a method for time-optimized data transmission in the bus system 1 goes beyond the arbitration field 42 or identifier field. By this means, the transmission rate can be increased over the entire CAN message N1, N2, N3. This is particularly helpful if no other efficient codings or modulations are available for the message fields in which the bit-wise calibration of states of the individual subscriber stations 10, 20, 30 is not required.
In a further modification of the first exemplary embodiment, the bus system 1 can also have at least one subscriber station which can not only generate and transmit or receive and read classical CAN messages N1, N2, N3 but which can also generate and send as well as receive and read CAN FD messages. In such subscriber stations, the communication control device and the transceiver device are correspondingly configured.
In a further modification of the first exemplary embodiment, the bus system 1 also has at least two subscriber stations which can generate and transmit or receive and read only CAN FD messages. It is also possible that all subscriber stations generate and transmit or receive and read only CAN FD messages. In the case of such subscriber stations, the communication control device and the transceiver device are correspondingly constructed.
The subscriber station 100 sends out first messages N4 which, for example, is a classical CAN message in the extended format as shown in
According to
Messages N5 and N6, too, have an extended identifier similar to message N4. The precise formats of messages N5 and N6 are also known from ISO-CD-11898-1 and are not described in greater detail here, therefore.
In this exemplary embodiment, too, message N4 or only its arbitration field 52 can be coded as described with reference to the preceding exemplary embodiment and its modifications. The same applies to messages N5, N6 or only their arbitration fields.
All embodiments of the bus system 1, 2, described before, of the subscriber stations 10, 20, 30, 100, 200, 300 and the method can be used individually or in all possible combinations. In particular, all the features of the exemplary embodiments described before and/or their modifications can be combined arbitrarily. In addition, the following modifications are conceivable, in particular.
The bus system 1, 2 according to the exemplary embodiments, described before, is described by means of a bus system based on the CAN protocol. However, the bus system 1, 2 according to the exemplary embodiments can also be a different type of communication network. It is advantageous but not a mandatory prerequisite that in the bus system 1 an exclusive, collision-free access of a subscriber station 10, 20, 30, 100, 200, 300 to a common channel is ensured at least for particular periods of time.
The number and arrangement of the subscriber stations 10, 20, 30 in the bus system 1 of the first exemplary embodiment is arbitrary. In addition, the number and arrangement of the subscriber stations 100, 200, 300 in the bus system 2 of the first exemplary embodiment is arbitrary. In particular, the subscriber station 20 or 30 can also be omitted in the bus system 1. In particular, the subscriber stations 200 or 300 in the bus system 2 can also be omitted. It is also possible that one or more of the subscriber stations 20 or 30 are present in the bus system 1. It is also possible for one or more of the subscriber stations 200 or 300 are present in the bus system 2. Subscriber stations 10, 20, 30, 100, 200, 300 or any combinations thereof can also be present in the bus system 1.
Number | Date | Country | Kind |
---|---|---|---|
10 2015 202 219.6 | Feb 2015 | DE | national |