Transmission device for an SPI communication

The SPI transmission device autonomously manages data transmission through a DMA controller and SPI module, reducing control unit load and enhancing scalability and flexibility, addressing performance bottlenecks in SPI communication systems.

WO2024223304A1PCT designated stage expired Publication Date: 2024-10-31ROBERT BOSCH GMBH

Patent Information

Application Number
PCT/EP2024/059739
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2024-04-10
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing SPI communication systems require significant control unit involvement for data transmission, leading to performance bottlenecks and high resource utilization, limiting scalability and flexibility.

Method used

A transmission device comprising a control unit, DMA controller, and SPI module that configures DMA channels and transmission buffers to enable autonomous data transmission over the SPI bus, allowing the control unit to focus on higher-level operations while the DMA controller and SPI module handle data transfer and prioritization.

Benefits of technology

This solution reduces the load on the control unit, enables faster operations with lower performance requirements, and provides high flexibility in data transmission, prioritization, and scalability, optimizing resource usage and response times in time-critical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024059739_31102024_PF_FP_ABST
    Figure EP2024059739_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present invention relates to a transmission device for an SPI communication, comprising: a control unit (10), a storage unit (20), a DMA controller (30) and an SPI module (40), wherein the control unit (10) is set up to configure an information technology connection between the DMA controller (30) and the SPI module (40) by virtue of a respectively corresponding DMA channel (32) being assigned to a respective SPI transmission channel (42) provided in the SPI module (40), to configure an information technology connection between the storage unit (20) and the DMA controller (30) by virtue of a respectively corresponding transmission buffer (22) in the storage unit (20) being assigned to each DMA channel (32) that is assigned to an SPI transmission channel (42), to write a transmission dataset (50) that is to be transmitted by means of the transmission device to a transmission buffer (22) of the storage unit (20), and to initiate transmission of the transmission dataset (50) with output of a transmission request (12) to the SPI module (40), wherein the SPI module (40) comprises an SPI controller (44) and at least one SPI transmission buffer (46) and is set up, in response to the transmission request (12), to initiate an automatic transfer of the transmission dataset (50) from the transmission buffer (22) of the storage unit (20) to the SPI transmission buffer (46) and to output via an SPI bus (60) the transmission data (52) written to the SPI transmission buffer (46).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description

[0002] title

[0003] Transmission device for SPI communication

[0004] State of the art

[0005] The present invention relates to a transmission device for a Serial Peripheral Interface, hereinafter abbreviated SPI, communication.

[0006] Bus systems are known from the prior art that are used for data communication between different components and / or within individual components. Such bus systems are particularly advantageous in distributed systems such as vehicle systems.

[0007] One such bus system is the SPI bus system, which represents a standard for a synchronous serial data bus. The SPI bus system is based on master-slave communication, in which a master component outputs a clock signal to synchronize the connected slave components and initiates the respective communication processes via the slave components.

[0008] In the state of the art, when implementing SPI communication, it is generally provided that a control unit (e.g. a CPU) initiates the respective SPI communication processes and controls a transfer via SPI for the data to be transmitted and / or received.

[0009] Furthermore, so-called DMA ("direct memory access") controllers are known from the prior art. These controllers are designed to allow peripheral devices direct access to a system's main memory, enabling data transfers essentially without placing a load on the control unit. Disclosure of the Invention

[0010] According to the present invention, a transmission device for Serial Peripheral Interface (SPI) communication is proposed. Such SPI communication can be advantageously used, for example, between sensors and central control units for such sensors in a vehicle, without thereby limiting the SPI communication proposed here to a vehicle application. Such a vehicle is, for example, a road vehicle (e.g., motorcycle, car, van, truck), a rail vehicle, an aircraft, and / or a watercraft.

[0011] The transmission device according to the invention comprises a control unit, a memory unit, a DMA (direct memory access) controller and an SPI (serial peripheral interface) module.

[0012] The control unit is configured, for example, as an ASIC, FPGA, processor, CPU, digital signal processor, microcontroller, or similar. The control unit is configured to configure an information technology connection between the DMA controller and the SPI module by assigning a corresponding DMA channel to each SPI transmission channel provided in the SPI module. It should be noted that the configurations performed by the control unit described here and below can be predefined static configurations and / or configurations that can be dynamically adapted at runtime.

[0013] The control unit is further configured to configure an information technology connection between the memory unit and the DMA controller (statically and / or dynamically) by assigning a corresponding transmit buffer in the memory unit to each DMA channel assigned to an SPI transmit channel. It should be noted that the size and / or number of transmit buffers in the memory unit are not generally limited to specific values.

