METHOD FOR PERFORMING A DATA TRANSMISSION
20240054095 ยท 2024-02-15
Inventors
Cpc classification
G06F13/28
PHYSICS
International classification
Abstract
A method for performing a data transmission between a control device and an electronics unit. A microcontroller and an Ethernet transceiver are provided in the control unit, and a microcontroller and an Ethernet transceiver are also provided in the electronics unit. For data transmission, the two Ethernet transceivers are first synchronized, taking into account a common clock cycle, and, for data transmission, an Ethernet connection is used as a physical route, and the data transmission is carried out with a serial protocol.
Claims
1. A method for performing a data transmission between a control device and an electronics unit, the method comprising the following steps: providing a microcontroller and an Ethernet transceiver in the control device, and also providing a microcontroller and an Ethernet transceiver in the electronics unit; for data transmission, synchronizing the Ethernet transceiver in the control device and the Ethernet transceiver in the electronics unit, taking into account a common clock cycle; and for data transmission, after the synchronizing, using an Ethernet connection as a physical route and performing the data transmission with a serial protocol.
2. The method according to claim 1, wherein the data transmission is used for programming the control device.
3. The method according to claim 2, wherein a switching between a communications unit and an interface module is effected by software or a switch.
4. The method according to claim 1, wherein, for data transmission, pins TXEN and TXD0 are combined, and identical data content is transmitted so that, during the data transmission, useful information is executed only on pin TXD1, wherein, during the data transmission, a pin TXEN (TX enable) is set to 1.
5. The method according to claim 1, wherein pins TXEN and TXD0 are set to 0 at an end of the data transmission.
6. The method according to claim 1, wherein the data transmission is carried out using a DMA-based data access.
7. The method according to claim 1, wherein, in the data transmission, a data sequence is transmitted which is divided into three successive sections including a preamble, a SFD (start frame detection), and a data section.
8. A control device configured to perform a data transmission with an electronics unit, the control device comprising: a microcontroller; and an Ethernet transceiver; wherein the control device is configured to: for data transmission, synchronize the Ethernet transceiver in the control device and the Ethernet transceiver in the electronics unit, taking into account a common clock cycle; and for data transmission, after the synchronizing, use an Ethernet connection as a physical route and perform the data transmission with a serial protocol.
9. The control device according to claim 8, further comprising: an interface module and a communications unit are provided, between which a switch-over can be made.
10. The control device according to claim 9, wherein software is stored which is configured for switching between the interface module and the communications unit.
11. The control device according to claim 9, further comprising: a switch configured to switch between the interface module and the communications unit.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0025]
[0026]
[0027]
[0028]
[0029]
DETAILED DESCRIPTION OF EXAMPLE EMBODIMENTS
[0030] The present invention is represented schematically in the drawings on the basis of embodiments and is described below with reference to the figures.
[0031]
[0032] A control unit 103, e.g., a microprocessor or a microcomputer, is contained in the control device 100. This comprises a communications unit 107, which in this example corresponds to an Ethernet controller. Also included in the microprocessor 103 is a serial interface module 108, e.g., an asynchronous serial communications interface ASC, via which data for programming the memory 109, which is in particular also integrated into the microprocessor, can be received or transmitted. In addition, communication can be ensured via the interface module 108. The memory can also be located outside the control unit 103 and is preferably designed as a flash memory.
[0033] The illustration further shows a switching means (i.e., a switch) 105 in which, in particular, a program-controlled interface changeover switch or a multiplexer is provided, which enables a switching of the communications link from the communications unit 107 to the interface module 108.
[0034] For all control devices or SoCs, which make it possible to switch from Ethernet to ASC SoC-internally on the pins TXD/RXD, the switching means 105 can be omitted. The switching in the control device 100 then takes place with softwarein the case shown for ASC@Ethernet. If the installed SoC does not make it possible to switch over ASC and Eth, such a switching means 105 will be required.
[0035] In the context of normal communication, in particular in the control device network in the vehicle, the connection to the Ethernet driver 102 and to the Ethernet interface 110 from the communications unit or from the Ethernet controller 107 is present via communications link sections 104B, switching means or interface changeover switch 105, and communications link 104, and a conventional data transmission takes place in the context of Ethernet communication, i.e., in this case, a first bus protocol, in particular the Ethernet bus protocol, is used.
[0036] If the control device 100 is to be programmed or communicated in the test mode, for this purpose, the control device 100 will be connected via 104A to the programming device 101. The interface changeover switch 105 then makes the connection to the interface module 108 via the connection section 106. As a result, the communications interface 110, the Ethernet driver 102, and the communications link 104 to the microprocessor can also be used for the programming or test mode communication. However, a second bus protocol is used here for programming, in particular a standard protocol of a serial interface, such as, for example, RS-232.
[0037]
[0038]
[0047] Furthermore, a clock cycle in a range from 9.5 to 50 MHz is provided on REF_CLK 324. The pins RXER 318, CRSDV 314 are not used here.
[0048]
[0049]
[0050] Furthermore, a brace 530 indicates register [0] through register [70]. A column 540 contains the data of TXD1==TXEN, another column 542 the data of the clock signal, and yet another column 544 the data of TXD0. Reference numerals 550 through 570 denote the individual registers.
[0051] The method is explained in more detail with reference to the figures:
[0052] On the tester and ECU side, after the Ethernet bus transceivers, the controller/SoC is not configured onto the corresponding bus system, but TX and RX pins are configured as ASC, and the clock cycle rate is changed in the direction of the Ethernet bus transceiver; see in this regard
[0053] To simplify the transmission, the data lines TXEN, TXD0 are combined, identical data content being transmitted here. This is possible, since TXEN is always 1 during the transmission, and, on TDX0, the preamble, SFD, and the data section are also specified as 1. In the data transmission, useful information is thus carried out only on TXD1. During the transmission of data, the pin TXEN is set to 1. If data transmission has ended, TXEN and TXD0 will be set to 0, and transmission is thus terminated; see
[0054] The aim is to establish a stable communication of boundary conditions specified for an Ethernet transceiver, namely via a physical route from microcontroller 1 on the receiving side to microcontroller 2 on the opposite side (MAC); see
[0055] For this purpose, RMII mode with an external clock source is used. By means of the microcontroller, the clock cycle signal from 9.5 to 50 MHz, which is transmitted from the source to be transmittedthe microcontrollerto the receiving sidethe Ethernet transceiveris generated using a PWM pin. RMII is a more compact version of the media-independent interface (MII) that requires fewer hardware pins than MII and is used for communication between transceivers and MAC.
[0056] Before the transmission, the data for the transmission are stored in the memory. The pins TXEN, TXD0, TXD1 and a clock cycle are required for the communication. The data transmission takes place with the aid of a DMA-based data access which puts the data from the memory onto the three hardware pins TXEN, TXD0, and TXD1 in parallel with and synchronously with the clock cycle. The data to be transmitted are stored in the data section of the transmission sequence. In this regard, reference is made to
[0057] The transmission sequence of the data starts by applying a clock pulse of 9.5 to 50 MHz between the microcontroller and the Ethernet transceiver on the transmitting side. If the Ethernet transceiverthe masterhas successfully synchronized with the second Ethernet transceiver on the receiving sidethe slave Ethernet transceivera so-called link-up will take place, this information being retrievable in a status register of the master Ethernet transceiver.
[0058] The transmission sequence starts with the application of a TXEN+TXD1 signal of 1. After the start of the transmission, the preamble is transmitted. This is expressed as 6 bits of 0 on TXD1, then, in SFD, 4 bits of 1, then the data follow. For TXD0, this is expressed as 6 bits of 1, then, in SFD, one bit of 1, then the data follow, which are simply identical to the value of TXEN 1; see
[0059] On the receiving side, i.e., the slave Ethernet transceiver, the microcontroller must be connected to the same clock frequency of 9.5 to 50 MHz. By means of a DMA access from the hardware pins RXD0 and RXD1 to the memory, the data is secured with a subsequent evaluation. With the same approach as described above, a response is sent back.
[0060] A sequence is started on the SoC, SiP, or microcontroller, on the receiving side and on the transmitting side, which sequence manages the reception and processing of the data and ensures the consistency thereof. Here, DMA technology, among other things, is also used, which provides the SoC/SiP/microcontroller; see
[0061] This type of communication can be used on all control devices in which a data exchange takes place over the route of an Ethernet bus system.