Method and system for realizing modular interaction between SOC and vehicle body CAN based on MCU

The modular interaction between SOC and body CAN is achieved through the MCU, which solves the problem of signal errors and chaos when the SOC and body CAN are directly interacted. The modular interaction method is adopted to ensure the accuracy and stability of signal transmission.

CN118944999AInactive Publication Date: 2024-11-12重庆蓝鲸智联科技有限公司
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410908687.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-12
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the process of the development of automotive intelligence and networking, the direct interactive communication between SOC and body CAN is prone to errors and chaos, resulting in unstable signal transmission.

Method used

Using the modular interaction method based on MCU, the scheduling framework is initialized by reading the CAN communication configuration file, the process communication interaction link is established, and the CAN data packet is triggered after the data interaction is completed, and the CAN network node in the vehicle body is answered to ensure the accuracy of signal transmission. sex.

Benefits of technology

Through the MCU as the intermediate layer, the SOC is isolated from the vehicle body CAN and adopts a modular interaction method to avoid communication errors and chaos between signals, and improve the accuracy and stability of signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944999A_ABST
    Figure CN118944999A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automobiles, in particular to a method and a system for realizing modular interaction between an SOC (system on chip) and an automobile body CAN (controller area network) based on an MCU (microprogrammed control unit). The modular interaction method comprises the following steps: initializing a scheduling framework according to a configuration file; running the application process, and establishing a process communication interaction link according to the scheduling framework; after data interaction is completed, CAN data packet sending is triggered; waiting for the response of the CAN network node of the vehicle body, completing the interaction configuration file reading module for reading a CAN communication configuration file, and initializing a scheduling framework; the running module is used for running an application process and establishing a process communication interaction link; the data packet triggering module is used for triggering CAN data packet sending after data interaction is completed; the detection module is used for waiting for the response of the vehicle body CAN network node to complete interaction; by adopting the mode, isolation processing of the SOC and the vehicle body CAN is realized, and communication errors and confusion between signals are avoided by adopting a modular interaction mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to a modular interaction method and system for realizing SOC and vehicle body CAN based on MCU. Background Art

[0002] MCU (microcontroller) integrates various circuits on a single chip to form a chip-level computer, which can perform different combination controls for different applications. With the development of automobile intelligence and networking, the body electronic system is becoming more and more complex. In the IVI control domain, there is an interactive logic between the SOC (system-on-chip) and the body CAN (controller area network) signal, but because there are multiple control units in the body control domain, such as the body controller (BCM), it controls the interior lights, exterior lights, door control, seats and other functional modules.

[0003] In the above control process, SOC directly interacts and communicates with the vehicle body CAN, and communication between signals is prone to errors and confusion; therefore, it is very necessary to propose a modular interaction method and system between SOC and vehicle body CAN based on MCU, which can isolate SOC and vehicle body CAN and avoid communication errors and confusion between signals. Summary of the invention

[0004] The purpose of the present invention is to provide a modular interaction method and system for SOC and vehicle body CAN based on MCU, aiming to solve the technical problem in the prior art that SOC directly interacts and communicates with vehicle body CAN, and the communication between signals is prone to errors and confusion.

[0005] To achieve the above purpose, the present invention adopts a modular interaction method based on MCU to realize SOC and vehicle body CAN, which includes the following steps:

[0006] Read the CAN communication configuration file and initialize the scheduling framework according to the configuration file;

[0007] Run the application process and establish process communication interaction links based on the scheduling framework;

[0008] Wait for data interaction to complete before triggering CAN data packet sending;

[0009] Wait for the body CAN network node to respond and complete the interaction.

[0010] Among them, in the step of reading the CAN communication configuration file and initializing the scheduling framework according to the configuration file, the process of initializing the scheduling framework is:

[0011] Establishing a scheduling framework;

[0012] Create a scheduler instance according to the parameters of the configuration file;

[0013] Use the scheduler instance to initialize the data, including cache and queue;

