Static serial peripheral interconnect scheduling

By using a static scheduling table and SPI microcontroller coordination, the problem of low efficiency in asynchronous communication of peripheral device controllers in vehicles is solved, achieving efficient data exchange and synchronous communication, and adapting to the processing capability limitations of peripheral devices.

CN123187130APending Publication Date: 2026-11-27RIVIAN HOLDINGS LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580030486.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-05-06
Filing Date
2025-05-06
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, peripheral device controllers in vehicles struggle to achieve efficient synchronous communication, especially due to their limited asynchronous communication capabilities, resulting in low data exchange efficiency.

Method used

A static scheduling table is used to coordinate the data exchange of multiple peripheral device controllers through an SPI microcontroller. Static time windows are used for synchronous serial communication to ensure that each time window is dedicated to the data exchange of a specific peripheral device controller.

Benefits of technology

It achieves conflict-free data exchange, improves data transmission efficiency, reduces waiting time, supports multi-threaded operation and simultaneous execution of mirror structures, and adapts to the limited processing capabilities of peripheral device controllers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123187130A_ABST
    Figure CN123187130A_ABST
Patent Text Reader

Abstract

The PCB has a plurality of peripheral device controllers mounted to the PCB, each peripheral device controller including one or more registers. A bus is mounted to the PCB and includes one or more data lines, each data line of the one or more data lines coupled to each peripheral device controller of the plurality of peripheral device controllers. A memory is mounted to the PCB. A microcontroller is mounted to the PCB and coupled to the memory and the bus. The microcontroller is configured to send data to and receive data from each peripheral device controller of the plurality of peripheral device controllers according to a static schedule, wherein for each cycle of the static schedule, each time window of a plurality of time windows is statically dedicated to exchanging data with each peripheral device controller of the plurality of peripheral device controllers corresponding to each time window.
Need to check novelty before this filing date? Find Prior Art

Description

Related applications

[0001] This application claims the benefit of U.S. Provisional Patent Application Serial No. 63 / 643,401, filed May 6, 2024, entitled “static serial peripheral interconnect schedule,” which is incorporated herein by reference in its entirety. Background Technology

[0002] This disclosure relates to data exchange with peripheral device controllers, such as peripheral device controllers of vehicles. Summary of the Invention

[0003] This disclosure describes a method for communicating with peripheral devices of a vehicle. In one aspect, an apparatus includes a printed circuit board and a plurality of peripheral device controllers mounted to the printed circuit board, each peripheral device controller including one or more registers and configured to control the operation of a corresponding peripheral device based on values ​​stored in the one or more registers. A bus is fixed to the printed circuit board and includes one or more data lines, each of the one or more data lines being coupled to each of the plurality of peripheral device controllers. A memory is mounted to the printed circuit board. A microcontroller is mounted to the printed circuit board and coupled to the memory and the bus. The microcontroller is configured to send and receive data to each of the plurality of peripheral device controllers according to a static schedule, wherein for each cycle of the static schedule, each time window of a plurality of time windows is statically dedicated to exchanging data with each of the plurality of peripheral device controllers corresponding to each time window. Attached Figure Description

[0004] Figure 1A Example vehicles that can be operated according to certain implementation schemes are illustrated.

[0005] Figure 1B The chassis of a vehicle according to certain implementation schemes is illustrated.

[0006] Figure 2 It is a schematic block diagram of components used to operate a vehicle according to certain implementation schemes.

[0007] Figure 3 This is a schematic diagram illustrating components used for exchanging data between an application and a peripheral device controller, according to certain embodiments.

[0008] Figure 4 This is a process flowchart of a method for exchanging data with a peripheral device controller according to certain implementation schemes.

[0009] Figure 5 This is a schematic diagram illustrating a data structure for exchanging data with a peripheral device controller according to certain implementation schemes.

[0010] Figure 6 This is a schematic diagram illustrating a scheduling table based on certain implementation schemes.

[0011] Figure 7 This is a schematic diagram illustrating the execution of a schedule based on certain implementation schemes. Detailed Implementation

[0012] Modern vehicles include many electronic components, each of which may require a peripheral controller to interface with. Peripheral controllers can be relatively simple devices that cannot communicate asynchronously or according to networking protocols.