[0014] Furthermore, the control unit is configured to write a transmission data set to be transmitted by means of the transmission device, which contains transmission data (i.e., user data) and control information corresponding to the transmission data for an SPI transmission (e.g., information about a number of transmission data, segmentation information for carrying out segmented data transmissions, addressing information that specifies a recipient of the data, etc.), into a transmission buffer of the memory unit provided for the transmission data set, and to initiate a transmission of the transmission data set by issuing a transmission request to the SPI module that identifies the transmission buffer used for this purpose.

[0015] The SPI module has an SPI controller and at least one SPI transmit buffer. It is configured, in response to the control unit's transmit request, to initiate an automatic transfer of the transmit data set from the used transmit buffer of the memory unit to the SPI transmit buffer by addressing the DMA controller via the SPI transmit channel that corresponds to the transmit buffer of the memory unit identified by the transmit request. Based on the configured connections between the DMA controller and the memory unit, the DMA controller is accordingly capable of automatically transferring the transmit data set to the corresponding SPI transmit buffer without involving the control unit.

[0016] The SPI module, which functions in particular as an SPI master, is further configured to output transmit data written into the SPI transmit buffer by the DMA controller via an SPI bus that is connected to the SPI module for information technology purposes. The control information corresponding to the transmit data is used to carry out the SPI transmission by the SPI controller. This means, for example, that addressing information from the control information is used to address a desired receiver (in particular an SPI slave) for the transmit data on the SPI bus.

[0017] The transmission device according to the invention offers the particular advantage that transmission data or transmission data sets can be transmitted autonomously via the SPI bus after they have been stored in the memory unit and the transmission process has been initiated, without the control unit having to control the transmission. This reduces the load on the control unit, allowing other operations to be performed by the control unit to be executed more quickly and / or allowing a control unit with lower performance requirements to be used, which, for example, can reduce the costs of the transmission device.

[0018] A further advantage of the transmission device according to the invention results from the fact that a particularly high degree of flexibility is achieved due to the simple scalability of the underlying architecture, whereby, among other things, a number of transmission buffers of the memory unit and / or a size of respective transmission data sets and / or a number of SPI receivers, etc., can be flexibly adapted on the basis of the configuration by the control unit.

[0019] The subclaims show preferred developments of the invention.

[0020] In an advantageous embodiment of the present invention, the number of SPI transmit buffers is less than the number of transmit buffers of the memory unit, and in particular (ideally here), the number of SPI transmit buffers corresponds to a value of one. This accordingly allows the required storage space for the SPI transmit buffer(s) to be saved, which can, for example, contribute to a reduction in the required chip area and / or cost savings. Alternatively or additionally, the transmit buffer of the memory unit is configured to store a plurality of transmit data items with at least one corresponding piece of control information in a respective transmit data record. This advantageously allows the required storage space in the memory unit and the data volume to be transferred from the memory unit to the SPI transmit buffer to be reduced. Accordingly, transmissions of transmit data can be completed more quickly.This is particularly advantageous when multiple transmission data are to be transmitted to one and the same recipient.

[0021] In a further advantageous embodiment of the present invention, the DMA controller is configured to automatically segment a respective transmit data record during transmission into a respective corresponding SPI transmit buffer, taking into account the size of the SPI transmit buffer, and to automatically and successively transmit individual data segments of the segmented transmit data record to the SPI transmit buffer. This allows a particularly high degree of flexibility of the transmission device according to the invention to be achieved, since the size of the respective transmit data records can, in principle, be set arbitrarily. For this purpose, offset management is preferably provided for each DMA channel in the DMA controller, by means of which the start address of a data segment to be subsequently transmitted in the memory unit is managed.It goes without saying that the next data segment to be transferred is only transferred by the DMA controller to the SPI transmit buffer once the previous data segment has been successfully transferred on the SPI bus. For this purpose, a corresponding feedback signal from the SPI module to the DMA controller is advantageously provided.