[0014] Load the initialization scheduling algorithm to perform communication pre-matching and priority sorting.

[0015] Among them, in the step of running the application process and establishing a process communication interactive link according to the scheduling framework:

[0016] Preset communication configuration file division definition;

[0017] Classify and process the read data according to the division and positioning;

[0018] Transfer read data.

[0019] Among them, in the step of triggering the sending of CAN data packets after waiting for data interaction to be completed:

[0020] Send process connection data packet;

[0021] Check whether data interaction is completed.

[0022] Among them, in the step of querying whether the data interaction is completed:

[0023] When the data interaction is completed, the CAN data packet is triggered to be sent;

[0024] When it is determined that the data interaction step is not completed, the process connection data packet continues to be sent.

[0025] Among them, in the step of waiting for the body CAN network node to respond and complete the interaction:

[0026] According to the scheduling framework, the response data is received in cycles.

[0027] Among them, in the step of waiting for the body CAN network node to respond and complete the interaction:

[0028] When a correct response is received, it is confirmed that the CAN data packet is successfully transmitted to the vehicle body CAN network;

[0029] When a correct response is not received, an alarm is issued.

[0030] The present invention also provides a modular interaction system for realizing SOC and vehicle body CAN based on MCU, including a configuration file reading module, an operation module, a data packet triggering module, and a detection module, wherein:

[0031] The configuration file reading module is used to read the CAN communication configuration file and initialize the scheduling framework according to the configuration file;

[0032] The running module is used to run the application process and establish a process communication interaction link according to the scheduling framework;

[0033] The data packet triggering module is used to trigger the sending of the CAN data packet after waiting for the data interaction to be completed;

[0034] The detection module is used to wait for the vehicle body CAN network node to respond and complete the interaction.

[0035] The present invention provides a modular interaction method and system for SOC and vehicle body CAN based on MCU, which reads a CAN communication configuration file and initializes a scheduling framework according to the configuration file; runs an application process and establishes a process communication interaction link according to the scheduling framework; triggers the sending of a CAN data packet after waiting for data interaction to be completed; waits for the vehicle body CAN network node to respond and completes the interaction; adopts the configuration file reading module to read the CAN communication configuration file and initializes the scheduling framework according to the configuration file; the running module is used to run the application process and establishes a process communication interaction link according to the scheduling framework; the data packet triggering module is used to trigger the sending of the CAN data packet after waiting for data interaction to be completed; the detection module is used to wait for the vehicle body CAN network node to respond and complete the interaction; uses the MCU microcontroller as the middle layer to perform modular interaction on the communication between the SOC and the vehicle body CAN; through the above method, the SOC and the vehicle body CAN are isolated and processed, and a modular interaction method is adopted to avoid communication errors and confusion between signals. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0037] Figure 1 It is a schematic diagram of the steps of the modular interaction method between SOC and vehicle body CAN based on MCU of the present invention.

[0038] Figure 2 It is a flowchart of the steps of the modular interaction method between SOC and vehicle body CAN based on MCU of the present invention.

[0039] Figure 3 It is a flow chart of the steps of the initialization scheduling framework of the present invention.

[0040] Figure 4 It is a schematic diagram of the principle of the modular interaction system between SOC and vehicle body CAN based on MCU of the present invention.

[0041] Figure 5 It is a structural schematic diagram of a modular interactive device based on MCU to realize SOC and vehicle body CAN of the present invention.

[0042] 501 - configuration file reading module, 502 - operation module, 503 - data packet triggering module, 504 - detection module, 601 - processor, 602 - memory, 603 - communication interface, 604 - bus. DETAILED DESCRIPTION

[0043] First, see Figure 1 to Figure 3 ,in Figure 1 This is a schematic diagram of the steps of implementing a modular interaction method between SOC and vehicle body CAN based on MCU. Figure 2 This is a flowchart of the steps of the modular interaction method between SOC and vehicle body CAN based on MCU. Figure 3 It is a flow chart of the steps to initialize the scheduling framework.