[0013] The microcontroller is implemented and performs static scheduling relative to entries in the scheduler table. Each entry corresponds to a loop and a time window within the loop. During each time window, the microcontroller enables the chip select line and processes hardware instructions relative to the peripheral controller associated with the time window, which includes transferring data relative to entries in the scheduler table.

[0014] Figure 1A Example vehicle 100 is shown. (e.g.) Figure 1A As shown, the vehicle 100 has a plurality of external cameras 102 and one or more front displays 104. Each of these external cameras 102 can capture a specific view or perspective of the exterior of the vehicle 100. The images or videos captured by the external cameras 102 can then be displayed on one or more displays in the vehicle 100, such as one or more front displays 104, for the driver to view.

[0015] refer to Figure 1B The vehicle 100 may include a chassis 106, which includes a frame 108 that provides the main structural components of the vehicle 100. The frame 108 may be formed by one or more beams or other structural components, or it may be integrated with the vehicle body (i.e., a monocoque construction).

[0016] In embodiments where vehicle 100 is a battery electric vehicle (BEV) or possibly a hybrid vehicle, a large battery 110 is mounted on chassis 106 and may occupy a significant portion (e.g., at least 80%) of the area within frame 108. For example, battery 110 may store 100 to 200 kWh. Battery 110 may be a lithium-ion battery or other types of rechargeable battery. The battery may be substantially planar in shape.

[0017] Power from battery 110 can be supplied to one or more drive units 112. Each drive unit 112 may consist of an electric motor and, possibly, a gear train providing gear reduction. In some embodiments, a single drive unit 112 drives either the front or rear wheels of the vehicle 100. In another embodiment, two drive units 112 are present, each driving either the front or rear wheels of the vehicle 100. In yet another embodiment, four drive units 112 are present, each driving one of the four wheels of the vehicle 100.

[0018] Power from battery 110 can be supplied to drive unit 112 by power electronics 114 in each drive unit 112. Power electronics 114 may include inverters configured to convert direct current (DC) from battery 110 into alternating current (AC) supplied to the motor of drive unit 112. Power electronics 114 also facilitate the use of the drive unit's motor as a generator to provide regenerative braking. Power electronics 114 also facilitate the transfer of regenerative current to battery 110.

[0019] Drive unit 112 is coupled to two or more hubs 116, to which wheels can be mounted. Each hub 116 includes a corresponding brake 118, such as a disc brake as illustrated. Each hub 116 is further coupled to frame 108 via suspension 120. Suspension 120 may include metal or pneumatic springs for absorbing shocks. Suspension 120 may be implemented as a pneumatic or hydraulic suspension capable of adjusting the ground clearance of chassis 106 relative to a support surface. Suspension 120 may include a damper, wherein the characteristics of the damper are fixed or electronically adjustable.

[0020] exist Figure 1B In the implementation scheme and in the discussion below, vehicle 100 is a battery-electric vehicle. However, the systems and methods disclosed herein can be used with any type of vehicle, including vehicles powered by an internal combustion engine (ICE), a hybrid powertrain, a hydrogen fuel cell powertrain, or other types of powertrains that may have a portion that idles during some operating modes. For example, the front or rear differential of an all-wheel-drive vehicle. In another example, in a hybrid powertrain, according to the method described herein, the idle drive unit including the electric motor can be heated using waste heat from the ICE.

[0021] Figure 2 Examples Figure 1A Example components of vehicle 100. For example... Figure 2As shown, vehicle 100 includes a camera 102, one or more front displays 104, a user interface 200, one or more sensors 202, a motion sensor 204, and a positioning system 206. The one or more sensors 202 may include ultrasonic sensors, radio detection and ranging (RADAR) sensors, light detection and ranging (LIDAR) sensors, or other types of sensors. The positioning system 206 may be implemented as a Global Positioning System (GPS) receiver. The user interface 200 allows a user (such as a driver or passenger in vehicle 100) to provide input.

[0022] Components of the vehicle 100 may include one or more temperature sensors 208. Temperature sensors 208 may include sensors configured to sense ambient air temperature, battery 110 temperature, power electronics 114 temperature, temperature of each drive unit 112 and / or each motor of each drive unit 112 temperature, temperature of coolant fluid entering or leaving the coolant system, oil temperature within the drive unit 112 temperature, or temperature of any other component of the vehicle 100.

