Subscriber station for serial bus system and method for communication in a serial bus system - Patents.com
The subscriber station design addresses synchronization issues in CAN XL by using predetermined bit sequences for robust synchronization, ensuring reliable communication across phase transitions and maintaining compatibility with CAN and CAN FD systems.
Patent Information
- Application Number
- JP2023529945
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-11-18
- Filing Date
- 2021-10-07
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2041-10-07
AI Technical Summary
The CAN XL protocol experiences synchronization issues due to shortened propagation times during transitions between communication phases, leading to phase errors and unreliable communication at high data rates.
A subscriber station design that allows for robust synchronization by sampling a predetermined field with specific bit sequences, independent of bit timing or pulse width modulation configurations, ensuring reliable communication across phase transitions.
Enables highly reliable and robust communication at exceptionally high data rates by synchronizing correctly during phase transitions, maintaining compatibility with existing CAN and CAN FD systems.
Smart Images

Figure 0007564365000001 
Figure 0007564365000002 
Figure 0007564365000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a subscriber station for and a method of communication in a serial bus system that operates at high data rates, with high versatility, and with high error robustness. [Background technology]
[0002] Bus systems for communication between sensors and control devices in vehicles, for example, should allow the transmission of large amounts of data depending on the number of technical installations or vehicle functions, where it is often required that data can be transmitted from sender to receiver faster than ever before and, if necessary, that large data packets can also be transmitted.
[0003] Currently, bus systems are being introduced in vehicles, in which data is transmitted as messages in the standard ISO11898-1:2015 as the CAN protocol specification with CAN FD. The messages are transmitted between bus subscribers of the bus system, such as sensors, control devices and transmitters. For this, the messages are transmitted to the bus in frames that are switched between two communication phases. In the first communication phase (arbitration), it is negotiated which subscriber stations of the bus system are allowed to transmit frames to the bus in the subsequent second communication phase (data phase or transmission of usage data). CAN FD is initially used in vehicles by many manufacturers with an arbitration bit rate of 500 kbit / s and a data bit rate of 2 Mbit / s. Therefore, during the transmission on the bus, it is necessary to switch between a slow and a fast operating mode.
[0004] To allow even higher data rates in the second communication phase, a successor bus system for CAN FD is currently being developed, called CAN XL, which is currently being standardized in the organization CAN in Automation (CiA). In addition to the pure data transport over the CAN bus, CAN XL should also support other functions such as functional safety, data security and quality of service (QoS), which are fundamental properties required for autonomous vehicles.
[0005] CAN XL should support high bit rates in the data phase, for example up to 15 Mbit / s or even 20 Mbit / s. To achieve this, transmit / receive devices that can switch between operating modes are used to achieve the required high bit rates in the data phase. Meanwhile, the bit rate in the arbitration phase remains at around 500 kbit / s to allow arbitration. To be able to use particularly high bit rates in the data phase, transmit / receive devices currently standardized for CAN XL can switch their operating modes. So that no further ports (pins) are needed for the signaling of the operating mode switch, a MICI module (MICI = Media Independent CAN Interface) is used between the communication control device, in particular its protocol controller, and the transmit / receive device.
[0006] In CAN XL, the communication control device, specifically its protocol controller, notifies the transmit / receive device that the transmit / receive device must switch its operating mode from low speed to high speed or from high speed to low speed. To do so, the communication control device, specifically its protocol controller, or downstream MICI module, uses pulse width modulation encoding, also known as PWM encoding. The transmit / receive device performs PWM decoding to be able to drive individual bits as differential voltages on the CAN bus.
[0007] The problem is that PWM encoding in the communication control device and the corresponding PWM decoding in the transmitting / receiving device take time. Therefore, the propagation time from the transmitting communication control device to the receiving communication control device is longer during the data phase and for the ADH bit at the end of the data phase than during the arbitration phase. During the DAS field provided at the transition from the data phase to the arbitration phase in the CAN XL frame, the subscriber station, which is now only the receiver (receiving node) of the message transmitted over the bus, must synchronize to the shortened propagation time between the transmitting subscriber station (transmitting node) and the receiving node. However, the bit provided for this in the DAS field may end early due to the shortened propagation time. As a result, the receiving node cannot reliably sample this bit under all circumstances and therefore cannot synchronize correctly.
[0008] As a result, phase errors remain at the receiving node caused by the shortened propagation time when switching from the data phase to the arbitration phase, so the CAN XL protocol does not work or reliable and robust communication is not possible.
[0009] Furthermore, it is possible for a receiving node to recognize a format error in the currently transmitted frame when it samples the AH1 bit in the DAS field as 0. This causes the frame to be discarded as invalid by the receiving node. This is a systematic error, which means that certain bit rate settings are not possible with CAN XL and other bit rate settings do not work robustly. Summary of the Invention [Problem to be solved by the invention]
[0010] It is therefore an object of the present invention to provide a subscriber station for a serial bus system and a method for communicating in a serial bus system which solves the above-mentioned problems, in particular by providing a subscriber station for a serial bus system and a method for communicating in a serial bus system which allows a high error robustness of the communication even at exceptionally high data rates for a certain bit rate and when the amount of data used per frame increases. [Means for solving the problem]
[0011] This object is achieved by a subscriber station for a serial bus system with the features of claim 1. The subscriber station comprises a communication control device for controlling communication between the subscriber station and at least one other subscriber station of the bus system and for evaluating signals received from a bus of the bus system, where the bit times in a first communication phase may differ from the bit times in a second communication phase, the communication control device is designed to sample and evaluate signals received from the bus, which are based on transmission signals generated by the other subscriber stations, according to a predefined frame, where within the predefined frame a predefined field indicating a transition from the second communication phase to the first communication phase has two or three bits with a logic value 1 between the start of the predefined field and a subsequent falling edge, the communication control device is designed to evaluate a frame sampled from the signal received from the bus as a predefined frame and thus as valid with respect to the predefined field, regardless of whether only one bit with a logic value 1 or two consecutive bits have been sampled between the start of the field and a subsequent falling edge, and the communication control device is designed to perform synchronization at the falling edge of the predefined field.
[0012] In the subscriber station, the sampling rule for the DAS field is implemented at the end of the data phase, which allows a robust synchronization of the CAN XL receiving nodes in the DAS field. Therefore, the synchronization is independent of the bit timing configuration or the configuration of the pulse width modulation (PWM) of the transmitted signal. Now, the bit rate switching after the second communication phase (data phase) works very reliably even during the transition from the second communication phase (data phase) to the first communication phase (arbitration phase).
[0013] Thus, subscriber stations are enabled with highly reliable and robust communication on CAN XL, even at extreme settings of system parameters such as clock tolerances, PWM symbol lengths, bit timing settings or other parameters of the bus system.
[0014] Moreover, advantageously, the above-described configuration of a subscriber station for solving the aforementioned problems is not complex and therefore can be implemented cheaply. It is therefore possible for subscriber stations in the bus system, in a first communication phase, to maintain the arbitration known from CAN, but still significantly increase the transmission rate compared to CAN or CAN FD.
[0015] The method implemented by the subscriber station can also be used if there is furthermore at least one CAN subscriber station and / or at least one CAN FD subscriber station in the bus system, which transmits messages according to the CAN protocol and / or the CAN FD protocol.
[0016] Advantageous further configurations of the subscriber station are set out in the dependent claims. According to one embodiment, the predetermined field has four bits having bit times of a first communication phase, the predetermined field has a bit sequence having a logical value 1101, and the communication control device is designed to, after sampling a bit having a logical value 1 in the signal received from the bus, evaluate as the third bit of the expected bit sequence 1101 the next bit sampled with a logical value 0 in the signal received from the bus between the start of the field and the subsequent falling edge and sampled at the latest with respect to the third bit of the expected bit sequence 1101.
[0017] Here, the communication control device may be designed to evaluate a frame sampled from a signal received from the bus as erroneous if the first bit of the predetermined field is not sampled as logical 1. Furthermore, the communication control device may be designed to activate a hard synchronization if the first bit of the predetermined field is sampled as logical 1.
[0018] Furthermore, the communication control device may be designed to evaluate a frame sampled from a signal received from the bus as erroneous if neither the first bit nor the second bit of the predetermined field is sampled as a logical 1. Here, the communication control device may be designed to evaluate a frame sampled from a signal received from the bus as valid and not erroneous with respect to a predetermined field if the first bit of the predetermined field is sampled as a logical 0 and the second bit of the predetermined field is sampled as a logical 1, or if the first bit of the predetermined field is sampled as a logical 1 and the second bit of the predetermined field is sampled as a logical 0. Here, the communication control device may be designed to activate a hard synchronization or synchronization if the first bit of the predetermined field is sampled as a logical 1, or if the second bit of the predetermined field is sampled as a logical 1.
[0019] According to another embodiment, the predetermined field comprises five bits having bit times of a first communication phase, where the predetermined field comprises a bit sequence possibly having a logic value 11101, and the communication control device (11;31) is designed to evaluate, after sampling a bit having a logic value 1 for a second bit of the bit sequence in the signal received from the bus, a next bit sampled with a logic value 0 in the signal received from the bus and sampled at the latest for a fourth bit of the expected bit sequence, as the fourth bit of the expected bit sequence.
[0020] Furthermore, the communication control device may be designed to ignore a sampled value of a first bit of the predetermined field and evaluate any value for a third bit of the predetermined field in a frame sampled from a signal received from the bus as not erroneous, and the communication control device is designed to evaluate a frame sampled from a signal received from the bus as erroneous if the second bit of the predetermined field is sampled as a logical 0. Furthermore, the communication control device may be designed to activate a hard synchronization if the second bit of the predetermined field is sampled as a logical 1.
[0021] Possibly, the subscriber station further comprises a transmit / receive device for transmitting a transmission signal to and / or receiving a signal from the bus of the bus system, where the communication control device may be designed to generate the transmission signal, and where the communication control device is designed to inform the transmitting / receiving device by pulse width modulation on the transmission signal that the transmitting / receiving device has to switch its operation mode to an operation mode for transmitting in a first communication phase or to an operation mode for transmitting in a second communication phase.
[0022] Furthermore, the subscriber station may further comprise a signal improving module for accelerating a transition on the bus from a dominant bus level to a recessive bus level overwritable by the dominant bus level in a first communication phase, and when the subscriber station is a sender of a transmission signal on the bus and the transmit / receive device switches from an operating mode in which the communication control device transmits a transmission signal to the bus of the bus system in a second communication phase to an operating mode in which the communication control device transmits a transmission signal to the bus of the bus system in the first communication phase, the transmit / receive device may be designed to further activate the signal improving module to accelerate a transition from one of the bus levels of the second communication phase to the recessive level of the first communication phase.
[0023] A given frame may be configured to be CAN FD compatible, whereby in a first communication phase it is negotiated which of the subscriber stations of the bus system will gain at least temporarily exclusive and collision-free access to the bus in a subsequent second communication phase.
[0024] The aforementioned subscriber station may be part of a bus system, the bus system including a bus and at least two subscriber stations connected to each other so as to be able to serially communicate with each other via the bus, where at least one of the at least two subscriber stations is the aforementioned subscriber station.
[0025] The above object is also achieved by a method for communication in a serial bus system as claimed in claim 16. The method is implemented by a subscriber station of a bus system, the subscriber station having a communication control device, the method comprising the steps of controlling communication between the subscriber station and at least one other subscriber station of the bus system by the communication control device, and evaluating signals received from a bus of the bus system, where a bit time in a first communication phase may be different from a bit time in a second communication phase, the communication control device sampling and evaluating the signals received from the bus, which are based on transmission signals generated by the other subscriber stations, according to a predefined frame, where within the predefined frame a predefined field indicating a transition from the second communication phase to the first communication phase has two or three bits having a logic value of 1 between the start of the predefined field and a subsequent falling edge, the communication control device being designed to evaluate the frame sampled from the signal received from the bus as the predefined frame, and therefore as valid with respect to the predefined field, regardless of whether only one bit having a logic value of 1 or two consecutive bits have been sampled in the signal received from the bus between the start of the field and a subsequent falling edge, and the communication control device performing synchronization at the falling edge of the predefined field.
[0026] The method provides the same advantages as those discussed above with respect to the subscriber station. Further possible implementations of the invention also include combinations not explicitly mentioned of the features or embodiments described above or below with respect to the exemplary embodiments, whereby the skilled person can also add individual aspects as improvements or complements to the respective basic form of the invention.
[0027] The invention will now be explained in more detail on the basis of exemplary embodiments with reference to the accompanying drawings, in which: [Brief description of the drawings]
[0028] [Figure 1]FIG. 1 is a simplified block diagram of a bus system according to a first exemplary embodiment; [Diagram 2] FIG. 2 is a diagram for explaining the structure of a message that can be transmitted by a subscriber station of the bus system according to a first exemplary embodiment; [Diagram 3] 1 is a simplified schematic block diagram of a subscriber station of a bus system according to a first exemplary embodiment; [Figure 4] FIG. 2 illustrates a time profile of bus signals CAN-XL_H and CAN-XL_L at a subscriber station according to a first exemplary embodiment. [Diagram 5] FIG. 2 illustrates a time profile of the differential voltage VDIFF of the bus signals CAN-XL_H and CAN-XL_L at the subscriber station according to the first exemplary embodiment. [Figure 6] FIG. 2 shows the time profile of signals occurring during the transmission of a frame to a port of a subscriber station according to a first exemplary embodiment when the subscriber station is the sender of a message, with switching of the operating mode of the transmitting / receiving device from a first communication phase to a second communication phase during the transmission of the message. [Figure 7] FIG. 2 shows the time profile of signals occurring during the transmission of a frame to a port of a subscriber station according to a first exemplary embodiment when the subscriber station is the sender of a message, with switching of the operating mode of the transmitting / receiving device from a first communication phase to a second communication phase during the transmission of the message. [Figure 8] FIG. 2 shows the time profile of signals occurring during the transmission of a frame to a port of a subscriber station according to a first exemplary embodiment when the subscriber station is the sender of a message, with switching of the operating mode of the transmitting / receiving device from a first communication phase to a second communication phase during the transmission of the message. [Figure 9]FIG. 2 shows the time profile of signals occurring during the transmission of a frame to a port of a subscriber station according to a first exemplary embodiment when the subscriber station is the sender of a message, with switching of the operating mode of the transmitting / receiving device from the second communication phase to the first communication phase during the transmission of the message. [Figure 10] FIG. 2 shows the time profile of signals occurring during the transmission of a frame to a port of a subscriber station according to a first exemplary embodiment when the subscriber station is the sender of a message, with switching of the operating mode of the transmitting / receiving device from the second communication phase to the first communication phase during the transmission of the message. [Figure 11] FIG. 2 shows the time profile of signals occurring during the transmission of a frame to a port of a subscriber station according to a first exemplary embodiment when the subscriber station is the sender of a message, with switching of the operating mode of the transmitting / receiving device from the second communication phase to the first communication phase during the transmission of the message. [Figure 12] 12 illustrates the time profile of the signal state that a receiving node sees as a received signal at its receive port when another subscriber station is the sender of a message and generates signals according to FIGS. 9-11. FIG. [Figure 13] FIG. 12 illustrates the time profile of the signal state that a receiving node would expect for a received signal at its receiving port if another subscriber station were the sender of a message and it were generating signals according to FIGS. 9-11. [Figure 14] FIG. 4 is a schematic block diagram of a subscriber station of a bus system according to a second exemplary embodiment; [Figure 15] FIG. 11 is a schematic block diagram of a subscriber station of a bus system according to a third exemplary embodiment; [Figure 16] FIG. 11 illustrates the structure of a message that can be transmitted by a subscriber station of a bus system according to a third exemplary embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] In the drawings, unless otherwise noted, identical or functionally identical elements are designated by the same reference numbers. 1 shows by way of example a bus system 1 which is in particular designed, as described below, for a CAN bus system, a CAN FD bus system, a CAN XL bus system and / or variants thereof, and which can be used in particular in vehicles, such as automobiles or aircraft, or in hospitals.
[0030] In Fig. 1, a bus system 1 has a number of subscriber stations 10, 20, 30, each of which is connected to a bus 40 with a first bus wire 41 and a second bus wire 42. The bus wires 41, 42 may be called CAN_H and CAN_L or CAN-XL_H and CAN-XL_L and are used for electrical signal transmission after coupling of dominant levels or after generation of recessive or other levels for signals in the transmit state. Via the bus 40, messages 45, 46 in the form of signals can be serially transmitted between the individual subscriber stations 10, 20, 30. If an error occurs during communication on the bus 40, an error frame 47 (error flag) may be transmitted optionally, as indicated by the jagged black block arrow in Fig. 1. The subscriber stations 10, 20, 30 are, for example, automobile controls, sensors, displays, etc.
[0031] As shown in Figure 1, subscriber station 10 has a communication control device 11, a transmit / receive device 12, and a phase error compensation module 15. Subscriber station 20 has a communication control device 21, a transmit / receive device 22, and optionally a phase error compensation module 25. Subscriber station 30 has a communication control device 31, a transmit / receive device 32, and a phase error compensation module 35. The transmit / receive devices 12, 22, 32 of subscriber stations 10, 20, 30 are each directly connected to a bus 40, which is not shown in Figure 1.
[0032] The communication control devices 11 , 21 , 31 serve to control communications over the bus 40 between a respective subscriber station 10 , 20 , 30 and at least one other of the subscriber stations 10 , 20 , 30 connected to the bus 40 .
[0033] The communication control device 11, 31 creates and reads a first message 45, for example a modified CAN message 45, which is configured according to the CAN XL format, which will be described in more detail with reference to FIG. 2, in which a respective phase error compensation module 15, 35 is used. Furthermore, the communication control device 11, 31 may be implemented to provide or receive a CAN XL message 45 or a CAN FD message 46 to or from the transmitting / receiving device 32, as required, in which case the respective phase error compensation module 15, 35 is used. The communication control device 11, 31 thus creates and reads a first message 45 or a second message 46, where the first and second messages 45, 46 differ in their data transmission standard, i.e. in this case CAN XL or CAN FD.
[0034] The communication control device 21 may be implemented like a conventional CAN controller according to ISO11898-1:2015, i.e. like a CAN FD-tolerant conventional CAN controller or like a CAN FD controller. Furthermore, there is an optional phase error compensation module 25, which has the same functionality as the phase error compensation modules 15, 35. The communication control device 21 creates and reads second messages 46, e.g. CAN FD messages 46. The CAN FD messages 46 may contain 0 to 64 data bytes, which are further transmitted at a significantly higher data rate than conventional CAN messages. In particular, the communication control device 21 is implemented like a conventional CAN FD controller.
[0035] The transmitting / receiving device 22 may be implemented as a conventional CAN transceiver according to ISO11898-1:2015 or as a CAN FD transceiver. The transmitting / receiving device 12, 32 may be implemented to provide messages 45 according to the CAN XL format to the associated communication control device 11, 31 or to provide messages 46 according to the current CAN FD format to the associated communication control device 11, 31, as appropriate, or to receive messages from the associated communication control device 11, 31.
[0036] Two subscriber stations 10, 30 are capable of creating and transmitting messages 45 in CAN XL format, as well as receiving such messages 45. 2 illustrates a CAN XL frame 450 for message 45, which is provided by the communication control device 11 for the transmit / receive device 12 for transmission onto the bus 40. In this case, the communication control device 11 creates the frame 450 as being compatible with CAN FD in this exemplary embodiment, as also illustrated in FIG 2. The same applies equally to the communication control device 31 and the transmit / receive device 32 of the subscriber station 30.
[0037] 2, a CAN XL frame 450 for CAN communication on the bus 40 is divided into different communication phases 451, 452, namely an arbitration phase 451 and a data phase 452. After a start bit (SOF), the frame 450 comprises an arbitration field 453, a control field 454 with an ADS field 1510 for switching between the communication phases 451, 452, a data field 455, a checksum field 456, as well as an end of frame field 457 with a DAS field 1520 for switching between the communication phases 452, 451. This is followed by an end of frame field EOF.
[0038] In an arbitration phase 451, by means of an identifier (ID) with, for example, bits ID28 to ID18 in an arbitration field 453, it is negotiated bit by bit between the subscriber stations 10, 20, 30 which subscriber station 10, 20, 30 wants to transmit a message 45, 46 with the highest priority and thus obtains exclusive access to the bus 40 of the bus system 1 for transmission in a subsequent data phase 452 for a subsequent time. In the arbitration phase 451, the physical layer is used as in CAN and CAN-FD. The physical layer corresponds to the bit transmission layer or layer 1 of the known OSI model (Open Systems Interconnection model).
[0039] An important point during phase 451 is that the known CSMA / CR method is used, which allows subscriber stations 10, 20, 30 to simultaneously access the bus 40 without higher priority messages 45, 46 being corrupted. This allows further bus subscriber stations 10, 20, 30 to be added to the bus system 1 relatively easily, which is a great advantage.
[0040] The CSMA / CR method results in the existence of so-called recessive states on the bus 40, which can be overwritten by dominant states of other subscriber stations 10, 20, 30 on the bus 40. The recessive states result in high-resistance behavior of the individual subscriber stations 10, 20, 30, which, in combination with parasitics in the bus circuitry, results in longer time constants. This leads to a limitation of the maximum bit rate of today's CAN-FD physical layer, currently around 2 Mbit / s in practical vehicular use.
[0041] In the data phase 452, part of the control field 454 is transmitted as well as the data or message 45 of the CAN-XL frame from the data field 455, as well as the checksum field 456. This is followed by the DAS field 1520, which is used to switch from the data phase 452 back to the data phase 451.
[0042] Only when the subscriber station 10 wins the arbitration as the sender, and therefore the subscriber station 10 has exclusive access to the bus 40 of the bus system 1 for transmission as the sender, does the sender of the message 45 begin transmitting the bits of the data phase 452 onto the bus 40.
[0043] Very generally, in comparison with CAN or CAN FD, bus systems with CAN XL have the following advantages: a) the proven properties of CAN and CAN FD that contribute to their robustness and ease of use, in particular the adoption and possibly adaptation of the frame structure with identifiers and the arbitration method CSMA / CR; b) an increase in net data transmission rates, particularly to around 10 megabits per second; c) an increase in the size of the data used per frame, in particular to about 2 kilobytes or any other value; Different characteristics can be realized.
[0044] 2, the subscriber station 10 uses in part, in particular up to and including the FDF bit, the format known from CAN / CAN-FD according to ISO11898-1:2015 in the arbitration phase 451 as the first communication phase, whereas from the FDF bit onwards, the subscriber station 10 uses the CAN XL format described below in the first communication phase and in the data phase 452 as the second communication phase.
[0045] In this exemplary embodiment, CAN XL and CAN FD are compatible. Here, the res bit known from CAN FD, hereinafter referred to as the XLF bit, is used to switch from the CAN FD format to the CAN XL format. The frame formats of CAN FD and CAN XL are therefore identical up to the res or XLF bit. Only in the res bit does the receiver know in which format the frame 450 is transmitted. CAN XL subscriber stations, i.e. here the subscriber stations 10, 30, also support CAN FD.
[0046] As an alternative to the frame 450 shown in Fig. 2, in which 11-bit identifiers ID28 to ID18 are used, optionally a CAN XL extended frame format is also possible, in which a 29-bit identifier is used. The CAN XL extended frame format is identical to the known CAN FD extended frame format from ISO11898-1:2015 up to the FDF bit.
[0047] According to Fig. 2, frame 450 is identical to the CAN FD base frame format according to ISO11898-1:2015 from the SOF bit to the FDF bit (inclusive). The known structure is therefore not further described here. Bits indicated in Fig. 2 with a thick line segment at the bottom are transmitted as dominant or "0" in frame 450. Bits indicated in Fig. 2 with a thick line segment at the top are transmitted as recessive or "1" in frame 450. In the CAN XL data phase 452, symmetrical "1" and "0" levels are used instead of recessive and dominant levels.
[0048] Generally, two different stuffing rules are used to generate the frame 450. The CAN FD dynamic bit stuffing rule is applied up to the FDF bit in the arbitration field 453, so that an inverted stuff bit is inserted after five consecutive identical bits. In the data phase 452, the fixed stuffing rule is applied up to the FCP field, so that a fixed stuff bit is inserted after a fixed number of bits. Alternatively, instead of just one stuff bit, two or more bits may be inserted as fixed stuff bits.
[0049] In frame 450, the FDF bit is immediately followed by the XLF bit, which, because of its position, corresponds to the "res bit" in the CAN FD base frame format as described above. When the XLF bit is transmitted as 1, i.e. recessive, it thereby identifies frame 450 as a CAN XL frame. In the case of a CAN FD frame, the communication control device 11 sets the XLF bit to 0, i.e. dominant.
[0050] The XLF bit is followed in frame 450 by a resXL bit, which is a dominant bit for future use. resXL must be transmitted as 0, i.e., dominant, for frame 450. However, if the subscriber station 10 receives the resXL bit as 1, i.e., recessive, the receiving subscriber station 10 will, for example, enter a protocol exception state, as is done for res=1 in the CAN FD message 46. Alternatively, the resXL bit may be defined exactly the other way around, i.e., transmitted as 1, i.e., recessive. In this case, the receiving subscriber station will enter a protocol exception state with a dominant resXL bit.
[0051] The resXL bit is followed in the frame 450 by a sequence ADS (arbitration data switch) in which a predetermined bit sequence is coded. This bit sequence allows a simple and reliable switch from the bit rate of the arbitration phase 451 (arbitration bit rate) to the bit rate of the data phase 452 (data bit rate). The first bit of the ADS field 1510 is the ADH bit. Optionally, the operating mode of the transmitting / receiving device 12, 32 is switched in the ADH bit. Despite the optional switching of the operating mode of the transmitting / receiving device and the associated level fluctuation in the ADH bit, the ADH bit is transmitted on the bus as a logical 1 at least in its last part, for example the last 50% of the bits. The ADH bit is the last bit of the arbitration phase 451. The next three bits DH1, DH2 and DL1 are already transmitted at the data bit rate. The bits DH1, DH2 and DL1 in the CAN XL are therefore short bits in time of the data phase 452. The bits DH1 and DH2 each have a logical value of 1. The last bit is bit DL1, which has a logical value of 0. The receiving node synchronizes to the falling edge of bit DL1 at the beginning after the bit rate switch. The ADS field 1510 is used to transition from the first communication phase 451 to the second communication phase 452.
[0052] The sequence ADS is followed in frame 450 by an SDT field that characterizes the contents of data field 455. The contents of the SDT field indicate the type of information contained in data field 455. For example, the SDT field indicates whether data field 455 contains an "Internet Protocol" (IP) frame, or a tunneled Ethernet frame or other frame.
[0053] The SDT field is followed by a SEC field, which indicates whether the frame 450 is protected by the CAN security protocol. The SEC field is one bit wide and, like the SDT field, serves to indicate the type of information contained in the data field 455.
[0054] The SEC field is followed by the DLC field, in which a Data Length Code (DLC) is inserted, which indicates the number of data bytes in the data field 455 of the frame 450. The number of data bytes in the data field 455 can take any value between 1 and the maximum number of bytes or data field length of the data field 455. If the maximum data field length is in particular 2048 bits, then the Data Length Code (DLC) requires 11 bits, assuming that DLC=0 means a data field length of 1 byte and DLC=2047 means a data field length of 2048 bytes. Alternatively, a data field 455 of length 0 may be allowed, as for example in the case of CAN. In this case DLC=0 encodes a data field length with, for example, 0 bytes. The maximum data field length that can be encoded is, for example, in 11 bits, (2 11 )-1=2047.
[0055] The DLC field is followed in frame 450 by an SBC bit counter field (Stuff-Bit-Count), which indicates the number of dynamic stuff bits transmitted in the arbitration field 453. A receiving node uses the information in the SBC bit counter field to check whether it has received the correct number of dynamic stuff bits.
[0056] The SBC bit counter field is followed by a preamble checksum PCRC, also called preface CRC, which is a checksum to protect the frame format of frame 450, i.e. all variable bits from the start of frame 450 with the SOF bits up to the start of the preamble checksum PCRC, including all dynamic stuff bits up to the start of the preamble checksum PCRC and optionally fixed stuff bits. The length of the preamble checksum PCRC, and therefore the length of the checksum polynomial according to the cyclic redundancy check (CRC), can be selected corresponding to a desired Hamming distance.
[0057] The preamble checksum PCRC is followed in frame 450 by a field VCID (Virtual CAN Bus ID). The VCID field has a length of 1 byte. The VCID field contains the number of the virtual CAN bus.
[0058] The field VCID is followed in frame 450 by a field AF (Acceptance Field). The AF field has a length of 32 bits. The AF field contains an address or other value for acceptance filtering.
[0059] Field AF is followed in frame 450 by Data Field 455. Data Field 455 consists of P bytes B, where P is encoded in the DLC field as previously described. P is a natural number greater than or equal to 1.
[0060] The data field 455 is followed in the frame 450 by a checksum field 456 with a frame checksum FCRC and an FCP field. The frame checksum FCRC consists of a frame checksum FCRC having, for example, 32 bits. The length of the frame checksum FCRC, and thus the CRC polynomial, can be selected corresponding to the desired Hamming distance. The frame checksum FCRC protects the entire frame 450. Alternatively, optionally, only the data field 455 is protected by the frame checksum FCRC.
[0061] The frame checksum FCRC is followed in frame 450 by the FCP field, where FCP = Frame Check Pattern. The FCP field consists of 4 bits with, among other things, the bit sequence 1100. The receiving node uses the FCP field to check whether it is bit-synchronized with the transmitted data stream. Furthermore, the receiving node synchronizes to the falling edge of the FCP field.
[0062] The FCP field is followed by an end of frame field 457. The end of frame field 457 consists of two fields: a DAS field 1520 and an acknowledgement or ACK field with at least one bit ACK and a bit ACK-Dlm.
[0063] The DAS field 1520 includes a sequence DAS (Data Arbitration Switch), in which a predetermined bit sequence is coded. The bit sequence DAH, AH1, AL1 allows a simple and safe switch from the data bit rate of the data phase 452 to the arbitration bit rate of the arbitration phase 451. Furthermore, during the DAS field 1520, the operation mode of the transmitting / receiving device 12, 32 is optionally switched from the operation mode FAST to the operation mode SLOW. The DAS field 1520 has the bits DAH, AH1, AL1, AH2 in FIG. 2. The bit AH2 serves as a space holder for the acknowledgement field (ACK). The DAS field has at least three bits. In the example of FIG. 2, the bit sequence of the sequence DAS has the arbitration bit DAH and the arbitration bit AH1, each having a logical value 1. Within the DAH bit, the operation mode of the physical layer, i.e. the transmitting / receiving device 12, 32, is switched from FAST_TX or FAST_RX to SLOW. Bit AH1 is followed by bit AL1 (logical 0) and bit AH2 (logical 1). The two bits DAH and AH1 ensure that the transmitting / receiving device 11 has enough time to switch its operating mode and that all subscriber stations 10, 30 see the recessive level significantly longer than one arbitration bit time before the starting edge of the AL2 bit (logical 0). This ensures a reliable synchronization of the subscriber stations of the bus system that are now reintegrated into communication on the bus.
[0064] In the end of frame field 457, the sequence of DAS fields 1520 is followed by an acknowledgement field (ACK). In the acknowledgement field, bits are provided for positive or negative acknowledgement of the correct reception of the frame 450. In the example of FIG. 2, an ACK bit, which may alternatively be called an ACK slot, and optionally has multiple bits, and an ACKdlm bit are provided. Optionally, there may also be a NACK bit and a NACK-dlm bit. If the receiving subscriber station 10, 30 correctly receives the frame 450, it transmits the ACK bit as dominant. The transmitting subscriber station transmits the ACK bit as recessive. The ACK bit or the ACK slot is therefore a placeholder for feedback from the receiving node. Thus, the bits originally transmitted on the bus 40 in the frame 450 can be overwritten by the receiving subscriber station 10, 30. The ACK-dlm bit is transmitted as a recessive bit used to separate it from the other fields. The NACK and NACK-dlm bits are used to allow a receiving subscriber station to acknowledge incorrect reception of frame 450 on bus 40. The function of these bits is similar to that of the ACK and ACK-dlm bits.
[0065] The end of frame field 457 is followed in the frame 450 by an end of frame (EOF) field. The end of frame (EOF) bit sequence is used to characterize the end of the frame 450. The end of frame (EOF) field ensures that eight recessive bits are transmitted at the end of the frame 450, which is a bit sequence that cannot occur within the frame 450. This ensures that the end of the frame 450 can be recognized by the subscriber stations 10, 20, 30.
[0066] The end field (EOF) has a different length depending on whether a dominant or recessive bit was seen in the ACK bit. When the transmitting subscriber station receives the ACK bit as dominant, the end field (EOF) has seven recessive bits. Otherwise, the end field (EOF) is only five recessive bits long.
[0067] After the end field (EOF), in frame 450, an interframe space (IFS-Inter Frame Space) follows, which is not shown in Fig. 2. This interframe space (IFS) is designed in the same way as in the case of CAN FD according to ISO11898-1:2015.
[0068] Figure 3 shows the basic structure of a subscriber station 10 with a communication control device 11, a transmit / receive device 12 and a phase error compensation module 15 which is part of the communication control device 11. A subscriber station 30 is constructed similarly to that shown in Figure 3, but the phase error compensation module 35 according to Figure 1 is located independently of the communication control device 31 and the transmit / receive device 32. Therefore, the subscriber station 30 will not be described separately.
[0069] According to Fig. 3, the subscriber station 10 comprises, in addition to the communication control device 11 and the transmitting / receiving device 12, a microcontroller 13 to which the communication control device 11 is assigned, and a system ASIC 16 (ASIC = Application Specific Integrated Circuit). The system ASIC 16 may alternatively be a System Base Chip (SBC) in which several functions necessary for the electronic circuit assembly of the subscriber station 10 are combined. In addition to the transmitting / receiving device 12, an energy supply device 17 is installed in the system ASIC 16, which supplies electrical energy to the transmitting / receiving device 12. Typically, the energy supply device 17 delivers a voltage CAN_Supply of 5V. However, depending on the requirements, the energy supply device 17 can deliver different voltages having different values. Additionally or alternatively, the energy supply device 17 may be designed as a power supply.
[0070] The phase error compensation module 15 comprises an insertion block 151 for inserting a predefined DAS field 1520 and optionally also an ADS field 1510 of Fig. 2 into the frame 450, and a notification block 152. Blocks 151, 152 are described in more detail below.
[0071] The transmitting / receiving device 12 further comprises a transmitting module 121 and a receiving module 122, and optionally a signal improving module 125. In the following, reference is always made to the transmitting / receiving device 12, but it is alternatively possible to provide the receiving module 122 in a separate device outside the transmitting module 121. The transmitting module 121 and the receiving module 122 may be configured similarly to a conventional transmitting / receiving device 22. The transmitting module 121 may in particular comprise at least one operational amplifier and / or at least one transistor. The receiving module 122 may in particular comprise at least one operational amplifier and / or at least one transistor.
[0072] The sending / receiving device 12 is connected to a bus 40, more precisely to a first bus wire 41 of the bus 40 for CAN_H or CAN-XL_H and to a second bus wire 42 of the bus 40 for CAN_L or CAN-XL_L. A voltage supply for an energy supply device 17 for supplying the first and second bus wires 41, 42 with electrical energy, in particular a voltage CAN-Supply, is provided via at least one port 43. A connection with ground or CAN_GND is realised via a port 44. The first and second bus wires 41, 42 are terminated with a terminating resistor 49.
[0073] The first and second bus wires 41, 42 are connected in the transmitting / receiving device 12 not only to a transmitting module 121, also called a transmitter, but also to a receiving module 122, also called a receiver, although this connection is not shown in FIG. 3 for clarity.
[0074] During operation of the bus system 1, the transmitting module 121 converts the transmitting signal TXD or TxD of the communication control device 11 into corresponding signals CAN-XL_H and CAN-XL_L on the bus wires 41, 42 and transmits these signals CAN-XL_H and CAN-XL_L to the ports for CAN_H and CAN_L on the bus 40.
[0075] The receiving module 122 generates a receiving signal RXD or RxD from the signals CAN-XL_H and CAN-XL_L received from the bus 40 according to Fig. 4 and forwards it to the communication control device 11 as shown in Fig. 3. Except for the idle or standby state (Idle or Standby), in normal operation the transmitting / receiving device 12 with the receiving module 122 always listens to the transmission of data or messages 45, 46 on the bus 40, regardless of whether the transmitting / receiving device 12 is the sender of the message 45 or not.
[0076] According to the example of FIG. 4, the signals CAN-XL_H and CAN-XL_L have dominant and recessive bus levels 401, 402 as known from CAN, at least in the arbitration phase 451. A differential signal VDIFF=CAN-XL_H-CAN-XL_L arises on the bus 40, which is illustrated in FIG. 5 for the arbitration phase 451. The individual bits of the signal VDIFF with the bit time t_bt1 can be recognized in the arbitration phase 451 at a reception threshold T_a of, for example, 0.7 V. In the data phase 452, the bits of the signals CAN-XL_H and CAN-XL_L are transmitted faster, i.e. with a shorter bit time t_bt2, than in the arbitration phase 451. This is explained in more detail on the basis of FIGS. 6 to 9. The signals CAN-XL_H and CAN-XL_L in the data phase 452 therefore differ from the conventional signals CAN_H and CAN_L at least in that their bit rate is faster.
[0077] The sequence of states 401, 402 for signals CAN-XL_H, CAN-XL_L in Figure 4, and the resulting profile of voltage VDIFF in Figure 5, are only for purposes of illustrating the functionality of the subscriber station 10. The sequence of data states for bus states 401, 402 can be selected as desired.
[0078] The optionally present signal improvement module 125 is designed to perform a SIC function (SIC=Signal Improvement Capability), which ensures that in the arbitration phase 451 the transition of the differential voltage VDIFF on the bus wires from dominant (401 in FIG. 5) to recessive (402 in FIG. 5) is accelerated. The signal improvement module 125 triggers the SIC function upon a 0 to 1 transition at the TXD input of the transmitting / receiving device 12. The SIC function (SIC=Signal Improvement Capability) is only active during a first operating mode B_451 (SLOW) with dominant and recessive signal states.
[0079] In other words, when the transmitting module 121 is switched to the first operating mode B_451 (SLOW), it generates a first data state as a bus state 402 with different bus levels for the two bus wires 41, 42 of the bus line of the bus 40 according to FIG. 4, and generates a second data state as a bus state 401 with the same bus levels for the two bus wires 41, 42 of the bus line of the bus 40.
[0080] Furthermore, the transmitting module 121 transmits bits at a higher bit rate to the bus 40 due to the time profile of the signals CAN-XL_H, CAN-XL_L in the second operating mode B_452_TX (FAST_TX) including the data phase 452. The CAN-XL_H and CAN-XL_L signals may furthermore be generated with a different physical layer in the data phase 452 than in the case of CAN FD. Thereby, the bit rate in the data phase 452 can be further increased than in the case of CAN FD. The subscriber station that is not the sender of the frame 450 in the data phase 452 sets a third operating mode B_452_RX (FAST_RX) in its transmitting / receiving device.
[0081] To signal a switch from the operating mode B_451 to the operating mode B_452_TX (FAST_TX) or to the operating mode B_452_RX (FAST_RX), the communication control device 11 performs a pulse width modulation (PWM) of the transmission signal TxD. For this purpose, the communication control device 11 uses one or more PWM symbols per logical bit of the CAN XL frame 450. Basically, a PWM symbol consists of two phases, namely a 0 phase and a 1 phase. Furthermore, a PWM symbol is separated by two equal edges (e.g. two rising edges).
[0082] 3, and in particular its insertion block 151, is used to insert a DAS field 1520 and optionally also an ADS field 1510 of FIG. 2 into a frame 450 when the subscriber station 10 acts as a transmitter of the frame 450. Furthermore, the phase error compensation module 15, and in particular its notification block 152, can perform pulse width modulation (PWM), as will be described below with respect to switching between the operating modes B_451 (SLOW), B_452_TX (FAST_TX).
[0083] FIG. 6 shows the final resulting digital transmission signal TxD in the region of the switch from the arbitration phase 451 to the data phase 452 of the frame 450, in other words the transition from phase 451 to phase 452, over the time t. In the frame 450, after the bit resXL, an ADS field 1510 is inserted. The transmission signal TxD is serially transmitted to the transmitting / receiving device 12 by the communication control device 11 as the transmitter of the frame 450, as will be described in more detail below. Up to and including the bit ADH, the bits of the frame 450 have a bit duration t_bt1. From the bit DH1, which is the first bit of the data phase 452, the bits of the frame 450 have a bit duration t_bt2. In the example of FIG. 6, the bit duration t_b2 is shorter than the bit duration t_bt1.
[0084] As already shown in FIG. 2 and also in FIG. 6, in the present exemplary embodiment the ADH bit is transmitted with a logic value of 1. Fig. 7 shows the state obtained from the transmission signal TxD occurring serially at the port TXD between the communication control device 11 and the transmitting / receiving device 12 over the time t. For this purpose, the communication control device 11, for example the phase error compensation module 15, in particular the notification block 152, performs a pulse width modulation (PWM) of the transmission signal TxD of Fig. 6 at the ADH bit and the data phase 452. More precisely, the pulse width modulation (PWM) of the transmission signal TxD of Fig. 6 starts at the ADH bit. In the arbitration phase 451 before the ADH bit, no pulse width modulation (PWM) of the transmission signal TxD is performed.
[0085] The transmitting / receiving device 12 knows by the high frequency of edges of the signal at the TXD port whether it should switch from the operating mode B_451 of the arbitration phase to one of the fast operating modes B_452_TX (FAST_TX), B_452_RX (FAST_RX) or stay there. The transmitting / receiving device 12 knows by the value of the previously transmitted resXL bit whether it should switch to the operating mode B_452_TX (FAST_TX) or to the operating mode B_452_RX (FAST_RX). Additionally or alternatively, the transmitting / receiving device 12 knows by the value of the first PWM symbol or of the S first PWM symbols, where S is a natural number greater than or equal to 1. The signal at the port TXD is delayed by a time T_V1 with respect to the TxD signal due to the performed PWM encoding. The notification block 152 generates the first S PWM symbols corresponding to the operating mode to which the transmitting / receiving device is switched. Thus, the first S PWM symbols are encoded regardless of the value of the ADH bit. Additionally or alternatively, the first S PWM symbols can be used at the transmitting node to effect a gradual transition of the differential voltage VDIFF on the bus 40 from a dominant +2V, through a differential voltage VDIFF+1V for a logical 0 in the data phase 452, to a differential voltage VDIFF-1V for a logical 1 in the data phase 452.
[0086] In the example of Fig. 7, in the PWM symbol SB_D0, the 0 phase is longer than the 1 phase, which corresponds to a bit in the data phase 452 having a logical value of 0 in the transmission signal TxD, whereas in the PWM symbol SB_D1, the 1 phase is longer than the 0 phase, which corresponds to a bit having a logical value of 1. Naturally, the PWM symbols SB_D0, SB_D1 can also be defined differently, in particular exactly the opposite to what has been described above.
[0087] Furthermore, in the example of Fig. 7, the first two PWM symbols in the signal at port TXD have a logical value of 0 (SB_D0). The transmitting / receiving device 12, 32 evaluates the first two PWM symbols to determine which operating mode it should switch to. In the present example of Fig. 7, the transmitting / receiving device 12, 32 of the transmitting node should switch to the operating mode B_452_TX (FAST_TX) by the two PWM symbols having a logical value of 0. The switch to the operating mode B_452_RX (FAST_RX) is signaled by the first two PWM symbols at the ADH bit being at least one other value.
[0088] As shown in Fig. 7, the communication control device 11, e.g. the phase error compensation module 15, in particular the signaling block 152, performs a subsequent pulse width modulation (PWM) of the ADH bit of the transmission signal TxD of Fig. 6, such that all subsequent PWM symbols of the ADH bit are transmitted with logic value 1. Thus, in the second part of the ADH bit, i.e. the part after the signaling of the type of operating mode B_452 of the transmitting / receiving device 12, 32 for the data phase 452, only the symbol SB_D1 is present.
[0089] Fig. 8 shows a time profile of the signal TxD_TC decoded by the transmitting / receiving device 12 from the state at the port TXD of Fig. 7. In the example of Fig. 8, the transmitting / receiving device 12 switches its operating mode B_451, in which the frame 450 has bits of bit duration t_bt1, to an operating mode B_452_TX (FAST_TX), in which the frame 450 has bits of bit duration t_bt2, in the bit ADH. Furthermore, as mentioned above, the bits of the frame 450 can be transmitted on the bus 40 in the operating mode B_451 with a different physical layer than in the operating mode B_452_TX.
[0090] The transmitting / receiving device 12 therefore decodes the state at the port TXD in Fig. 7 into the signal TxD_TC according to Fig. 8. With regard to the ADH bits, for the first part ADH_0 of the ADH bits a logic value 0 is obtained. For the second and last part ADH_1 of the ADH bits in Fig. 8 a logic value 1 is obtained.
[0091] Each of the PWM symbols SB_D0, SB_D1 at the port TXD can be decoded at the end of the respective PWM symbol SB_D0, SB_D1. The decoding at the transmitting / receiving device 12 therefore inserts an additional delay period T_V2 into the signal TxD_TC that is serially transmitted on the bus 40. The delay period T_V2 is equal to the duration of one of the PWM symbols SB_D0, SB_D1, as shown in FIG. 7. The phase error T_P generated by the PWM encoding and decoding at the transmitting subscriber station is T_P=T_V1+T_V2.
[0092] After the transmitting / receiving device 12 decodes the state at the port TXD in Fig. 7 into a signal TxD_TC according to Fig. 8, it transmits the signal TxD_TC as a differential voltage VDIFF to the bus 40. The differential voltage VDIFF based on the signal TxD_TC can be received by a receiving node on the bus 40. The related signals at the receiving node are not shown here.
[0093] After the data phase 452, the pulse width modulation (PWM) of the transmit signal TxD ends. The switch from the operating mode B_452_TX (FAST_TX) or the operating mode B_452_RX (FAST_RX) to the operating mode B_451 (SLOW) is signaled by turning off the PWM coding and thus by the absence of many edges.
[0094] Fig. 9 shows the final resulting digital transmission signal TxD in the region of the switch from the data phase 452 to the arbitration phase 451 of the frame 450 over the time t. In the frame 450, the DAS field 1520 is inserted after the bits FCP3, FCP2, FCP1, FCP0. Up to and including the last bit of the data phase 452, the bit FCP0, the bits of the frame 450 still have the bit duration t_bt2. From the first bit of the following arbitration phase 451, the bit DAH, the bits of the frame 450 have the bit duration t_bt1. As already explained with reference to Fig. 6, the bit duration t_b2 in the example described here is shorter than the bit duration t_bt1.
[0095] As already shown in FIG. 2 and also in FIG. 9, in this exemplary embodiment, the DAH bit followed by the AH1 bit is transmitted with a logic value of 1 in frame 450 . Fig. 10 shows the state resulting from the transmission signal TxD occurring serially at the port TXD between the communication control device 11 and the transmitting / receiving device 12 over time t. As already mentioned above, the communication control device 11, for example the phase error compensation module 15, in particular the notification block 152, performs a pulse width modulation (PWM) of the transmission signal TxD of Fig. 9 in the data phase 452. As mentioned above, the PWM encoding and the subsequent PWM decoding in the transmitting / receiving device results in delays T_V1, T_V2.
[0096] The pulse width modulation (PWM) of the transmission signal TxD in Fig. 9 ends at the FCP0 bit, i.e. before the DAH bit. In the arbitration phase 451, i.e. after the FCP0 bit, the signal TXD in Fig. 10 does not perform the pulse width modulation (PWM) of the transmission signal TxD.
[0097] At the end of the data phase 452, the transmitting / receiving device 12 knows whether to switch from the data phase 452 operating mode to the arbitration phase operating mode B_451 or to stay there since there are not many edges of the signal at the TXD port, now at a lower frequency. In the operating mode B_451, the transmitting / receiving device 12 no longer performs the PWM decoding of the signal TxD of FIG. 10. Thereby, during the DAH bit of the signal TxD_TC of FIG. 11, the delay T_P=T_V1+T_V2 involved by the PWM encoding and PWM decoding of the signal TxD in the signal TxD_TC during the data phase 452 is eliminated. Thus, the AH1 bit of the signal TxD_TC of FIG. 11 ends early by T_P=T_V1+T_V2, which results in a phase error of T_P at the receiver.
[0098] 11, the transmitting / receiving device 12 switches from an operating mode B_452_TX (FAST_TX) in the data phase 452 to an operating mode B_451 in which the frame 450 has bits of bit duration t_bt1. Additionally, the physical layer can be switched as described above.
[0099] As shown in Fig. 12, the communication control device 11 (protocol controller) at the receiving node is synchronized to the edges of the digital signal RxD received from the transmitting node during the data phase 452. As described above with reference to Figs. 9-10, when the transmitting node stops PWM encoding from the DAH bit, the propagation time from the transmitting node to the receiving node is shortened by T_P=T_V1+T_V2. This phase error suddenly introduced at the receiving side (receiving node) corresponds to a phase jump. However, the receiving node expects the end of the AH1 bit to be late by T_P=T_V1+T_V2, as shown by the digital signal RxD_E in Fig. 13.
[0100] As a result of the phase jump, with respect to the receiving node, the AH1 bit at the receiving node according to Figure 12 ends earlier by T_P = T_V1 + T_V2 than expected by the receiving node according to signal RxD_E of Figure 13. To compensate for this phase jump, phase error compensation module 15 and phase error compensation module 25, 35 of subscriber stations 10, 20, 30 act as described below.
[0101] The receiving node, or more precisely its communication control device 11, samples the received signal RxD at instants t_1 and t_2 according to the previous synchronization in the signal RxD_E of Fig. 13. Sampling instant t_1 is the sampling instant of the DAH bit. Sampling instant t_2 is the sampling instant of the AH1 bit.
[0102] The phase error compensation module 15, 25, 35 in the associated subscriber station 10, 20, 30 as a receiving node accepts, starting from the DAH bit position, one or two directly subsequent sampled bits with logic value 1. After that, the first bit sampled with logic value 0 is accepted as the AL1 bit.
[0103] In the examples of Figures 12 and 13, the receiving node samples the signal RxD of Figure 12 as the bit sequence DAH, AL1. Therefore, there is no AH1 bit. However, the phase error compensation module 15, 25, 35 of the receiving node tolerates the absence of the AH1 bit.
[0104] Very generally, the phase error compensation modules 15, 25, 35 of the receiving nodes assume that the first falling edge after the DAH bit defines the start of the AL1 bit. All receiving nodes synchronize to the starting edge of the AL1 bit, which corresponds to the time instant t_SY in FIG. 12.
[0105] Furthermore, upon sampling of the DAH bit as a logical 1, a hard sync is activated. Thus, at the next edge, a hard sync is performed, i.e., a sync that can correct phase errors of any size. As shown in FIG. 12, a hard sync is performed at time t_SY.
[0106] Furthermore, the phase error compensation module 15, 25, 35 of the receiving node is designed such that the sampling of the DAH bit as a logical 0 is evaluated as a format error. In this case, such a sampled frame is evaluated as erroneous and / or discarded as invalid. Furthermore, an error frame 47 can be transmitted onto the bus 40.
[0107] This ensures that the receiving node compensates for the phase jump caused by the propagation time reduction and the possible absence of the AH1 bit by proper synchronization after switching from the data phase 452 to the arbitration phase 451.
[0108] According to the above-mentioned variations of the DAS field, the DAS field can have more bits at its end than the four bits mentioned above, but four bits are advantageous in terms of maximizing the net data rate.
[0109] Additionally or alternatively, at least one of the subscriber stations 10, 20, 30 may be designed to ensure that a stable recessive level is set on the bus 40 up to the sampling point t_1 of the DAH bit according to FIG.
[0110] For this purpose, for example in the transmitting / receiving device 12, the aforementioned signal improvement module 125 is designed to perform a SIC function (SIC=Signal Improvement Capability) not only in the operating mode B_451 (SLOW) mode but also upon the transition of the TxD signal from 0 to 1. This first trigger condition for performing the SIC function has been described above. Additionally or alternatively, the aforementioned signal improvement module 125 can be designed to enable a second trigger condition for the execution of the SIC function to be realized.
[0111] The second trigger condition for executing the SIC function is that the transmitting / receiving devices 12, 22, 32 of the transmitting node change from the operation mode 452_TX (FAST_TX) to the operation mode B_451 of the arbitration phase 451, as shown in Fig. 9. As a result, the SIC function executed by the signal improving module 125 accelerates the transition from the bus level of the data phase 452 to the recessive level of the arbitration phase 451. The second trigger condition for executing the SIC function does not depend on the manner in which the communication control device 11 notifies the transmitting / receiving devices of the change in the operation mode.
[0112] This can advantageously ensure that the receiving node can sample the DAH bit as a logical one. Another advantage of the above-described configuration of the signal improvement module 125 is that the accelerated transition from the data phase 452 level to the recessive level of the arbitration phase 451 by the SIC function allows the use of larger CAN topologies. Advantageously, the signal improvement module 125 thereby also makes it possible not to take these level transitions into account separately when designing the topology.
[0113] If no switching of the operating mode of the transmitting / receiving device 12, 32 is performed, no pulse width modulation (PWM) is performed to encode the notification on the transmitting signal TxD of Fig. 6. Therefore, when the transmitting / receiving device 12, 32 functions as a transmitting node, the signal that drives the transmitting / receiving device 12, 32 onto the bus 40 as a differential voltage VDIFF is identical to the transmitting signal TxD of Fig. 6. Since no PWM encoding and therefore no decoding is performed, no phase error T_P is ever generated between the transmitting signal TxD_TC and the transmitting signal TxD at the transmitting / receiving device 12, 32.
[0114] 14 shows a subscriber station 10A with a phase error compensation module 15A according to a second exemplary embodiment. The subscriber station 10A has a similar structure to the subscriber station 10 according to the previous exemplary embodiment, except for the phase error compensation module 15A.
[0115] Phase error compensation module 15A is designed to tolerate a value of DAH=0 when subscriber station 10A functions as a receiving node. That is, a DAH bit according to FIG. 13 may actually be a logical 1 in signal RxD_E, but in signal RxD of FIG. 12 the DAH bit is sampled as a logical 0, and therefore phase error compensation module 15A tolerates such a DAH bit.
[0116] However, the phase error compensation module 15A is designed such that neither the sampling of the DAH bit nor the sampling of the AH1 bit as a logical 1 is evaluated as a format error. In this case, such a sampled frame is evaluated as erroneous and / or discarded as invalid. Furthermore, an error frame 47 can be transmitted onto the bus 40.
[0117] Furthermore, a hard sync or synchronization is activated upon sampling of the DAH or AH1 bits as a logical 1. Thus, again at time t_SY in FIG. 12, a synchronization occurs that can correct for phase errors of any size.
[0118] Also in this way, it is ensured that the subscriber station 10A as the receiving node compensates for the phase jump caused by the propagation time reduction and the possible absence of the AH1 bit by proper synchronization after switching from the data phase 452 to the arbitration phase 451.
[0119] An advantage of such compensation of the phase jump in the second exemplary embodiment is that more time is available for the transition on the bus 40 from the level of the data phase 452 to the recessive level of the arbitration phase 451 .
[0120] 15 shows a subscriber station 10B with a phase error compensation module 15B according to the third exemplary embodiment. The subscriber station 10B has a similar structure to the subscriber station 10 according to the first exemplary embodiment, except for the phase error compensation module 15B.
[0121] Phase error compensation module 15B is designed to ignore the DAH bit when subscriber station 10B functions as a receiving node, and phase error compensation module 15A is designed to insert a modified DAS field 1521 into frame 450, as shown in FIG.
[0122] The modified DAS field 1521 has five bits DAH, AH1, AH1B, AL1, and AH2. Thus, unlike the DAS field of FIG. 2, the DAS field 1521 has an additional bit in the frame format, namely the bit AH1B.
[0123] Furthermore, phase error compensation module 15B is designed to tolerate one or two directly subsequent sampled bits having a logical value of 1, starting from the AH1 bit position, when subscriber station 10B functions as a receiving node. Upon sampling the AH1 bit as a logical 1, phase error compensation module 15B activates hard synchronization. As shown in FIG. 12, hard synchronization is performed at time instant t_SY.
[0124] However, the phase error compensation module 15B is designed such that the sampling of the AH1 bit as a logical 0 is evaluated as a format error. In this case, such a sampled frame is evaluated as erroneous and / or discarded as invalid. Furthermore, an error frame 47 can be transmitted onto the bus 40.
[0125] The advantage of such compensation of the phase jump is that more time is available for the transition on the bus 40 from the data phase 452 level to the recessive level 402 of the arbitration phase 451. However, the DAS field 1521 generates a larger overhead of control bits due to the additional bit AH1B, so that the net data rate is reduced compared to the previous exemplary embodiment.
[0126] All the above-mentioned configurations of the subscriber stations 10, 20, 30, the bus system 1 and the methods implemented therein can be used individually or in all possible combinations. In particular, all the features of the above-mentioned exemplary embodiments and / or their variants can be combined in any way. Additionally or alternatively, in particular the following variants are conceivable:
[0127] Although the invention has been described above with the example of a CAN bus system, the invention may also be used in any communication network and / or method in which two different communication phases are used, with different bus states being generated for the different communication phases. In particular, the invention can be used in the development of other serial communication networks such as Ethernet and / or 100Base-T1 Ethernet, Fieldbus systems, etc.
[0128] In particular, the bus system 1 according to the exemplary embodiment may be a communication network in which data can be serially transmitted at two different bit rates. It is an advantageous, but not essential, prerequisite in the bus system 1 that exclusive and collision-free access of the subscriber stations 10, 20, 30 to a common channel is guaranteed at least for a certain period of time.
[0129] Of course, the ADS field 1510 can have more bits than the above bits ADH-DH2 described in the exemplary embodiment. Alternatively or additionally, the DAS field 1520 can have more bits than the above bits DAH-AH2 described in the exemplary embodiment.
[0130] The number and arrangement of the subscriber stations 10, 20, 30 in the bus system 1 of the exemplary embodiment is arbitrary. In particular, the subscriber station 20 in the bus system 1 can be omitted. It is possible that one or more of the subscriber stations 10 or 30 are present in the bus system 1. It is also conceivable that all subscriber stations in the bus system 1 are designed identically, i.e. that only subscriber stations 10 or only subscriber stations 30 are present.
Claims
1. A subscriber station (10; 30) for a serial bus system (1), comprising: a communication control device (11; 31) for controlling communication between a subscriber station (10; 20; 30) of said bus system (1) and at least one other subscriber station (10; 20; 30) and for evaluating a signal (VDIFF) received from a bus (40) of said bus system (1), wherein a bit time (t_bt1) in a first communication phase (451) can be different from a bit time (t_bt2) in a second communication phase (452), said communication control device (11; 31) is designed to sample and evaluate said signal (VDIFF) received from said bus (40) according to a predetermined frame (450; 450A) based on a transmission signal (TxD_TC) generated by another subscriber station (10; 20; 30), within said predetermined frame (450; 450A), a predetermined field (1520; 1521) indicating a transition from said second communication phase (452) to said first communication phase (451) has, between the start of said predetermined field (1520; 1521) and a subsequent falling edge, two or three bits having a logic value of 1, said communication control device (11; 31) is designed to evaluate a frame sampled from said signal (VDIFF) received from said bus (40) as a given frame (450; 450A) and therefore as valid with respect to said given field (1520; 1521), regardless of whether only one bit having a logic value 1 or two consecutive bits have been sampled in said signal (VDIFF) received from said bus (40) between the start of said field and the subsequent falling edge, said communication control device (11; 31) is designed to perform synchronization on said falling edge of said predetermined field (1520; 1521), Subscriber station (10;30).
2. said predetermined field (1520) having four bits comprising said bit time (t_bt1) of said first communication phase (451); said predetermined field (1520) having a bit sequence with a logical value of 1101; said communication control device (11; 31) is designed to, after sampling a bit having a logic value of 1 in said signal (VDIFF) received from said bus (40), evaluate as the third bit (AL1) of said expected bit sequence 1101 the next bit sampled with a logic value of 0 in said signal (VDIFF) received from said bus (40) between said start of said field and said subsequent falling edge and sampled with respect to at the latest the third bit of said expected bit sequence 1101, A subscriber station (10; 30) according to claim 1.
3. 3. The subscriber station (10; 30) of claim 2, wherein the communication control device (11; 31) is designed to evaluate a frame sampled from the signal (VDIFF) received from the bus (40) as erroneous if a first bit (DAH) of the predetermined field (1520) is not sampled as a logical one.
4. 4. The subscriber station (10; 30) of claim 3, wherein the communication control device (11; 31) is designed to activate hard synchronization if the first bit (DAH) of the predetermined field (1520) is sampled as a logical one.
5. 4. The subscriber station (10; 30) of claim 3, wherein the communication control device (11; 31) is designed to evaluate a frame sampled from the signal (VDIFF) received from the bus (40) as erroneous if neither the first bit (DAH) nor the second bit (AH1) of the predetermined field (1520) is sampled as logical 1.
6. if the first bit (DAH) of the predetermined field (1520) is sampled as a logical 0 and the second bit (AH1) of the predetermined field (1520) is sampled as a logical 1; or If the first bit (DAH) of the predetermined field (1520) is sampled as a logical one and the second bit (AH1) of the predetermined field (1520) is sampled as a logical zero, said communication control device (11; 31) is designed to evaluate a frame sampled from said signal (VDIFF) received from said bus (40) as valid and not as erroneous with respect to said predetermined field (1520); A subscriber station (10; 30) according to claim 5.
7. 7. The subscriber station (10; 30) according to claim 5 or 6, wherein the communication control device (11; 31) is designed to activate hard synchronization or synchronization if the first bit (DAH) of the predetermined field (1520) is sampled as a logical one or if the second bit (AH1) of the predetermined field (1520) is sampled as a logical one.
8. said predetermined field (1521) having five bits comprising said bit time (t_bt1) of said first communication phase (451); said predetermined field (1521) having a bit sequence with a logical value of 11101; the communication control device (11; 31) is designed to evaluate, after sampling a bit having a logic value 1 for the second bit of the bit sequence in the signal (VDIFF) received from the bus (40), the next bit sampled with a logic value 0 in the signal (VDIFF) received from the bus (40) and sampled at the latest for the fourth bit of the expected bit sequence 11101 as the fourth bit (AL1) of the expected bit sequence 11101, A subscriber station (10; 30) according to claim 5.
9. said communication control device (11; 31) is designed to ignore the sampled value of said first bit (DAH) of said predetermined field (1521) in a frame sampled from said signal (VDIFF) received from said bus (40) and to evaluate any value of said third bit (AH1) of said predetermined field (1521) as not erroneous, said communication control device (11; 31) is designed to evaluate as erroneous a frame sampled from said signal (VDIFF) received from said bus (40) if said second bit (AH1) of said predetermined field (1521) is sampled as logical 0, A subscriber station (10; 30) according to claim 8.
10. 10. The subscriber station (10; 30) of claim 8 or 9, wherein the communication control device (11; 31) is designed to activate hard synchronization if the second bit (AH1) of the predetermined field (1521) is sampled as a logical one.
11. a transmit / receive device (12; 32) for transmitting a transmit signal (TxD) to the bus (40) of the bus system (1) and / or for receiving a signal (VDIFF) from the bus (40) of the bus system (1), A subscriber station (10; 30) according to any one of claims 1 to 10.
12. said communication control device (11; 31) is designed to generate said transmission signal (TxD), the communication control device (11) is designed to inform the transmitting / receiving device (12; 32) by a pulse width modulation on the transmission signal (TxD) that the transmitting / receiving device (12; 32) must switch its operation mode to an operation mode (B_451) for transmitting in the first communication phase (451) or to an operation mode (B_452_TX; B_452_RX) for transmitting in the second communication phase (452), A subscriber station (10; 30) according to claim 11.
13. a signal improvement module (125) for accelerating a transition on the bus (40) from a dominant bus level (401) to a recessive bus level (402) that is overwritable by the dominant bus level (401) during the first communication phase (451); wherein, when the subscriber station (10; 30) is a sender of the transmission signal (TxD) onto the bus (40) and the transmit / receive device (12; 22; 32) switches from an operating mode (452_TX) in which the communication control device (11; 31) transmits the transmission signal (TxD) onto the bus (40) of the bus system (1) in the second communication phase (452) to an operating mode (B_451) in which the communication control device (11; 31) transmits the transmission signal (TxD) onto the bus (40) of the bus system (1) in the first communication phase (451), the transmit / receive device (12; 22; 32) is designed to further activate the signal improving module (125) to accelerate the transition from one of the bus levels of the second communication phase (452) to the recessive bus level of the first communication phase (451), A subscriber station (10; 30) according to claim 11 or 12.
14. The predetermined frame (450) is configured to be compatible with CAN FD; during said first communication phase (451), it is negotiated which of said subscriber stations (10, 20, 30) of said bus system (1) will gain at least temporarily exclusive and collision-free access to said bus (40) in the subsequent second communication phase (452); A subscriber station (10; 30) according to any one of the preceding claims.
15. Bus (40), at least two subscriber stations (10; 20; 30) connected to each other so as to be able to serially communicate with each other via said bus (40), at least one of the subscriber stations (10; 30) being a subscriber station (10; 30) according to any one of claims 1 to 14, Bus system (1).
16. A method for communication in a serial bus system (1), the method being implemented by a subscriber station (10; 30) of said bus system (1), said subscriber station (10; 30) having a communication control device (11; 31), controlling, by said communication control device (11; 31), communication between said subscriber station (10; 20; 30) and at least one other subscriber station (10; 20; 30) of said bus system (1); and evaluating a signal (VDIFF) received from a bus (40) of said bus system (1), in which a bit time (t_bt1) in a first communication phase (451) may be different from a bit time (t_bt2) in a second communication phase (452), said communication control device (11; 31) sampling and evaluating said signal (VDIFF) received from said bus (40) according to a predetermined frame (450; 450A) based on a transmission signal (TxD_TC) generated by another subscriber station (10; 20; 30); Within said predetermined frame (450; 450A), a predetermined field (DAS) indicating a transition from said second communication phase (452) to said first communication phase (451) has, between its start and a subsequent falling edge, two or three bits with a logic value of 1, said communication control device (11; 31) is designed to evaluate a frame sampled from said signal (VDIFF) received from said bus (40) as a given frame (450; 450A) and therefore as valid with respect to said given field (1520; 1521), regardless of whether only one bit or two consecutive bits having a logic value 1 are sampled in said signal (VDIFF) received from said bus (40) between the start of said field and the subsequent falling edge, said communication control device (11; 31) performs synchronization on said falling edge of said predetermined field (1520; 1521); method.
Citation Information
Patent Citations
Method and apparatus for serial data transmission with flexible message size and variable bit length.
JP2014518485A
Variable data rate compatible controller area network
JP2015536067A
Subscriber station for a serial bus system and method for transmitting a message in a serial bus system
WO2020089008A1