[0044] The present invention provides a modular interaction method between SOC and vehicle body CAN based on MCU, comprising the following steps:

[0045] S100: Read the CAN communication configuration file and initialize the scheduling framework according to the configuration file;

[0046] In this embodiment, the CAN communication configuration file is first read, and the scheduling framework is initialized according to the configuration file; the process of initializing the scheduling framework is: S101: establishing a scheduling framework; S102: creating a scheduler instance according to the parameters of the configuration file; S103: using the scheduler instance to initialize the data; the initialization includes cache and queue; S104: loading the initialization scheduling algorithm, performing communication pre-matching and priority sorting.

[0047] S200: running the application process and establishing a process communication interaction link according to the scheduling framework;

[0048] In this embodiment, the application process is then run, and a process communication interaction link is established according to the scheduling framework; the specific process is: presetting the communication configuration file division definition; classifying and processing the read data according to the division positioning; and transmitting the read data.

[0049] S300: Waiting for data interaction to complete and then triggering CAN data packet sending;

[0050] In this embodiment, the CAN data packet is then triggered to be sent after the data interaction is completed; the specific process is: sending a process connection data packet; checking whether the data interaction is completed; when the data interaction is completed, triggering the CAN data packet to be sent; when it is determined that the data interaction step is not completed, continuing to send the process connection data packet. The data packet contains data obtained from the SOC or other sensors, as well as control instructions and other information.

[0051] S400: According to the scheduling framework, the response data is received in cycles, the response of the vehicle body CAN network node is waited for, and the response status is determined to complete the interaction.

[0052] In this embodiment, finally according to the scheduling framework, the response data is received in cycles, waiting for the response from the vehicle body CAN network node, and the response status is judged to complete the interaction; when the correct response is received, it is confirmed that the CAN data packet is successfully transmitted to the vehicle body CAN network; when the correct response is not received, a warning is issued.

[0053] First, the CAN communication configuration file is read, and the scheduling framework is initialized according to the configuration file; the process of initializing the scheduling framework is as follows: establish the scheduling framework; create a scheduler instance according to the parameters of the configuration file; use the scheduler instance to initialize the data; the initialization includes cache and queue; load the initialization scheduling algorithm, perform communication pre-matching and priority sorting. Then run the application process, establish the process communication interaction link according to the scheduling framework; preset the definition of the communication configuration file division; classify and process the read data according to the division positioning; transmit the read data. Then wait for the data interaction to be completed and trigger the sending of the CAN data packet; send the process connection data packet; query whether the data interaction is completed; when the data interaction is completed, trigger the sending of the CAN data packet; when it is judged that the data interaction step is not completed, continue to send the process connection data packet; the data packet contains the data obtained from the SOC or other sensors, as well as control instructions and other information. Finally, according to the scheduling framework, receive the response data in cycles, wait for the response of the vehicle body CAN network node, and judge the response status to complete the interaction; when the correct response is received, it is confirmed that the CAN data packet has been successfully transmitted to the vehicle body CAN network; when the correct response is not received, a warning is issued. Through the above method, the SOC and the vehicle body CAN are isolated and processed, and a modular interaction method is adopted to avoid communication errors and confusion between signals.

[0054] Second, see Figure 4 ,in Figure 4 It is a schematic diagram of the principle of a modular interactive system between SOC and vehicle body CAN based on MCU.

[0055] The present invention also provides a modular interaction system for realizing SOC and vehicle body CAN based on MCU, including a configuration file reading module 501, an operation module 502, a data packet triggering module 503, and a detection module 504, wherein:

[0056] The configuration file reading module 501 is used to read the CAN communication configuration file and initialize the scheduling framework according to the configuration file;

[0057] The running module 502 is used to run the application process and establish a process communication interaction link according to the scheduling framework;

[0058] The data packet triggering module 503 is used to trigger the sending of the CAN data packet after waiting for the data interaction to be completed;

[0059] The detection module 504 is used to wait for the vehicle body CAN network node to respond and complete the interaction.