[0023] The vehicle 100 may include a friction braking system 210. The friction braking system 210 may include any components of a hydraulic braking system, such as a rotor, brake pads, calipers, caliper pistons, and a master cylinder connected to the caliper pistons and the brake pedal via brake lines. The friction braking system 210 may also include a pump and / or valves for automatically applying hydraulic pressure to the caliper pistons. The friction braking system 210 may be implemented as a drum braking system or any friction braking system known in the art.

[0024] Control system 214 executes instructions to perform at least some of the actions or functions of vehicle 100, including those related to... Figures 3 to 6 The described function. For example, such as Figure 2 As shown, the control system 214 may include one or more electronic control units (ECUs) configured to perform at least some of the actions or functions of the vehicle 100, including regarding... Figures 3 to 6 The functions described. In some implementations, each ECU in the ECU is dedicated to a specific set of functions. Each ECU may be a computer system, and each ECU may include the functionalities described below.

[0025] Some features of the implementation scheme described herein can be controlled by a telematics control module (TCM) ECU. The TCM ECU can provide a wireless vehicle communication gateway to support functionality, as an example and not a limitation, such as over-the-air (OTA) software updates, communication between the vehicle and the Internet, communication between the vehicle and a computing device, in-vehicle navigation, vehicle-to-vehicle communication, communication between the vehicle and landscape features (e.g., automatic toll road sensors, automatic toll booths, power distributors at charging stations), or automatic calling functionality.

[0026] Some features of the implementation described herein can be controlled by a Central Gateway Module (CGM) ECU. The CGM ECU serves as the communication hub of the vehicle, connecting various ECUs, sensors, cameras, microphones, motors, displays, and other vehicle components, and transmitting data to and from these components. The CGM ECU may include a network switch providing connectivity via a Controller Area Network (CAN) port, a Local Interconnect Network (LIN) port, and an Ethernet port. The CGM ECU can also function as the master controller for different vehicle modes (e.g., road driving mode, parking mode, off-road mode, trailer mode, camping mode), thereby controlling certain vehicle components associated with placing the vehicle in one of these vehicle modes.

[0027] In various implementations, the CGM ECU collects sensor signals from one or more sensors of the vehicle 100. For example, the CGM ECU may collect data from camera 102, sensor 202, motion sensor 204, positioning system 206, and temperature sensor 208. The sensor signals collected by the CGM ECU are then transmitted to the appropriate ECU for performing operations and functions, such as those described below.

[0028] The control system 214 may also include one or more additional ECUs, as examples and not limitations, such as a Vehicle Dynamics Module (VDM) ECU, an Experience Management Module (XMM) ECU, a Vehicle Access System (VAS) ECU, a Near Field Communication (NFC) ECU, a Body Control Module (BCM) ECU, a Seat Control Module (SCM) ECU, a Door Control Module (DCM) ECU, a Rear Zone Control (RZC) ECU, an Autonomous Control Module (ACM) ECU, an Autonomous Safety Module (ASM) ECU, a Driver Monitoring System (DMS) ECU, and / or a Winch Control Module (WCM) ECU.

[0029] If vehicle 100 is an electric vehicle, one or more ECUs may provide functionality related to the vehicle's battery pack, such as a Battery Management System (BMS) ECU, a Battery Power Isolation (BPI) ECU, a Balanced Voltage and Temperature (BVT) ECU, and / or a Thermal Management Module (TMM) ECU. In various implementations, the XMM ECU transmits data to the TCM ECU (e.g., via Ethernet, etc.). Additionally or alternatively, the XMM ECU may transmit other data (e.g., audio data from microphone 216, etc.) to the TCM ECU.

[0030] The ECU may include one or more ECUs configured to control the friction braking system 210. For example, the ECU may include a traction control module, a stability control system, an automatic emergency braking (AEB) module, an anti-lock braking system (ABS), an adaptive cruise control (ACC) module, and / or an advanced driver assistance system (ADAS). The traction control module controls braking and acceleration to control wheel slip according to any method known in the art. The traction control module may also control the torque applied to each wheel, i.e., torque vector control. According to any method known in the art, the stability control system controls braking and acceleration to prevent the vehicle 100 from overturning. According to any method known in the art, the AEB module stops the vehicle 100 in a controlled manner in response to a predicted collision. The ABS adjusts the braking to maintain traction. The ACC maintains the speed of the vehicle while also maintaining a prescribed following distance relative to other vehicles. The ADAS controls the steering, acceleration, and braking of the vehicle 100 according to any autonomous driving method known in the art to reach its destination.