[0022] Particularly advantageously, the SPI module further comprises an arbitration unit configured to evaluate prioritization information contained in the control unit's transmission requests and / or determined by the control unit's configuration in order to prioritize respective SPI data transmissions according to the prioritization information. Such prioritization makes it possible, on the one hand, to prioritize a plurality of not-yet-sent transmission data records stored in the memory unit with regard to a transmission sequence and / or to interrupt an ongoing transmission of a not-yet-completed transmission data record by transmitting a transmission data record with a higher priority.In other words, it is possible to carry out a prioritization-related switchover between different send requests at different times, for example after a respective send data record has been fully transmitted and / or after a respective send data packet within a send data record has been fully transmitted and / or after a respective send data packet from the SPI send buffer on the SPI bus has been fully transmitted. The latter offers the particular advantage of a particularly fast switchover option to higher-priority send requests and thus a particularly fast response time, which can be particularly advantageous in time-critical applications. This does not explicitly rule out the possibility of a priority-related switchover to another send request ora transmission data record corresponding to the transmission request can take place at different times. Preferably, the DMA controller is configured to interrupt an ongoing data transmission between the memory unit and the SPI module in response to a higher-priority data transmission requested by the arbitration unit (as described above, preferably whenever the corresponding SPI transmission buffer has been processed, i.e., sent) and to automatically resume the interrupted data transmission after the higher-priority data transmission has been carried out. Such interruptions can, in particular, also be implemented in a multiple-nested manner, for example if an ongoing data transmission is to be interrupted by a first higher-priority transmission and subsequently by a second even higher-priority transmission, etc.For such priority-related interruptions, the offset management of the DMA controller for segmented data transmissions described above and / or a different management for the interruption of transmission processes can be used.

[0023] The control information contained in respective transmission data sets comprises, as described above, for example, addressing data for addressing respective recipients and / or information about a data volume to be transmitted in a transmission data set and / or an SPI command and / or segmentation information for respective transmission data sets, and / or possibly further information relating to the SPI protocol or the SPI transmission.

[0024] In a further advantageous embodiment of the present invention, the memory unit has at least one receive buffer, while the SPI module has at least one SPI receive buffer. Furthermore, the control unit is configured to configure the DMA controller and the SPI module by assigning respective SPI receive channels to corresponding DMA channels and by assigning respective corresponding DMA channels to corresponding receive buffers in the memory unit. In this way, the transmission device according to the invention is configured to receive data from respective receivers on the SPI bus independently of control by the control unit, thereby correspondingly relieving the load on the control unit, as in the case of the data transmission described above.Advantageously, the control unit is actively informed (e.g., via an interrupt) of the complete receipt of a receive data record (which can be structured similarly to the transmit data records). Alternatively or additionally, it is also possible for the control unit to check at regular intervals whether newly received data is present in the respective receive buffers in the memory unit, which can be further processed by the control unit. It is understood that similar mechanisms can be provided to inform the control unit that a transmit data record stored in the memory unit has been completely transmitted over the SPI bus, so that the control unit can use this information to write any further transmit data to be transmitted into the memory unit in response.

[0025] Preferably, each receive buffer of the memory unit contains a storage area for status information, which represents information regarding the corresponding received data and, together with the corresponding received data, represents a respective received data record. The status information contains, for example, information about whether the reception of a received data record is complete and / or whether a received data record is error-free (e.g., due to a checksum check), etc.

[0026] Particularly advantageously, the number of SPI receive buffers is less than the number of receive buffers of the memory unit, and particularly advantageously, their number corresponds to a value of one. This allows the advantages described above in connection with the SPI transmit buffer to be achieved for the receive side of the transmission device as well. Alternatively or additionally, each receive buffer of the memory unit is configured to store a plurality of receive data items, each with corresponding status information, in a respective receive data record.

[0027] Further advantageously, the control unit of the transmission device according to the invention is configured to execute and / or adapt the configuration of the DMA controller and / or the SPI module during an initialization phase and / or during runtime of the transmission device. In particular, the possibility of adapting the configuration during runtime allows a particularly high degree of flexibility of the transmission unit according to the invention to be achieved. Furthermore, it is conceivable that the control unit is configured to adapt prioritizations for respective transmission data sets during runtime.This can be advantageous, for example, if an environment detection system of a vehicle, which uses, for example, a transmission device according to the invention for communication between a central control unit (SPI master) and a plurality of sensors (SPI slaves), wants to adapt data transmissions from and / or to certain sensors differently than previously configured due to currently existing boundary conditions (for example, in order to give higher priority to those sensors which can best detect a critical traffic situation).

[0028] Short description of the drawings

[0029] An embodiment of the invention will be described in detail below with reference to the accompanying drawings.

[0030] Figure 1 is a schematic view of an embodiment of a transmission device according to the invention.

[0031] Embodiments of the invention

[0032] Figure 1 shows a schematic view of an embodiment of a transmission device according to the invention, which is used, for example, for SPI-based transmission of data between a plurality of ultrasonic sensors and an ultrasonic control unit in a vehicle.

[0033] The transmission device comprises a control unit 10 designed as a CPU, a memory unit 20, a DMA controller 30 and an SPI module 40.