[0060] In this embodiment, the configuration file reading module 501 reads the CAN communication configuration file and initializes the scheduling framework according to the configuration file; the running module 502 runs the application process and establishes a process communication interaction link according to the scheduling framework; the data packet triggering module 503 waits for the data interaction to be completed and then triggers the sending of the CAN data packet; the detection module 504 waits for the body CAN network node to respond and completes the interaction; with the MCU microcontroller as the middle layer, the communication between the SOC and the body CAN is modularly interacted.

[0061] The configuration file reading module 501, the running module 502, the data packet triggering module 503, and the detection module 504 are used to perform a modular interaction method: first, the CAN communication configuration file is read, and the scheduling framework is initialized according to the configuration file; wherein the process of initializing the scheduling framework is: setting up the scheduling framework; creating a scheduler instance according to the parameters of the configuration file; initializing the data using the scheduler instance; wherein the initialization includes cache and queue; loading the initialization scheduling algorithm, performing communication pre-matching and priority sorting. Then the application process is run, and a process communication interaction link is established according to the scheduling framework; wherein the communication configuration file division definition is preset; the read data is classified and processed according to the division positioning; and the read data is transmitted. Then, the CAN data packet is triggered to be sent after the data interaction is completed; wherein the process connection data packet is sent; and whether the data interaction is completed is queried; when the data interaction is completed, the CAN data packet is triggered to be sent; when it is determined that the data interaction step is not completed, the process connection data packet is continued to be sent; wherein the data packet contains data obtained from the SOC or other sensors, as well as control instructions and other information. Finally, according to the scheduling framework, the response data is received in cycles, waiting for the response from the vehicle body CAN network node, and the response status is judged to complete the interaction; when the correct response is received, it is confirmed that the CAN data packet has been successfully transmitted to the vehicle body CAN network; when the correct response is not received, a warning is issued. Through the above method, the SOC and the vehicle body CAN are isolated and processed, and a modular interaction method is adopted to avoid communication errors and confusion between signals.

[0062] Third, see Figure 5 , Figure 5 The schematic diagram of the structure of the modular interaction device based on MCU to realize SOC and vehicle body CAN provided by the present invention. The modular interaction device based on MCU to realize SOC and vehicle body CAN is used to execute the modular interaction method based on MCU to realize SOC and vehicle body CAN. Figure 5 The modular interaction device based on MCU to implement SOC and vehicle body CAN in this embodiment may include: one or more processors 601 and memory 602. Optionally, the modular interaction device based on MCU to implement SOC and vehicle body CAN may also include one or more communication interfaces 603. The processor 601, communication interface 603 and memory 602 may be connected via a bus 604, or may be connected in other ways. Figure 5 The bus mode is used as an example.

[0063] The processor 601 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0064] The communication interface 603 can be used for the interaction of sending and receiving information or signaling, as well as the reception and transmission of signals. The communication interface 603 may include a receiver and a transmitter for communicating with other devices. The memory 602 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and a storage program required for at least one function (such as a text storage function, a position storage function, etc.); the data storage area may store data (such as image data, text data) created according to the use of the processor 601, etc., and may include application storage programs, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0065] The memory 602 is also used to store program instructions. The processor 601 can call the program instructions stored in the memory 602 to implement a modular interaction device based on MCU to implement SOC and vehicle body CAN as shown in the embodiment of the present invention.

[0066] The processor 601 may be configured to call the program instructions to execute the following steps:

[0067] Read the CAN communication configuration file and initialize the scheduling framework according to the configuration file;

[0068] Run the application process and establish process communication interaction links based on the scheduling framework;

[0069] Wait for data interaction to complete before triggering CAN data packet sending;

[0070] Wait for the body CAN network node to respond and complete the interaction.