[0031] refer to Figure 3 The control system 214 or any of its components described above can be implemented using the architecture shown. The illustrated architecture can be implemented on a common printed circuit board (PCB) 300. The control system 214 may include any number of PCBs 300.

[0032] PCB 300 includes an SPI microcontroller 302 mounted thereon. The SPI microcontroller 302 is configured to coordinate data exchange between CPU 304 and multiple peripheral controllers 306 via a bus 308 (such as an SPI bus). The peripheral controllers 306 may be dedicated devices capable only of synchronous serial communication via bus 308. The peripheral controllers 306 may include internal memory, for example, in the form of one or more registers 310 or other types of memory (e.g., random access memory (RAM)). The SPI microcontroller 302 manages the synchronous writing of data to and reading data from the registers 310 of each peripheral controller 306. Although bus 308 and SPI microcontroller 302 are referenced, other types of buses and corresponding microcontrollers may be used in a similar manner.

[0033] Bus 308 can be implemented using traces formed on PCB 300. Bus 308 can be a serial bus, including a single input line Di for inputting data to peripheral device controller 306 and a single output line Do for receiving data from peripheral device controller 306. Figure 3 As shown, each peripheral controller 306 is connected to the same input line Di and the same output line Do. The SPI microcontroller 302 and the peripheral controller 306 can also be connected to a common clock line CLK for synchronizing communication between the SPI microcontroller 302 and the peripheral controller 306.

[0034] The SPI microcontroller 302 is connected to the peripheral device controller 306 via dedicated chip select lines CS0, CS1, and CS2. The peripheral device controller 306 is only enabled to exchange data via input line Di and output line Do when the chip select lines CS0, CS1, and CS2 connected to it are set to active.

[0035] Each peripheral device controller 306 is connected to a peripheral device controlled by the peripheral device controller 306 according to a value stored in its register 310. The peripheral device may be a light, motor, valve, solenoid, display device, another electronic device including one or more silicon chips, a microprocessor or other type of processing logic, or any other electronically controllable component of the vehicle 100.

[0036] CPU 304 may include multiple cores 312 capable of executing one or more applications 314. Application 314 may execute simultaneously on multiple cores 312 and perform parallel access to peripheral device controller 306 via SPI microcontroller 302 using the methods described below. One or more cores 312 may execute an operating system that manages the execution of application 314 and peripheral device drivers 316.

[0037] CPU 304 may also execute one or more peripheral device drivers 316. Peripheral device drivers 316 include executable code that defines function calls (e.g., application programming interfaces (APIs)) that can be invoked by application 314 to initiate peripheral device functions. Each peripheral device driver 316 responds to a function call by generating one or more data frames to be transmitted via SPI microcontroller 302 and bus 308 to the corresponding peripheral device controller 306. Memory 318 coupled to CPU 304 may store the executable code of application 314 and peripheral device drivers 316.

[0038] Memory 320 can be mounted to PCB 300. In some implementations, memory 318 and memory 320 can be implemented as a single memory. Peripheral device driver 316 can use one or more data structures in memory 320 to exchange information with SPI microcontroller 302.

[0039] Memory 318 may store a mirror structure 322. The mirror structure 322 may store data frames in a state that mirrors the data storage in register 310 of each peripheral controller 306. Memory 320 may store an SPI buffer 324. The SPI buffer 324 may accumulate data blocks comprising multiple frames until the data blocks are transmitted to the schedule table 326. The schedule table 326 stores frames corresponding to schedules executed by the SPI microcontroller 302, wherein data referenced at a specific index in the schedule table 326 is sent to the peripheral controller 306 within a specific time window of a sequence defined by a static schedule configured to be followed by the SPI microcontroller 302.