[0034] The control unit 10 is configured to transmit transmission data sets 50, 50' to one or more SPI receivers 110 via an SPI bus 60 by writing the transmission data sets 50, 50' via an information technology connection into transmission buffers 22, 22' of the memory unit provided for this purpose. It should be noted that respective components of the transmission device according to the invention can be present in multiple copies (e.g., multiple transmission buffers 22, 22', etc.) and that, for reasons of clarity, not all multiple versions of these components are provided with reference numerals, since their affiliation is readily apparent to a person skilled in the art.

[0035] Each transmission data record 50, 50' comprises control information 54, 54' and at least one data packet representing payload information to be transmitted, referred to here as transmission data 52, 52'. The transmission data record 50 here comprises one data packet of transmission data 52, while the transmission data record 50' here, for example, comprises two data packets of transmission data 52'.

[0036] Analogous to the transmit buffers 22, 22' and the transmit data sets 50, 50', the memory unit 20 has a plurality of receive buffers 24, 24', in each of which receive data sets 80 can be stored. The receive data sets 80 represent data received by the SPI module 40 via the SPI bus 60. Each receive data set 80 has at least one data packet, which includes payload data, here called receive data 82, and status information 84 regarding the receive data 82.

[0037] The control unit 10 is configured to configure an information technology connection between the DMA controller 30 and the SPI module 40 by assigning a corresponding DMA channel 32 to a first SPI transmission channel 42 provided in the SPI module 40. The control unit 10 is also configured to configure an information technology connection between the memory unit 20 and the DMA controller 30 by assigning a corresponding transmission buffer 22 in the memory unit 20 to the DMA channel 32. The configuration is performed by transmitting configuration data 14 to the DMA controller and configuration data 14' to the SPI module 40. In a similar manner, additional SPI transmission channels can be linked to additional transmission buffers in the memory unit 20.

[0038] The control unit 10 is further configured to initiate a transmission of a transmission data set 50 written into the memory unit 20 to the SPI receiver 110 by transmitting a transmission request 12 to an SPI controller 44 of the SPI module 40, which is provided for control within the SPI module 40, which identifies the transmission buffer 22 in the memory unit 20 that contains the transmission data set 50 currently to be transmitted.

[0039] In response, the SPI controller 44 selects the SPI transmit channel 42 corresponding to the identifier of the transmit buffer 22 in order to select the DMA channel 32 linked to the transmit channel 42 by configuration. In response, the DMA controller 30 initiates a first data transfer 90, by means of which transmit data records 50 contained in the transmit buffer 22 are read out in individual data segments whose size is less than or equal to the size of the SPI transmit buffer 46 and are written by the DMA controller 30 into the SPI transmit buffer 46 by means of a second data transfer 100.

[0040] The SPI controller 44 then initiates the transmission of the data present in the SPI transmit buffer 46 on the SPI bus 60.

[0041] Furthermore, the SPI module 40 has an SPI receive buffer 48 in which data received via the SPI bus 60 is stored. The control unit 10 is also configured to configure the DMA controller 30 and the SPI module 40 by assigning a DMA channel 32' to the SPI receive channel 43 and by assigning a corresponding receive buffer 24 in the memory unit 20 to the DMA channel 32'. In a similar manner, further SPI receive channels can be linked to further receive buffers 24' in the memory unit 20.

[0042] The receive buffers 24, 24' are configured to receive data received in the SPI module 40 from the SPI bus 60 via the DMA controller 30 in the form of receive data records 80, wherein each receive data record 80 comprises at least one data packet representing respective receive data 82 and status information 84 corresponding to the receive data 82.

[0043] In addition, the SPI module 40 has an arbitration unit 70, which is configured to prioritize simultaneously pending send requests 12 or resulting data transfers based on prioritization information provided via the send request 12, in accordance with the prioritization information. In a case in which a send request 12 arrives in the arbitration unit 70 with a prioritization that is higher than a prioritization of an already ongoing data transfer, the arbitration unit 70 initiates an interruption of the ongoing transfer via the SPI controller 44 as soon as the SPI send buffer 46 has been processed, i.e., sent. In response to the interrupted transfer, the transfer with the higher priority is now executed in order to automatically resume the previously interrupted transfer after this transfer using the DMA controller 30.

Claims