[0071] First, the CAN communication configuration file is read, and the scheduling framework is initialized according to the configuration file; the process of initializing the scheduling framework is as follows: establish the scheduling framework; create a scheduler instance according to the parameters of the configuration file; use the scheduler instance to initialize the data; the initialization includes cache and queue; load the initialization scheduling algorithm, perform communication pre-matching and priority sorting. Then run the application process, establish the process communication interaction link according to the scheduling framework; preset the definition of the communication configuration file division; classify and process the read data according to the division positioning; transmit the read data. Then wait for the data interaction to be completed and trigger the sending of the CAN data packet; send the process connection data packet; query whether the data interaction is completed; when the data interaction is completed, trigger the sending of the CAN data packet; when it is judged that the data interaction step is not completed, continue to send the process connection data packet; the data packet contains the data obtained from the SOC or other sensors, as well as control instructions and other information. Finally, according to the scheduling framework, receive the response data in cycles, wait for the response of the vehicle body CAN network node, and judge the response status to complete the interaction; when the correct response is received, it is confirmed that the CAN data packet has been successfully transmitted to the vehicle body CAN network; when the correct response is not received, a warning is issued. Through the above method, the SOC and the vehicle body CAN are isolated and processed, and a modular interaction method is adopted to avoid communication errors and confusion between signals.

[0072] What is disclosed above is only a preferred embodiment of the present invention, and it certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiment and equivalent changes made according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A modular interaction method between SOC and vehicle body CAN based on MCU, characterized in that: The steps include: Read the CAN communication configuration file and initialize the scheduling framework according to the configuration file; Run the application process and establish process communication interaction links based on the scheduling framework; Wait for data interaction to complete before triggering CAN data packet sending; Wait for the body CAN network node to respond and complete the interaction.

2. The modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 1, characterized in that: In the step of reading the CAN communication configuration file and initializing the scheduling framework according to the configuration file, the process of initializing the scheduling framework is: Establishing a scheduling framework; Create a scheduler instance according to the parameters of the configuration file; Use the scheduler instance to initialize the data, including cache and queue; Load the initialization scheduling algorithm to perform communication pre-matching and priority sorting.

3. The modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 1, characterized in that: When running an application process, in the steps of establishing a process communication interaction link according to the scheduling framework: Preset communication configuration file division definition; Classify and process the read data according to the division and positioning; Transfer read data.

4. The modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 1, characterized in that: In the step of triggering CAN data packet sending after waiting for data interaction to complete: Send process connection data packet; Check whether data interaction is completed.

5. The modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 4 is characterized in that: In the step of querying whether data interaction is completed: When the data interaction is completed, the CAN data packet is triggered to be sent; When it is determined that the data interaction step is not completed, the process connection data packet continues to be sent.

6. The modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 1, characterized in that: While waiting for the body CAN network node to respond and complete the interaction: According to the scheduling framework, the response data is received in cycles.

7. The modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 6 is characterized in that: While waiting for the body CAN network node to respond and complete the interaction: When a correct response is received, it is confirmed that the CAN data packet is successfully transmitted to the vehicle body CAN network; When a correct response is not received, an alarm is issued.

8. A modular interaction system between SOC and vehicle body CAN based on MCU, applied to the modular interaction method between SOC and vehicle body CAN based on MCU as claimed in claim 1, characterized in that: It includes configuration file reading module, operation module, data packet trigger module and detection module, among which: The configuration file reading module is used to read the CAN communication configuration file and initialize the scheduling framework according to the configuration file; The running module is used to run the application process and establish a process communication interaction link according to the scheduling framework; The data packet triggering module is used to trigger the sending of the CAN data packet after waiting for the data interaction to be completed; The detection module is used to wait for the vehicle body CAN network node to respond and complete the interaction.

Citation Information

Patent Citations

  • Vehicle-mounted information entertainment system control method and system

    CN113452750A

  • Business function implementation method, device and equipment of Internet of Things terminal and storage medium

    CN114221865A

  • SOC-based CAN communication method and system

    CN114915515A

  • Vehicle communication interaction method and system and electronic equipment

    CN115604052A

  • Vehicle body, vehicle-mounted instrument system and vehicle-mounted central control system three-party communication system

    CN117622025A