[0040] CPU 304 can communicate with memory 318, memory 320, and SPI microcontroller 302 via a single data connection or multiple data connections, each data connection being coupled to one of these components. Each data connection can be implemented as a Peripheral Component Interconnect Fast (PCIe) bus or other type of bus, Controller Area Network (CAN), Ethernet, or other type of data connection, including wired and fiber optic connections.

[0041] The SPI microcontroller 302 can be connected to multiple buses 308, each bus having a corresponding set of peripheral device controllers 306. The memory 320 can store a scheduling table 326 for each bus 308, and may also store a mirror structure 322 and an SPI buffer 324 for each bus 308. Alternatively, multiple buses can use the same mirror structure 322 and SPI buffer 324. The SPI microcontroller 302 can operate relative to each bus 308 and the corresponding peripheral device controller 306, as described below.

[0042] Figure 4 Examples of what can be used Figure 3 The architecture executes method 400. (See reference.) Figure 5 The data structure shown further describes method 400. Method 400 may include application 314 invoking a function of peripheral device driver 316 at step 402. This function may instruct the execution of an action, such as writing data to a peripheral device, reading data from a peripheral device, sending an instruction to be performed by the peripheral device, or other actions. Peripheral device driver 316 receives the function call and, at step 404, updates the portion of mirror structure 322 corresponding to peripheral device driver 316. Step 404 may include peripheral device driver 316 executing instructions that program the peripheral device driver to convert the function call (including any parameters) at step 402 into one or more values, which are formatted and combined such that when written to register 310 of peripheral device controller 306 corresponding to peripheral device driver 316, these values ​​will be processed by peripheral device controller 306 and will execute the action corresponding to the function from step 402.

[0043] Figure 5 Table 500 illustrates the data that can be written to mirror structure 322. Table 500 shows a set of data items, each corresponding to a register 310 of a specific peripheral controller 306 referenced by the function call from step 402. Table 500 may reference data to be read (e.g., from the listed port number), data to be written (e.g., the data to be written and a reference to the register to which the data is to be written, such as the listed port number), and may reference identifiers of the peripheral controller 306.

[0044] Steps 402 and 404 can be performed by one or more applications 314 relative to one or more peripheral device drivers 316. At step 406, one or more peripheral device drivers 316 can initiate queuing for data transmission from the mirror structure 322 to the SPI buffer 324. Queuing for data transmission from the mirror structure 322 can include formatting data from the mirror structure 322 into frames, which are added to the queue, or adding references to frames to the queue.

[0045] Figure 5Example frame 502 is illustrated. Each frame may store one or more data items corresponding to registers of a single peripheral device controller 306. Each frame 502 may store some or all of the data from table 500, as well as other information such as error correction codes, cyclic redundancy check (CRC) bits, or other information. Then, at step 408, the queue may be processed by one or more peripheral device drivers 316 to instruct the data from the frames in mirror structure 322 to be packed into SPI buffer 324. Step 408 may be performed by SPI microcontroller 302 in response to a function call from one or more peripheral device drivers 316. Frames may be written to SPI buffer 324 as data objects (e.g., "structures") having attributes that store one or more data items from the frames. The result of step 408 may be buffer 504 (e.g., as...). Figure 5 As shown in the figure, each entry is a data object within a data object.

[0046] Then, at step 410, one or more peripheral device drivers 316 may initiate writing of the SPI buffer 324 to the schedule table 326. Writing the SPI buffer 324 to the schedule table 326 may include writing a pointer to the schedule table 326 that references a data object stored in the SPI buffer 324. Using a pointer can facilitate the implementation of memory protection to prevent malicious or unintentional reading or writing of data. Memory protection can be implemented by the CPU 304 using any method known in the art, such as an operating system running on the CPU 304. In particular, portions of memory storing data objects can be managed as distinct areas through memory protection to prevent errors or intrusions.

[0047] Schedule table 326 may have one or more associated entries to facilitate its execution. These one or more entries may include, for example, a rolling counter for tracking execution and failures, performance metrics (remaining time in a loop, time of the last transaction with peripheral controller 306), an index of schedule table 326 when multiple schedule tables 326 are used with multiple buses 308, an index of the currently executing loop and window (see the definitions of loop and window below), and the execution status of schedule table 326 (running, stopped, reset).