Claims 1. Transmission device for a Serial Peripheral Interface, hereinafter abbreviated SPI, communication comprising: • a control unit (10), • a storage unit (20), • a Direct Memory Access, hereinafter abbreviated to DMA, controller (30), and • an SPI module (40), where • the control unit (10) is configured to o configure an information technology connection between the DMA controller (30) and the SPI module (40) by assigning a respective corresponding DMA channel (32) to a respective SPI transmission channel (42) provided in the SPI module (40), o configure an information technology connection between the memory unit (20) and the DMA controller (30) by assigning a respective corresponding transmission buffer (22) in the memory unit (20) to each DMA channel (32) assigned to an SPI transmission channel (42), and o a transmission data record (50) to be transmitted by means of the transmission device, which contains transmission data (52) and control information (54) corresponding to the transmission data (52) for an SPI transmission,to write into a transmission buffer (22) of the memory unit (20) provided for the transmission data record (50) and to initiate a transmission of the transmission data record (50) by issuing a transmission request (12) to the SPI module (40), which identifies the transmission buffer (22) used for this purpose, • the SPI module (40) has an SPI controller (44) and at least one SPI transmit buffer (46) and is configured, o in response to the transmit request (12) of the control unit (10), to initiate an automatic transfer of the transmit data set (50) from the used transmit buffer (22) of the memory unit (20) to the SPI transmit buffer (46) by addressing the DMA controller (30) via that SPI transmit channel (42) which corresponds to the transmit buffer (22) of the memory unit (20) identified by the transmit request (12), and o to output the transmit data (52) written into the SPI transmit buffer (46) by the DMA controller (30) via an SPI bus (60) which is informationally connected to the SPI module (40), wherein the data associated with the transmit data (52) corresponding control information (54) is used to carry out the transmission.

2. Transmission device according to claim 1, wherein • a number of SPI transmit buffers (46) is less than a number of transmit buffers (22) of the memory unit (20) and in particular corresponds to a number of one, and / or • each transmission buffer (22) of the memory unit (20) is configured to store a plurality of transmission data (52) with corresponding control information (54) in a respective transmission data record (50).

3. Transmission device according to one of the preceding claims, wherein the DMA controller (30) is configured to automatically segment a respective transmission data set (50) during transmission into a respective corresponding SPI transmission buffer (46) taking into account a size of the SPI transmission buffer (46) and to automatically successively transmit individual data segments of the segmented transmission data set (46) to the SPI transmission buffer (46).

4. Transmission device according to one of the preceding claims, wherein the SPI module (40) further comprises an arbitration unit (70) which is configured to, in the transmission requests (12) of the control unit (10), to evaluate prioritization information contained and / or determined by means of the configuration by the control unit (10) in order to prioritize respective SPI data transmissions according to the prioritization information.

5. Transmission device according to claim 4, wherein the DMA controller (30) is arranged • to interrupt an ongoing data transmission between the memory unit (20) and the SPI module (40) in response to a higher priority data transmission requested by the arbitration unit (70), and • to automatically resume the interrupted data transmission after the higher priority data transmission has been completed.

6. Transmission device according to one of the preceding claims, wherein the control information (54) • Addressing data, and / or • a data volume to be transferred, and / or • an SPI command, and / or • Includes segmentation information.

7. Transmission device according to one of the preceding claims, wherein • the storage unit (20) has at least one receive buffer (24), • the SPI module (40) has at least one SPI receive buffer (48), • the control unit (10) is configured to configure the DMA controller (30) and the SPI module (40) by assigning respective SPI receive channels (43) to respective corresponding DMA channels (32') and by assigning respective corresponding DMA channels (32') to respective corresponding receive buffers (24) in the memory unit (20).

8. Transmission device according to claim 7, wherein in each reception buffer (24) of the memory unit (20) a memory area for status information (84) is provided, which information regarding each corresponding received data (82) and which together with the corresponding received data (82) represent a respective received data set (80).

9. Transmission device according to claim 7 or 8, wherein • a number of SPI receive buffers (48) is less than a number of receive buffers (24) of the memory unit (20) and in particular corresponds to a number of one, and / or • each receive buffer (24) of the storage unit (20) is configured to store a plurality of receive data records (80).

10. Transmission device according to one of the preceding claims, wherein the control unit (10) is configured to carry out and / or adapt the configuration of the DMA controller (30) and / or the SPI module (40) during an initialization phase and / or at runtime of the transmission device.

11. Transmission device according to claim 10, wherein the control unit (10) is configured to adapt prioritizations for respective transmission data sets (50) at runtime.

Citation Information

Patent Citations

  • A processing system comprising a queued serial peripheral interface, related integrated circuit, device and method

    EP3885924B1

Cited By

  • System-on-chip for communication between AUTBUS and SPI slave module

    CN119847961A