Master-slave platform cascading method, device, equipment and medium
By using a primary/backup platform cascading method and eight-wire communication, the problem of low data transmission efficiency between regional controllers was solved, achieving efficient and stable data transmission and resource expansion, and simplifying the communication process between system platforms.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2023-08-15
- Publication Date
- 2026-06-19
AI Technical Summary
In existing technologies, the data transmission efficiency of area controllers is relatively low. In particular, when the differences in communication interface and I/O interface requirements between different system platforms lead to insufficient resources, peripheral chips need to be added to expand the capacity, but this increases development time and complexity.
The primary and backup platforms are cascaded using a pre-defined eight-wire communication method. The primary platform to be cascaded and the backup platform are cascaded, and the primary platform controls the backup platform, including identifying the platform to be cascaded, setting pin levels, and establishing module communication connections, thereby improving data transmission efficiency.
It enables efficient data transmission between primary and backup platforms, simplifies communication between system platforms, reduces data transmission latency and software overhead, and maintains the stability of the software architecture.
Smart Images

Figure CN116880327B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of multi-chip cascading technology, and in particular to a method, apparatus, device and medium for cascading primary and backup platforms. Background Technology
[0002] As automotive electronic and electrical architectures evolve towards centralized computing, area controllers, as a core component, are finding increasingly widespread application. However, due to varying functional requirements and external device resources, different area controller designs face challenges such as unstable infrastructure and lengthy development times. For example, area controllers located in different parts of the vehicle, or even controllers in the same location across different vehicle models, will have different functional requirements. Area controllers require numerous peripheral resources, including abundant communication interfaces and support for a large number of I / O interfaces. When the resources of any system platform (or chip) within the area controller cannot meet the requirements, it is necessary to add peripheral chips to expand the I / O or communication interfaces.
[0003] In the existing technology, there is a situation where data transmission efficiency is low between any system platform in the area controller and peripheral chips. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and medium for cascading primary and backup platforms to achieve cascading between primary and backup platforms and improve data transmission efficiency between them.
[0005] According to one aspect of the present invention, a method for cascading primary and backup platforms is provided, comprising:
[0006] In response to the primary / backup platform cascading command, determine the primary platform to be cascaded in the vehicle;
[0007] Determine the backup system platform to be cascaded with the primary system platform to be cascaded;
[0008] According to a preset communication method, the primary system platform to be cascaded and the backup system platform to be cascaded are cascaded; wherein, the preset communication method is an eight-wire communication.
[0009] Based on the cascaded primary platform and the cascaded backup platform, the primary platform controls the backup platform.
[0010] According to another aspect of the present invention, a primary / standby platform cascading device is provided, comprising:
[0011] The primary platform determination module is used to determine the primary platform to be cascaded in the vehicle in response to the primary / backup platform cascading command.
[0012] The backup platform determination module is used to determine the backup platform to be cascaded corresponding to the primary platform to be cascaded.
[0013] The platform cascading module is used to cascade the primary system platform to be cascaded and the backup system platform to be cascaded according to a preset communication method; wherein, the preset communication method is an eight-wire communication.
[0014] The platform control module is used to control the backup platform to be cascaded based on the cascaded primary platform and the backup platform to be cascaded.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the primary / backup platform cascading method according to any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the primary / backup platform cascading method according to any embodiment of the present invention.
[0020] This invention provides a primary / backup platform cascading scheme. In response to a primary / backup platform cascading command, the system determines the primary platform to be cascaded in the vehicle; it also determines the corresponding backup platform to be cascaded; and cascades the primary and backup platforms according to a preset communication method, wherein the preset communication method is eight-wire communication. Based on the cascaded primary and backup platforms, the primary platform controls the backup platform. This scheme achieves cascading between primary and backup platforms by introducing a preset communication method; simultaneously, it improves data transmission efficiency between the primary and backup platforms by introducing eight-wire communication.
[0021] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a flowchart of a primary / backup platform cascading method provided in Embodiment 1 of the present invention;
[0024] Figure 2 This is a flowchart of a primary / backup platform cascading method provided in Embodiment 2 of the present invention;
[0025] Figure 3A This is a schematic diagram of a cascading arrangement between primary and backup platforms provided in Embodiment 3 of the present invention;
[0026] Figure 3B This is a schematic diagram of communication between the primary and backup platforms under the interrupt function in a cascading mode, as provided in Embodiment 3 of the present invention.
[0027] Figure 3C This is a schematic diagram of communication between modules in a cascaded system, provided in Embodiment 3 of the present invention, between a primary system platform to be cascaded and a backup system platform to be cascaded.
[0028] Figure 4 This is a schematic diagram of the structure of a primary and backup platform cascade device provided in Embodiment 4 of the present invention;
[0029] Figure 5 This is a schematic diagram of the structure of an electronic device that implements a primary and backup platform cascading method according to Embodiment 5 of the present invention. Detailed Implementation
[0030] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0031] Example 1
[0032] Figure 1 This is a flowchart of a primary and backup platform cascading method provided in Embodiment 1 of the present invention. This embodiment can be applied to the case of cascading between primary and backup platforms. The method can be executed by a primary and backup platform cascading device, which can be implemented in hardware and / or software. The device can be configured in an electronic device that carries the primary and backup cascading function.
[0033] See Figure 1 The primary / standby platform cascading method shown includes:
[0034] S110, in response to the primary / backup platform cascading command, determine the primary platform to be cascaded in the vehicle.
[0035] Among them, the primary and backup platform cascading command refers to the command used to instruct the primary and backup platforms to cascade. The primary platform to be cascaded refers to the primary platform that needs to be cascaded.
[0036] It should be noted that the embodiments of the present invention do not limit the types of the primary system platform and the backup system platform to be cascaded, and can be set by technicians based on experience. For example, the primary system platform and the backup system platform to be cascaded can be chips of the vehicle area controller.
[0037] S120. Determine the backup platform to be cascaded that corresponds to the primary platform to be cascaded.
[0038] Among them, the backup system platform to be cascaded refers to the backup system platform that needs to be cascaded.
[0039] The method for determining the primary and backup platforms to be cascaded in this embodiment of the invention is not limited in any way, and can be set by technicians based on experience. For example, the system platform (or chip) can be initialized, and the primary and backup platforms to be cascaded can be determined during the initialization process.
[0040] It should be noted that the master platform to be cascaded and the backup platform to be cascaded can be distinguished based on the different settings of the OSPI pins.
[0041] S130. According to the preset communication method, the primary system platform to be cascaded and the backup system platform to be cascaded are cascaded; wherein, the preset communication method is eight-wire communication.
[0042] The preset communication mode refers to the communication mode that is set in advance. Eight-wire communication refers to communication with eight wires for data transmission.
[0043] Specifically, according to the preset communication method, the primary system platform to be cascaded and the backup system platform to be cascaded are connected to realize the cascading of the primary system platform to be cascaded and the backup system platform to be cascaded.
[0044] S140. Based on the cascaded primary system platform and the cascaded backup system platform, realize the control of the cascaded backup system platform by the primary system platform.
[0045] In one optional embodiment, the control of the primary system platform to be cascaded and the backup system platform to be cascaded is realized by the primary system platform to be cascaded and the backup system platform to be cascaded, including: determining the primary system control module in the primary system platform to be cascaded; and realizing the control of the backup system platform to be cascaded based on the primary system control module.
[0046] The primary control module refers to the module in the primary platform to be cascaded that controls the backup platform to be cascaded. For example, the primary control module can be a CPU (Central Processing Unit).
[0047] Specifically, the primary control module in the primary system platform to be cascaded is determined; based on the primary control module, the backup system platform to be cascaded is controlled.
[0048] Understandably, by controlling the primary system's control module, the cascaded backup system platform can be directly controlled, eliminating the need for a control module within the cascaded backup system platform. This saves data transmission time and improves data transmission efficiency.
[0049] In this embodiment of the invention, after the cascading between the primary and backup platforms is completed, the primary platform to be cascaded can obtain data collected by sensors, logic level data, PWM (pulse width modulation) data, and communication and control data of other peripheral chips from the backup platform to be cascaded.
[0050] It should be noted that the backup platform to be cascaded can be replaced in this embodiment of the invention. For example, if the primary and backup platforms are chips, replacing the backup platform to be cascaded means replacing the backup chip to be cascaded and its peripheral chips.
[0051] In this embodiment of the invention, if the data to be read by the primary platform to be cascaded is connected to a pin of the backup platform to be cascaded, the primary platform to be cascaded will obtain the data from the backup platform to be cascaded. Specifically, the primary platform to be cascaded can send a data retrieval command to the backup platform to be cascaded; the backup platform to be cascaded can respond to the data retrieval command by feeding back the current state of its registers and the data corresponding to the data retrieval command to the primary platform to be cascaded. Here, the data retrieval command refers to the command used to retrieve data from the backup platform to be cascaded.
[0052] In this invention, the data transmission process between the cascaded primary and backup platforms can pass through the CPU module, XSPI module, corresponding registers (such as PWM registers), and RAM module in the primary platform to be cascaded, as well as the backup platform to be cascaded.
[0053] This invention provides a primary / backup platform cascading scheme. In response to a primary / backup platform cascading command, the system determines the primary platform to be cascaded in the vehicle; it also determines the corresponding backup platform to be cascaded; and cascades the primary and backup platforms according to a preset communication method, wherein the preset communication method is eight-wire communication. Based on the cascaded primary and backup platforms, the primary platform controls the backup platform. This scheme achieves cascading between primary and backup platforms by introducing a preset communication method; simultaneously, it improves data transmission efficiency between the primary and backup platforms by introducing eight-wire communication.
[0054] Based on the above technical solution, after determining the backup platform to be cascaded corresponding to the main platform to be cascaded, the method further includes: setting the level of the pins used for cascading in the main platform to be cascaded and the backup platform to be cascaded respectively according to the determined cascaded platform type, so as to distinguish between the main platform to be cascaded and the backup platform to be cascaded.
[0055] The cascading platform type refers to the type of platform to be cascaded. Specifically, the cascading platform type can include primary platform and backup platform.
[0056] Optionally, based on the determined cascading platform type, the voltage levels of the pins used for cascading in the primary platform and the backup platform to be cascaded are set separately to distinguish between the primary platform and the backup platform. This includes: if the cascading platform type is a primary platform, then the voltage levels of the primary pins to be cascaded in the primary platform are set to preset primary platform voltage levels; if the cascading platform is a backup platform, then the voltage levels of the primary pins to be cascaded in the primary platform are set to preset backup platform voltage levels; and the primary platform and the backup platform are distinguished based on the preset primary platform voltage levels and the preset backup platform voltage levels.
[0057] In this invention, the preset master system level data refers to the pre-set level data of the pins of the master system platform to be cascaded. The preset backup system level data refers to the pre-set level data of the pins of the backup system platform to be cascaded. This embodiment of the invention does not limit the specific values of the preset master system level data and the preset backup system level data; these can be set by a technician based on experience. For example, the preset master system level data can be 0000, and the preset backup system level data can be 0101.
[0058] Here, the pins of the master system to be cascaded refer to the pins of the master platform to be cascaded. The pins of the backup system to be cascaded refer to the pins of the backup platform to be cascaded. For example, the pins of the master system to be cascaded can be the boot pins in the master platform to be cascaded; the pins of the backup system to be cascaded can be the boot pins in the backup platform to be cascaded.
[0059] Specifically, if the cascaded platform type is a master platform, the level of the master pin in the master platform to be cascaded is set to the preset master level data; if the cascaded platform type is a backup platform, the level of the backup pin in the backup platform to be cascaded is set to the preset backup level data; the master platform to be cascaded and the backup platform to be cascaded are distinguished according to the preset master level data and the preset backup level data.
[0060] Understandably, by introducing preset master system level data and preset equipment system level data, the master system platform to be cascaded and the backup system platform to be cascaded are distinguished, avoiding confusion between the master system platform to be cascaded and the backup system platform to be cascaded, and improving the accuracy of the master system platform to be cascaded and the backup system platform to be cascaded.
[0061] Example 2
[0062] Figure 2 This is a flowchart of a primary / backup platform cascading method provided in Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further refines the step of "cascading the primary platform and the backup platform according to a preset communication method" into "determining the primary module to be cascaded in the primary platform and the backup module to be cascaded in the backup platform; establishing a communication connection between the primary module and the backup module according to a preset communication method, so as to cascade the primary platform and the backup platform," thereby improving the primary / backup platform cascading mechanism. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments.
[0063] See Figure 2 The primary / standby platform cascading scheme shown includes:
[0064] S210, in response to the primary / backup platform cascading command, determines the primary platform to be cascaded in the vehicle.
[0065] S220. Determine the backup platform to be cascaded that corresponds to the primary platform to be cascaded.
[0066] S230. Determine the primary system module to be cascaded in the primary system platform to be cascaded, and the backup system module to be cascaded in the backup system platform to be cascaded.
[0067] Here, the master system module to be cascaded refers to a module in the master system platform that can be used for cascading. For example, the master system module to be cascaded may include the Octal SPI module in the master system platform.
[0068] Here, the backup system module to be cascaded refers to a module in the backup system platform that can be used for cascading. For example, the backup system module to be cascaded may include the Octal SPI module in the backup system platform.
[0069] S240. Establish a communication connection between the primary system module to be cascaded and the backup system module to be cascaded according to the preset communication method, so as to cascade the primary system platform and the backup system platform to be cascaded.
[0070] In one optional embodiment, a communication connection is established between the primary system module to be cascaded and the backup system module to be cascaded according to a preset communication method, so that the primary system platform to be cascaded and the backup system platform to be cascaded are connected. This includes: initializing the data address in the backup system module to be cascaded in the backup system platform; and establishing a communication connection between the initialized backup system module and the primary system module to be cascaded according to the preset communication method, so that the primary system platform to be cascaded and the backup system platform to be cascaded are connected.
[0071] Understandably, initializing the data address improves the accuracy of the data address in the cascaded backup module after initialization.
[0072] In an optional embodiment, a communication connection is established between the initialized backup system module and the cascaded master system module according to a preset communication method, so that the cascaded master system platform and the cascaded backup system platform are cascaded. This includes: determining the backup system pins in the initialized backup system module and the master system pins in the cascaded master system module; and connecting the backup system pins and the master system pins according to the preset communication method, so that the cascaded master system platform and the cascaded backup system platform are cascaded.
[0073] Understandably, by using the pins of the primary system and the backup system to be cascaded, the cascading of the primary and backup platforms can be achieved, thereby improving the accuracy of cascading between the primary and backup platforms.
[0074] S250. Based on the cascaded primary system platform and the cascaded backup system platform, the primary system platform to be cascaded controls the backup system platform to be cascaded.
[0075] This invention provides a primary / backup platform cascading scheme. By refining the cascading steps of the primary and backup platforms according to a preset communication method, the scheme involves identifying the primary module to be cascaded in the primary platform and the backup module to be cascaded in the backup platform. A communication connection is then established between the primary and backup modules according to the preset communication method, thereby enabling the cascading of the primary and backup platforms and improving the primary / backup platform cascading mechanism. This scheme, by introducing the primary and backup modules to be cascaded, achieves cascading between the primary and backup platforms, improving the accuracy of cascading between them.
[0076] Based on the above technical solution, both the primary and backup platforms to be cascaded can detect faults themselves. When a fault occurs in the primary platform to be cascaded, it can be resolved according to its own diagnostic and protection mechanisms. When a fault occurs in the backup platform to be cascaded, the primary platform to be cascaded can be reset.
[0077] It should be noted that, in the embodiments of the present invention, the main system control module in the main system platform to be cascaded can control the backup system platform to be cascaded through the main system module to be cascaded and the backup system module to be cascaded.
[0078] When the primary platform to be cascaded and the backup platform to be cascaded are cascaded, the peripheral communication modules such as DMA / LIN / CAN / SPI / I2C / ADC / GPIO / I2S / USB in the backup platform to be cascaded, as well as the RAM module inside the backup platform to be cascaded, are cascaded.
[0079] Example 3
[0080] Based on the above embodiments, this invention provides an optional embodiment. It should be noted that for parts not described in detail in this invention's embodiments, please refer to the descriptions in other embodiments.
[0081] The current characteristic of master-slave platform cascading technology is that the instruction clock interface (SCK) of a single system platform is shared by all cascaded system platforms. The serial input (SDI) and serial output (SDO) are used as data communication ports. Data in the data transmission channel controlled by the instruction clock signal is transmitted synchronously. The Serial Peripheral Interface (SPI) protocol is in SDR (Single Data Rate) mode. In the SDR mode of the standard SPI protocol, data is transmitted only on a single edge of SCK, that is, one SCK clock only transmits one bit of data. This cannot meet the real-time requirements of some specific data types and increases the time cost of communication between system platforms.
[0082] In this embodiment of the invention, when the system platform is in cascade mode, the master platform to be cascaded (such as the master microcontroller unit MCU) and the backup platform to be cascaded (such as the slave microcontroller unit MCU) interconnect their internal buses through the Octal SPI communication module. For example, see [link to example]. Figure 3AThe diagram illustrates the cascading between the primary and backup platforms. The most common communication methods in the Octal SPI module include four-wire SDR mode and eight-wire DDR mode. When the expanded resources do not have real-time requirements, the four-wire SDR mode can be selected to save I / O resources; if the expanded resources have high real-time requirements, the eight-wire DDR mode is used. Through this link, the RAM and registers inside the backup platform to be cascaded can be directly accessed, such as the ADC register and GPIO register. For the CPU in the primary platform to be cascaded, accessing the RAM and registers inside the primary platform is no different from the primary platform accessing the RAM and registers inside the backup platform. The advantage of this is that the primary platform can access the resources of the backup platform without needing additional drivers, thus avoiding new software overhead, resulting in faster speed and lower latency. The entire system's basic software and applications run on the CPU of the primary platform to be cascaded, approximating the use of only one system platform, maintaining the stability of the software architecture.
[0083] In this embodiment of the invention, for peripherals requiring interrupt functionality, the cascading mode also supports transferring interrupts from the backup platform to the CPU in the host platform via I / O. For example, see [link to example]. Figure 3B The diagram illustrates communication between the primary and backup platforms under interrupt functionality in cascading mode. When a functional module in the backup platform generates an interrupt, it notifies the CPU in the backup platform via its interrupt controller. This CPU then controls one or more GPIO modules to send a level signal to the GPIO modules in the primary platform. Upon receiving this signal, the GPIO modules in the primary platform generate an interrupt request to the interrupt controller, thus transmitting the interrupt from the backup platform to the primary platform. When the number of interrupt-supporting modules is small, each module can use a separate GPIO signal, allowing the primary platform to directly access the corresponding functional module in the backup platform upon receiving an interrupt. When the number of interrupt-supporting modules is large, multiple GPIO modules can share a single GPIO signal, with the primary platform determining the interrupt source by querying the address. During cascading mode, to ensure high response speed and real-time, accurate communication, [further details are needed]. High-speed signals such as Ethernet and CAN communications need to be placed on the cascaded master platform, as do peripherals that require fast response, such as PWM and ADC for motor control. Low-speed signals and communications can be placed on the cascaded backup platform as much as possible.
[0084] In this embodiment of the invention, before performing cascading communication, the system platform to be cascaded is first initialized, so that it starts in either the primary platform to be cascaded or the backup platform to be cascaded. The backup platform's mode version program is retrieved from the FLASH module in the primary platform to be cascaded or from an external FLASH and written to the RAM of the backup platform to be cascaded. After writing is completed, the ROM in the backup platform to be cascaded is notified. When the backup module to be cascaded receives the transmission completion flag, the primary platform to be cascaded and the backup platform to be cascaded enter the cascading mode.
[0085] For example, see Figure 3C The diagram illustrates the communication between modules in a cascaded system between the master platform and the backup platform. The communication modules between the master and backup platforms primarily include the Octal SPI module and the GPIO module.
[0086] The MCU_OSPI_DQS signal is a data strobe signal, indicating that the output data is valid and requiring support for high-speed data output. It is used for reading but not for writing operations and is an input signal in the host platform to be cascaded. The MCU_OSPI_CLK signal is a clock signal, used to provide timing, command, address, or data input for the serial interface. This clock signal is provided by the host platform to be cascaded and is an output signal in the host platform. The MCU_OSPI_CE signal is a system platform selection signal, used to enable and disable device operations by outputting high and low levels from the host platform to be cascaded. Theoretically, any I / O resource on the host platform to be cascaded can be used as a chip select pin, thereby realizing 1-to-N cascaded communication. MCU_OSPI_DATA0~7 are serial I / O signals used for bidirectional transmission of address, data, and commands. In the extended SPI protocol, DATA0 can be used as the command output of the cascaded master platform. Address and data transmission on MCU_OSPI_DATA0~7 depend on the output command. Address and write data can be latched on the rising edge of the clock signal (SDR) or on both edges of the clock signal (DDR). Output data can be shifted out (DDR) on the falling edge of the clock signal (SDR) or on both edges of the clock signal. In the octal DDR protocol, MCU_OSPI_DATA0~7 are always used as I / O, and the output latched on the two edges of the clock signal is shifted out. MCU_OSPI_DATA2 is also used for write protection control. The MCU_ERR signal is an ECC error indication signal used to indicate the occurrence of an ECC (Error Correcting Code) event. When it occurs, the gate is turned on, and an external pull-up is required when using the ERR signal. The MCU_INT signal is an interrupt signal sent to the master platform via a GPIO pin when the functional module of the backup platform to be cascaded generates an interrupt request. Upon receiving this interrupt signal, the GPIO module of the master platform to be cascaded generates an interrupt request to its interrupt controller, thus enabling the transmission of interrupts from the backup platform to the master platform. The MCU_POWERSYNC signal is a power-on synchronization signal, used to send a level signal to the master platform to be cascaded after the backup platform to be cascaded is powered on. When this level signal is high and recognized by the master platform to be cascaded, both the master platform and the backup platform to be cascaded are in a power-on synchronized state. When multiple backup platforms to be cascaded are available, to save I / O resources, the MCU_POWERSYNC signal of the backup platform to be cascaded can be used as a gate circuit connected to the I / O pin of one of the master platforms to be cascaded.
[0087] This invention provides a primary / backup platform cascading scheme. When the resources of the primary platform to be cascaded in an automotive area controller cannot meet the requirements, it expands the I / O or communication interfaces by adding peripheral system platforms, thus improving applicability. This invention adopts Octal SPI communication, which can select DDR mode. This mode transmits data on both the rising and falling edges of the SCK clock, meaning one SCK clock cycle can transmit two bits of data, doubling the transmission rate and improving the real-time performance of data transmission. For peripheral system platforms requiring interrupt functionality, this invention supports passing interrupts from the backup platform to the primary control module (such as the CPU module) in the primary platform via I / O. This invention cascades multiple system platforms, allowing the primary platform to directly access the resources of the backup platform without needing additional drivers, thus avoiding new software overhead, improving data transmission speed and efficiency, and preventing data latency. In this embodiment of the invention, the basic software and application programs of the entire system run within the main system control module of the cascaded main system platform, which is approximately equivalent to using only one system platform, thus maintaining the stability of the software architecture. The circuit structure of this embodiment is simple, requires no other hardware topology, is low-cost, and the high speed and high transmission efficiency reduce control time overhead.
[0088] Example 4
[0089] Figure 4 This is a schematic diagram of a primary / backup platform cascading device provided in Embodiment 4 of the present invention. This embodiment is applicable to the cascading of primary and backup platforms. The method can be executed by a primary / backup platform cascading device, which can be implemented in hardware and / or software. This device can be configured in an electronic device that carries the primary / backup cascading function.
[0090] like Figure 4 As shown, the device includes: a primary platform determination module 410, a backup platform determination module 420, a platform cascading module 430, and a platform control module 440. Among them,
[0091] The primary platform determination module 410 is used to determine the primary platform to be cascaded in the vehicle in response to the primary / backup platform cascading command.
[0092] Backup platform determination module 420 is used to determine the backup platform to be cascaded corresponding to the primary platform to be cascaded.
[0093] The platform cascading module 430 is used to cascade the primary system platform to be cascaded and the backup system platform to be cascaded according to a preset communication method; wherein, the preset communication method is an eight-wire communication.
[0094] The platform control module 440 is used to control the backup platform to be cascaded from the primary platform to be cascaded and the backup platform to be cascaded, based on the cascaded primary platform and the backup platform to be cascaded.
[0095] This invention provides a primary / backup platform cascading scheme. In response to a primary / backup platform cascading command, the system determines the primary platform to be cascaded in the vehicle; it also determines the corresponding backup platform to be cascaded; and cascades the primary and backup platforms according to a preset communication method, wherein the preset communication method is eight-wire communication. Based on the cascaded primary and backup platforms, the primary platform controls the backup platform. This scheme achieves cascading between primary and backup platforms by introducing a preset communication method; simultaneously, it improves data transmission efficiency between the primary and backup platforms by introducing eight-wire communication.
[0096] Optional, the platform cascading module 430 includes:
[0097] A cascading module determination unit is used to determine the main system module to be cascaded in the main system platform to be cascaded, and the backup system module to be cascaded in the backup system platform to be cascaded.
[0098] The platform cascading unit is used to establish a communication connection between the primary system module to be cascaded and the backup system module to be cascaded according to the preset communication method, so as to cascade the primary system platform to be cascaded and the backup system platform to be cascaded.
[0099] Optional, platform cascading units include:
[0100] An initialization subunit is used to initialize the data addresses in the backup modules to be cascaded in the backup platform.
[0101] The platform cascading subunit is used to establish a communication connection between the initialized backup system module to be cascaded and the master system module to be cascaded according to the preset communication method, so as to cascade the master system platform to be cascaded with the backup system platform to be cascaded.
[0102] Optional, platform cascade subunits include:
[0103] The cascading pin determination slave unit is used to determine the cascading backup system pins in the cascading backup system module after initialization, as well as the cascading master system pins in the cascading master system module.
[0104] The platform cascading slave unit is used to connect the pin of the backup system to be cascaded and the pin of the master system to be cascaded according to the preset communication method, so as to cascade the master system platform to be cascaded with the backup system platform to be cascaded.
[0105] Optionally, after the backup platform determination module 420, the device further includes:
[0106] The platform differentiation module is used to set the level of the pins used for cascading in the master platform to be cascaded and the backup platform to be cascaded, respectively, according to the determined cascaded platform type, so as to distinguish between the master platform to be cascaded and the backup platform to be cascaded.
[0107] Optionally, the platform can be divided into modules, including:
[0108] The master level data setting unit is used to set the level of the master pin to be cascaded in the master platform to a preset master level data if the cascaded platform type is a master platform.
[0109] The backup system level data setting unit is used to set the level of the backup system pin in the backup system platform to be cascaded to the preset backup system level data if the cascaded platform type is a backup system platform.
[0110] The platform differentiation unit is used to differentiate the main system platform to be cascaded and the backup system platform to be cascaded based on the preset main system level data and the preset backup system level data.
[0111] Optionally, the platform control module 440 includes:
[0112] The main system control module determination unit is used to determine the main system control module in the cascaded main system platform;
[0113] The control unit is used to control the backup system platform to be cascaded, based on the main system control module.
[0114] The primary and backup platform cascading device provided in the embodiments of the present invention can execute the primary and backup platform cascading method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing each primary and backup platform cascading method.
[0115] In the technical solution of this invention, the collection, storage, use, processing, transmission, provision and disclosure of the main and backup platform cascading instructions and preset communication methods all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0116] Example 5
[0117] Figure 5This is a schematic diagram of an electronic device for implementing a primary / backup platform cascading method according to Embodiment 5 of the present invention. Electronic device 510 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Switching devices can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0118] like Figure 5 As shown, the switching device 510 includes at least one processor 511 and a memory, such as a read-only memory (ROM) 512 or a random access memory (RAM) 513, communicatively connected to the at least one processor 511. The memory stores computer programs executable by the at least one processor. The processor 511 can perform various appropriate actions and processes based on the computer program stored in the ROM 512 or loaded from storage unit 518 into the RAM 513. The RAM 513 may also store various programs and data required for the operation of the switching device 510. The processor 511, ROM 512, and RAM 513 are interconnected via a bus 514. An input / output (I / O) interface 515 is also connected to the bus 514.
[0119] Multiple components in the switching device 510 are connected to the I / O interface 515, including: an input unit 516, such as a keyboard, mouse, etc.; an output unit 517, such as various types of displays, speakers, etc.; a storage unit 518, such as a disk, optical disk, etc.; and a communication unit 519, such as a network card, modem, wireless transceiver, etc. The communication unit 519 allows the switching device 510 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0120] Processor 511 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 511 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 511 performs the various methods and processes described above, such as the primary / backup platform cascading method.
[0121] In some embodiments, the primary / backup platform cascading method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 518. In some embodiments, part or all of the computer program may be loaded and / or installed on the switching device 510 via ROM 512 and / or communication unit 519. When the computer program is loaded into RAM 513 and executed by processor 511, one or more steps of the primary / backup platform cascading method described above may be performed. Alternatively, in other embodiments, processor 511 may be configured to perform the primary / backup platform cascading method by any other suitable means (e.g., by means of firmware).
[0122] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0124] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0125] To provide interaction with the user, the systems and techniques described herein can be implemented on a switching device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the switching device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0126] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0127] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0128] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0129] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for cascading primary and backup platforms, characterized in that, include: In response to the primary / backup platform cascading command, determine the primary platform to be cascaded in the vehicle; Determine the backup system platform to be cascaded with the primary system platform to be cascaded; According to a preset communication method, the primary system platform to be cascaded and the backup system platform to be cascaded are cascaded; wherein, the preset communication method is an eight-wire communication. Based on the cascaded primary system platform and the cascaded backup system platform, the primary system platform controls the backup system platform. After determining the backup platform to be cascaded corresponding to the primary platform to be cascaded, the method further includes: Based on the determined cascading platform type, the level of the pins used for cascading in the main system platform to be cascaded and the backup system platform to be cascaded are set respectively to distinguish between the main system platform to be cascaded and the backup system platform to be cascaded. The step of setting the voltage levels of the pins used for cascading in the primary platform and the backup platform to be cascaded, respectively, according to the determined cascading platform type, to distinguish between the primary platform and the backup platform, includes: If the cascaded platform type is a master platform, then the level of the master pin to be cascaded in the master platform to be cascaded is set to the preset master level data; If the cascaded platform type is a backup platform, then the level of the backup pin in the backup platform to be cascaded is set to the pre-set backup level data. Based on the preset master system level data and the preset backup system level data, the master system platform to be cascaded and the backup system platform to be cascaded are distinguished.
2. The method of claim 1, wherein, The step of cascading the primary system platform to be cascaded and the backup system platform to be cascaded according to a preset communication method includes: Identify the primary system module to be cascaded in the primary system platform to be cascaded, and the backup system module to be cascaded in the backup system platform to be cascaded; According to the preset communication method, a communication connection is established between the primary system module to be cascaded and the backup system module to be cascaded, so that the primary system platform to be cascaded and the backup system platform to be cascaded are connected.
3. The method of claim 2, wherein, The step of establishing a communication connection between the primary system module to be cascaded and the backup system module to be cascaded according to the preset communication method, so as to enable the primary system platform to be cascaded and the backup system platform to be cascaded, includes: Initialize the data addresses in the backup module of the backup system platform to be cascaded; According to the preset communication method, a communication connection is established between the initialized backup system module to be cascaded and the master system module to be cascaded, so that the master system platform to be cascaded and the backup system platform to be cascaded are connected.
4. The method of claim 3, wherein, The step of establishing a communication connection between the initialized backup system module and the primary system module to be cascaded according to the preset communication method, so as to enable the primary system platform to be cascaded and the backup system platform to be cascaded, includes: Determine the pins of the backup system to be cascaded in the initialized backup system module, and the pins of the master system to be cascaded in the master system module; According to the preset communication method, the pin of the backup system to be cascaded and the pin of the master system to be cascaded are connected so that the master system platform to be cascaded and the backup system platform to be cascaded are cascaded.
5. The method of claim 1, wherein, The step of controlling the backup platform to be cascaded from the primary platform to be cascaded, based on the cascaded primary platform and the backup platform to be cascaded, includes: Determine the master system control module in the master system platform to be cascaded; Based on the main system control module, the control of the backup system platform to be cascaded is realized.
6. A master-slave platform cascading apparatus for performing the master-slave platform cascading method of any one of claims 1-5, characterized in that, include: The primary platform determination module is used to determine the primary platform to be cascaded in the vehicle in response to the primary / backup platform cascading command. The backup platform determination module is used to determine the backup platform to be cascaded corresponding to the primary platform to be cascaded. The platform cascading module is used to cascade the primary system platform to be cascaded and the backup system platform to be cascaded according to a preset communication method; wherein, the preset communication method is an eight-wire communication. The platform control module is used to control the backup platform to be cascaded based on the cascaded primary platform and the backup platform to be cascaded.
7. An electronic device, comprising: include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a primary / backup platform cascading method as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a primary / backup platform cascading method as described in any one of claims 1-5.
Citation Information
Patent Citations
Multi-chip interconnection system and method thereof
CN114880267A
Data transmission control method, controller and electronic equipment
CN115858431A