[0048] Figure 6An example configuration of schedule table 326 is illustrated. Schedule table 326 may include multiple loop entries C0, C1, C2, each loop entry C0, C1, C2 including a set of window entries W0, W1, W2. Each window entry W0, W1, W2 corresponds to a different chip select line CS0, CS1, CS2, and corresponds to a different time window during the execution of schedule table 326. Each window entry W0, W1, W2 for each loop C0, C1, C2 stores a data structure or a pointer to a data structure. The data structure may include data to be transmitted via the Di line of bus 308 (“tx_out”) and data to be read from the Do line of bus 308 (“rx_in”). The data structure may include a flag indicating that the entry is ready to be sent via bus 308. For example, the flag may be set to false at startup and when data is written to the data structure within SPI buffer 324, and then set to true when the write operation to the data structure is complete. After the data structure has been processed by the SPI microcontroller 302, the flag can be set to false or remain true until reset in response to an instruction from the corresponding peripheral device driver 316. The data structure may include the length indicating the amount of data to be stored in tx_out or rx_in.

[0049] refer to Figure 7 At the same time, still refer to Figure 4 Method 400 may include, at step 412, the SPI microcontroller 302 executing schedule table 326. For example... Figure 7 As shown, executing schedule 326 can be a static sequence of hardware commands sent via bus 308 for each entry of schedule 326. Specifically, the SPI microcontroller 302 can sequentially process each entry in schedule 326 by processing each cycle C0, C1, C2 in sequence, including sequentially processing each window entry W0, W1, W2 of each cycle C0, C1, C2. Processing each entry corresponding to the same window W0, W1, W2 of schedule 326 may take an equal amount of time (e.g., an equal number of clock cycles on clock line CLK). In some implementations, processing all entries corresponding to all windows W0, W1, W2 of schedule 326 may take an equal amount of time (e.g., 2.5 milliseconds), or it may take unequal amounts of time.

[0050] Processing for each entry corresponding to the windows W0, W1, W2 marked as ready may include: activating the chip select lines CS0, CS1, CS2 corresponding to that window W0, W1, W2, and in doing so, executing one or more hardware commands relative to the peripheral controller 306 corresponding to the window W0, W1, W2 of the entry. The hardware commands may be initiated via the Di and Do lines to write data to and / or read data from register 310. Executing the hardware commands, as well as sending and receiving data, may be performed via bus 308 according to the protocol configured to be executed by the SPI microcontroller 302 and the peripheral controller 306. The hardware commands may be the same or different for each window W0, W1, W2. For example, the SPI microcontroller 302 may be programmed with a set of commands suitable for each peripheral controller 306, which are executed for each window W0, W1, W2 corresponding to that peripheral controller 306.

[0051] When an entry is marked as not ready, processing of that entry may include not activating the chip select lines CS0, CS1, CS2 of the windows W0, W1, W2 corresponding to that entry, and (a) waiting for the same period of time as processing ready entries in windows W0, W1, W2, or (b) immediately executing the next entry without delay. In other words, schedule table 326 can be processed according to a static schedule, since each entry is processed sequentially according to a static schedule, and can be further static, since the processing time for each entry in schedule table 326 is the same regardless of whether the entry is marked as ready.

[0052] After processing all entries in schedule table 326, processing is repeated with the first loop entry C0. Figure 7 In the example, the order in which entries in schedule table 326 are processed is W0, C1, W1, W2, W0, W1, W2, W0, W1, W2, W0, W1, and W2. There can be any number of windows and any number of loops. The number of windows W0, W1, and W2 corresponds to the number of chip select lines CS0, CS1, and CS2, and the number of loops C0, C1, and C2 corresponds to the available memory.

[0053] Refer again Figure 4During the processing of entries in schedule table 326, data output from peripheral device controller 306 can be written back to that entry, for example, back to the data structure pointed to by that entry. Then, at step 414, peripheral device driver 316 can read the output data from schedule table 326 by making a function call to initiate the action. The read at step 414 can be performed by issuing a command to SPI microcontroller 302 or by performing a direct memory access (DMA) relative to memory 320. Then, at step 416, peripheral device driver 316 can return the output data as return data to application 314 in response to the function call from step 402 or in response to a subsequent function call from application 314.

[0054] The above method has several advantages. First, there is no chance of collision on bus 308. Second, the peripheral device controller 306 may have limited processing power and lack the ability to handle asynchronous communication. Static execution of schedule table 326 is used to accommodate this limitation. Third, the mirror structure 322, SPI buffer 324, and the filling of schedule table 326 can be performed simultaneously with the execution of schedule table 326. Direct memory access and multithreaded operation allow the peripheral device driver 316 and application 314 to execute concurrently with each other and execute schedule table 326 without blocking. As long as an entry in schedule table 326 is marked as not ready, no action is performed relative to the corresponding peripheral device controller 306, thus enabling asynchronous execution of entry creation in schedule table 326 relative to its execution. Therefore, it is generally not necessary to pause the execution of peripheral device driver 316, application 314, and CPU 304 to wait for synchronous communication with peripheral device controller 306.

[0055] Various embodiments of this disclosure have been described for illustrative purposes. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein has been chosen to explain the principles of the embodiments, their practical application, or technical improvements to technologies found in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.

[0056] In the foregoing, reference has been made to the embodiments presented in this disclosure. However, the scope of this disclosure extends beyond the specifically described embodiments. Rather, any combination of features and elements is contemplated for implementing and practicing the contemplated embodiments, whether or not different embodiments are involved. Furthermore, while the embodiments disclosed herein may achieve advantages over other possible solutions or over the prior art, the embodiments may achieve some advantages or no particular advantages. Therefore, the aspects, features, embodiments, and advantages discussed herein are merely illustrative.

[0057] The various aspects of this disclosure may take the form of a completely hardware implementation, a completely software implementation (including firmware, resident software, microcode, etc.), or a combination of software and hardware implementations, all of which may be collectively referred to herein as “circuit,” “module,” or “system.”

[0058] Various aspects of this disclosure are described by narrative text, flowcharts, block diagrams of computer systems, and / or block diagrams of machine logic included in implementations of a computer program product (CPP). Regarding any flowchart, depending on the technology involved, operations can be performed in a different order than that shown in a given flowchart. For example, again depending on the technology involved, two operations shown in consecutive flowchart frames can be performed in reverse order, as a single integrated step, concurrently, or in a manner that at least partially overlaps in time.

[0059] A Computer Program Product Implementation (“CPP Implementation” or “CPP”) is a term used in this disclosure to describe any set of one or more storage media (also referred to as “media”) collectively included in a set of one or more storage devices, which collectively include machine-readable code corresponding to instructions and / or data for performing computer operations specified in a given CPP claim. A “storage device” is any tangible device capable of holding and storing instructions for use by one or more computer processing devices. Without limitation, a computer-readable storage medium can be an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, a mechanical storage medium, or any suitable combination of the foregoing. Specific types of storage devices including these media include: magnetic disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital versatile disc (DVD), memory sticks, floppy disks, mechanical encoding devices (such as punched cards or pits / platforms formed in the main surface of the disk), or any suitable combination of the foregoing. As used in this disclosure, computer-readable storage medium refers to a non-transitory storage device rather than the transient signal itself, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides, optical pulses transmitted through fiber optic cables, and electrical signals transmitted through wires and / or other transmitting media. As those skilled in the art will understand, data typically moves at some incidental points in time during the normal operation of the storage device, such as during access, defragmentation, or garbage collection, but the storage device remains non-transitory during these processes because the data remains non-transitory while stored.

[0060] While the foregoing relates to embodiments of this disclosure, other and further embodiments may be devised without departing from the basic scope of this disclosure, the scope of which is defined by the appended claims.

Claims

1. An apparatus, the apparatus comprising: Printed circuit boards; A plurality of peripheral device controllers are mounted on the printed circuit board, each peripheral device controller including one or more registers and configured to control the operation of a corresponding peripheral device based on values ​​stored in the one or more registers; A bus, the bus being fixed to the printed circuit board and including one or more data lines, each of the one or more data lines being coupled to each of the plurality of peripheral device controllers; A memory, which is mounted on the printed circuit board; and A microcontroller, mounted on the printed circuit board and coupled to the memory and the bus, is configured to: Data is sent and received to each of the plurality of peripheral device controllers according to a static schedule, wherein for each cycle of the static schedule, each of the plurality of time windows is statically dedicated to exchanging data with each of the plurality of peripheral device controllers corresponding to each time window.

2. The apparatus according to claim 1, wherein: The bus also includes multiple chip select lines, each chip select line coupled to a peripheral device controller coupled to each chip select line in the plurality of peripheral device controllers; and The microcontroller is also configured to statically dedicate each peripheral controller's time window to enable each chip select line coupled to each peripheral controller during the multiple time windows.

3. The apparatus according to claim 1, wherein, The memory stores a scheduling table, and the microcontroller is configured to process entries in the scheduling table corresponding to each cycle and window of the static scheduling for each cycle and window of the static scheduling.

4. The apparatus according to claim 3, wherein, Each entry in the scheduling table stores a pointer that references a portion of the memory.

5. The apparatus according to claim 4, wherein, The scheduling table stores multiple pointers that reference data objects in the memory.

6. The apparatus according to claim 5, wherein, Each of the data objects includes data to be written to one or more registers of the peripheral device controllers among the plurality of peripheral device controllers.

7. The apparatus according to claim 5, wherein, Each of the data objects includes a tag, and the microcontroller is configured to process each data object only when the tag of each data object indicates that each data object is ready.

8. The apparatus of claim 5, further comprising a processing device coupled to the microcontroller, the processing device being configured to: The data object is written to the memory in response to instructions from one or more peripheral device drivers executed by the processing device.

9. The apparatus of claim 8, wherein the processing device is further configured to: The data object is written to the memory asynchronously relative to the static scheduling.

10. The apparatus of claim 1, further comprising the corresponding peripheral device corresponding to each of the plurality of peripheral device controllers, wherein the corresponding peripheral device is an electronically controllable component of a vehicle.

11. The apparatus according to claim 10, wherein, The corresponding peripheral device for each of the plurality of peripheral device controllers includes at least one of a light, a motor, or a valve.

12. A means of transport, the means of transport comprising: Chassis; Multiple suspensions are mounted to the chassis; Multiple wheels, the multiple wheels being mounted to the chassis; Multiple electronically controllable components are mounted on the chassis; A printed circuit board, which is mounted to the chassis; A plurality of peripheral device controllers are mounted on the printed circuit board, each peripheral device controller including one or more registers and configured to control the operation of a corresponding electronic controllable component among the plurality of electronic controllable components according to values ​​stored in the one or more registers; A bus, the bus being fixed to the printed circuit board and including one or more data lines, each of the one or more data lines being coupled to each of the plurality of peripheral device controllers; A memory, which is mounted on the printed circuit board; and A microcontroller, mounted on the printed circuit board and coupled to the memory and the bus, is configured to: Data is sent to and received from each of the plurality of peripheral device controllers according to a static schedule, wherein for each loop of the static schedule, each of the plurality of windows is statically dedicated to exchanging data with the peripheral device controller corresponding to each window among the plurality of peripheral device controllers.

13. The means of transport according to claim 12, wherein: The bus also includes multiple chip select lines, each chip select line coupled to a peripheral device controller among the multiple peripheral device controllers; and The microcontroller is also configured to enable each chip select line coupled to each peripheral controller during a window that is statically dedicated to each peripheral controller among the plurality of windows.

14. The means of transport according to claim 12, wherein, The memory stores a scheduling table, and the microcontroller is configured to process entries in the scheduling table corresponding to each cycle and window of the static scheduling for each cycle and window of the static scheduling.

15. The means of transport according to claim 14, wherein, Each entry in the scheduling table stores a pointer that references a portion of the memory.

16. The means of transport according to claim 14, wherein, The scheduling table stores multiple pointers that reference data objects in the memory.

17. The means of transport according to claim 16, wherein, Each of the data objects includes data to be written to one or more registers of the peripheral device controllers among the plurality of peripheral device controllers.

18. The means of transport according to claim 16, wherein, Each of the data objects includes a tag, and the microcontroller is configured to process each data object only when the tag of each data object indicates that each data object is ready.

19. The vehicle of claim 16, further comprising a processing device coupled to the microcontroller, the processing device being configured to: The data object is written to the memory in response to instructions from one or more peripheral device drivers executed by the processing device; in, The processing device is configured to write the data object to the memory asynchronously relative to the static schedule.

20. The means of transport according to claim 12, wherein, The plurality of electronically controllable components include at least one of a lamp, a motor, or a valve.