A communication method and device for a cabin-mooring integrated controller
By configuring two independent communication links between the MCU and the SOC in the integrated cabin controller, which are used to transmit cockpit data and parking data respectively, the problem of inefficient communication between the MCU and the SOC is solved, and high throughput and high real-time data transmission is achieved.
Patent Information
- Application Number
- CN202411301213.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2044-09-18
AI Technical Summary
In the integrated cabin controller, the communication between the MCU and the SOC is inefficient, and it is impossible to meet the high throughput of the cockpit data and the high real-time requirements of the parking data at the same time.
The first communication link and the second communication link between the MCU and the SOC are configured for transmitting cockpit data and parking data respectively, so as to meet both high throughput and high real-time requirements when communicating between the MCU and the SOC.
By separating the communication link, the communication efficiency between the MCU and the SOC in the integrated cabin controller is improved, and the high throughput of the cockpit data and the high real-time requirements of parking data are met.
Smart Images

Figure CN119211290B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cabin-mooring integration, and in particular to a communication method and device for a cabin-mooring integration controller. Background Art
[0002] With the development of intelligent cockpit systems, Advanced Driver Assistance Systems (ADAS) are integrated into the vehicle architecture in the form of independent controllers, giving the vehicle complete cabin and parking functions. In order to further simplify the vehicle architecture and further reduce costs, the mainstream technical solution is to combine the cockpit controller and the parking controller into one.
[0003] However, in the cabin-parking integrated controller, the related technology often simultaneously transmits the cockpit data and the parking data through the communication link between the microcontroller unit (MCU) and the system on chip (SOC), resulting in the communication link having to take into account both the high throughput of the cockpit data and the high real-time performance of the parking data. As a result, both the high throughput and the high real-time performance cannot be fully satisfied, resulting in low communication efficiency between the MCU and the SOC, and a better solution is needed. Summary of the invention
[0004] In view of this, the present invention provides a communication method and device for a cabin-mooring integrated controller to solve the problem of low communication efficiency between the MCU and the SOC in the cabin-mooring integrated controller.
[0005] In one aspect, the present invention provides a communication method of a cabin-mooring integrated controller, the communication method of the cabin-mooring integrated controller comprising:
[0006] Configure a first communication link and a second communication link between the MCU and the SOC in the cabin-motorcycle integrated controller;
[0007] Sending first control information to the MCU, wherein the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC through the first communication link, and to send the vehicle's parking data to the SOC through the second communication link; receiving first information sent by the MCU, and sending the first information to the vehicle; the first information includes: a driver associated with the cockpit data, and a parking calculation result associated with the parking data;
[0008] Sending second control information to the SOC, wherein the second control information is used to instruct the SOC to receive the cockpit data through the first communication link and to receive the parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link.
[0009] Another aspect of the present invention further provides a communication device for a cabin-mooring integrated controller, the device comprising:
[0010] A configuration module, used to configure a first communication link and a second communication link between the MCU and the SOC in the cabin-motorcycle integrated controller;
[0011] a first control module, configured to send first control information to the MCU, wherein the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC via the first communication link, and to send the vehicle's parking data to the SOC via the second communication link; receive the first information sent by the MCU, and send the first information to the vehicle; the first information includes: a driver program associated with the cockpit data, and a parking calculation result associated with the parking data;
[0012] A second control module is used to send second control information to the SOC, wherein the second control information is used to instruct the SOC to receive the cockpit data through the first communication link and to receive the parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link.
[0013] On the other hand, the present invention further provides a computer device, which includes: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor implements the communication method of the above-mentioned cabin-mooring integrated controller by executing the computer instructions.
[0014] Another aspect of the present invention further provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to implement the above-mentioned communication method of the cabin-mooring integrated controller.
[0015] In this process, by setting up two communication links between the MCU and the SOC, one communication link is used to transmit cockpit data and the other communication link is used to transmit parking data, the high throughput requirements of cockpit data and the high real-time requirements of parking data can be met simultaneously when communicating between the MCU and the SOC, thereby improving the communication efficiency between the MCU and the SOC in the cabin-parking integrated controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are 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.
[0017] Figure 1 It is a structural schematic diagram of a communication device of a cabin-mooring integrated controller in the related art;
[0018] Figure 2 It is a flow chart of a communication method of a cabin-mooring integrated controller provided by an embodiment of the present invention;
[0019] Figure 3 It is a structural schematic diagram of a communication device of a cabin-mooring integrated controller provided by an embodiment of the present invention;
[0020] Figure 4 is a structural schematic diagram of another communication device of a cabin-mooring integrated controller provided by an embodiment of the present invention;
[0021] Figure 5 It is a structural schematic diagram of another communication device of a cabin-mooring integrated controller provided in an embodiment of the present invention.
[0022] Description of reference numerals:
[0023] MCU31; SOC32; cockpit service component 321; automatic parking service component 322; Bingling component 323; cyber component 324. DETAILED DESCRIPTION
[0024] In recent years, with the rapid development of smart cockpit technology, related solutions have gradually matured. Smart cockpits not only integrate traditional entertainment, navigation and other functions, but also introduce new functions such as in-car monitoring and driver status detection. At the same time, ADAS functions are gradually adopted by the whole vehicle as independent controllers to realize key functions such as automatic parking and lane keeping. However, simplifying the whole vehicle architecture and reducing costs have become industry trends, prompting the cabin-parking integrated controller to become the mainstream technical solution.
[0025] The cabin-parking integrated controller integrates cockpit and parking control, which not only reduces the number of controllers and simplifies the architecture, but also enables the sharing of hardware resources, reduces system costs, and improves computing and communication efficiency. The MCU+SOC architecture is usually used in related technologies. The MCU is connected to the CAN network of the vehicle through the Controller Area Network (CAN) communication interface, and exchanges real-time information with other control units of the vehicle to ensure reliable communication between the cockpit and parking functions. The SOC focuses on processing complex data tasks, such as high-resolution image processing, in-vehicle multimedia systems, parking path planning and other computing-intensive tasks.
[0026] In order to ensure high throughput of cockpit data and high real-time requirements of parking data, data communication between MCU and SOC is usually carried out through SPI or UART interface. Figure 1 As shown in the figure, the MCU communicates with the vehicle through the CAN bus to obtain data, and interacts with the SOC through the SPI interface or UART interface. These interfaces can provide a stable and efficient communication link to ensure the timeliness and accuracy of data transmission.
[0027] However, the related art has the following problems:
[0028] 1. The cockpit data and parking data are transmitted through the same communication link, which makes it impossible to meet the high throughput and high real-time requirements during the communication process, resulting in low communication efficiency between MCU and SOC;
[0029] 2. The communication interface between MCU and SOC is single. Once the hardware link fails, the cockpit and parking functions will all fail, and the communication robustness is insufficient.
[0030] To solve the above problems, various embodiments of the present invention provide a communication method for a cabin-mooring integrated controller, the method comprising: configuring a first communication link and a second communication link between an MCU and a SOC in the cabin-mooring integrated controller;
[0031] Sending first control information to the MCU, the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC through the first communication link, and to send the vehicle's parking data to the SOC through the second communication link; receiving the first information sent by the MCU, and sending the first information to the vehicle; the first information includes: a driver associated with the cockpit data, and a parking calculation result associated with the parking data;
[0032] Sending second control information to the SOC, the second control information is used to instruct the SOC to receive the cockpit data through the first communication link and to receive the parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link.
[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0034] According to an embodiment of the present invention, a communication method of a cabin-mooring integrated controller is provided. Figure 2 FIG. 1 is a flow chart of a communication method of a cabin-mooring integrated controller provided by an embodiment of the present invention. Figure 2 As shown, the method comprises the following specific steps:
[0035] Step S201, configuring a first communication link and a second communication link between the MCU and the SOC in the cabin-motorcycle integrated controller;
[0036] Step S202, sending first control information to the MCU, the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC through the first communication link, and to send the vehicle's parking data to the SOC through the second communication link; receiving the first information sent by the MCU, and sending the first information to the vehicle; the first information includes: a driver associated with the cockpit data, and a parking calculation result associated with the parking data;
[0037] Step S203, sending second control information to the SOC, the second control information is used to instruct the SOC to receive the cockpit data through the first communication link, and to receive the parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link.
[0038] In one possible implementation, the cabin-parking integrated controller may refer to a unified control system that integrates intelligent cockpit control and automatic parking control functions; the architecture of the cabin-parking integrated controller may be composed of MCU and SOC, wherein the MCU is responsible for communicating with the CAN bus of the entire vehicle and accessing various sensors and control units of the vehicle, and the SOC is responsible for high-performance data processing of the vehicle, such as multimedia display and vehicle networking.
[0039] Furthermore, the first communication link may be used to transmit the vehicle's cabin data between the MCU and the SOC, and the second communication link may be used to transmit the vehicle's parking data between the MCU and the SOC.
[0040] Here, the cockpit data may include but is not limited to: video data, audio data, navigation data, in-vehicle environment control data, user interface data, etc.; since the above-mentioned cockpit data requires a high-bandwidth communication link to be transmitted quickly to avoid lags and delays, the transmission of the cockpit data requires a high-throughput transmission method.
[0041] Furthermore, parking data may include but is not limited to: vehicle sensor data, camera images, control instructions, etc.; since the above parking data is summarized during the vehicle's automatic parking process, the sensors continuously detect the vehicle's surrounding environment, and the system needs to quickly make steering, braking and other control instructions based on real-time data, so the transmission of parking data requires a high real-time transmission method.
[0042] In a possible implementation, sending the first control information to the MCU may be implemented based on the following steps:
[0043] Generate first control information, the first control information includes instruction information to the MCU, the instruction information is used to instruct the MCU to send the vehicle cabin data to the SOC through the first communication link, and send the vehicle parking data to the SOC through the second communication link;
[0044] The first control information is sent to the MCU, so that the MCU performs a corresponding operation based on an instruction of the first control information.
[0045] Furthermore, sending the second control information to the SOC may be implemented based on the following steps:
[0046] Generate second control information, the second control information includes instruction information to the SOC, the instruction information is used to command the SOC to receive the vehicle cabin data sent by the MCU through the first communication link, and to receive the vehicle parking data sent by the MCU through the second communication link;
[0047] The second control information is sent to the SOC, so that the SOC performs a corresponding operation based on an instruction of the second control information.
[0048] Furthermore, the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, which can be implemented based on the following steps:
[0049] Firmware in the SOC and / or an operating system are used to determine a driver associated with the cockpit data based on a cockpit-related algorithm, and to determine a parking calculation result associated with the parking data based on a parking-related algorithm.
[0050] Among them, the firmware in the SOC can refer to low-level software embedded inside the chip or closely coordinated with the chip, which can be responsible for controlling and managing the hardware functions of the SOC and providing basic software support, rather than directly designing complex data computing tasks; the operating system in the SOC can be responsible for managing resources, running applications and services, and performing complex data processing and algorithm calculations.
[0051] In a possible implementation, determining a driver associated with cockpit data based on a cockpit-related algorithm may be implemented based on the following steps:
[0052] Decode and parse cockpit data, converting cockpit data from a data link protocol format into a format recognizable by cockpit-related algorithms;
[0053] Use cockpit-related algorithms to perform preset analysis on the parsed cockpit data. The preset analysis may include but is not limited to: image analysis processing, audio analysis processing;
[0054] Determine the driver function corresponding to the cockpit data based on the results of the preset analysis, and design the driver's interface and functions to enable the driver to interact with the hardware of the cockpit system.
[0055] For example, the operating system in the SOC obtains the video stream corresponding to the camera, performs preprocessing and real-time image processing on the video stream, and generates a corresponding video decoding driver to display the processed image on the cockpit display.
[0056] In a possible implementation, determining the parking calculation result associated with the parking data based on a parking-related algorithm may be implemented based on the following steps:
[0057] Decode and parse parking data, converting the parking data from a data link protocol format into a format recognizable by parking-related algorithms;
[0058] Fusing parking data from different sensors to obtain a comprehensive view of the environment;
[0059] Parking-related algorithms are used to determine semantic information such as parking spaces, lane lines, obstacles, etc., and the parking calculation results of the vehicle are determined based on the semantic information.
[0060] Here, the parking calculation result may include: parking path, vehicle posture information, and parking assistance instruction information.
[0061] Through the above method, the cockpit data and parking data are transmitted through different communication links, which reduces the interference and conflict between the data streams and improves the overall performance and efficiency of the data transmission of the cabin-parking integrated controller; using two independent communication links to process different types of data reduces the risk of failure of a single link, thereby improving the stability and reliability of the system.
[0062] In a specific embodiment, the method further comprises:
[0063] The initial cockpit data of the vehicle is sent to the MCU via the first CAN bus, and the initial parking data of the vehicle is sent to the MCU via the second CAN bus, so that the MCU determines the cockpit data of the vehicle based on the initial cockpit data, and determines the parking data of the vehicle based on the initial parking data.
[0064] In a possible implementation, sending initial cockpit data of the vehicle to the MCU via the first CAN bus includes:
[0065] Initial cockpit data is obtained from the cockpit control module of the vehicle, the initial cockpit data is converted into a data frame conforming to the CAN protocol, and sent to the MCU via the first CAN bus.
[0066] Here, the initial cockpit data refers to basic data related to the vehicle cockpit collected from cockpit-related equipment or sensors; for example, the initial cockpit data may include: air conditioning status, entertainment system parameters, instrument panel information, etc.
[0067] In a possible implementation, sending the initial parking data of the vehicle to the MCU via the second CAN bus includes:
[0068] Initial parking data is obtained from the parking assistance system of the vehicle, the initial parking data is converted into a data frame conforming to the CAN protocol, and is sent to the MCU through the second CAN bus.
[0069] Here, the initial parking data is basic data obtained from parking sensors or other parking-related devices; for example, the initial parking data may include: radar data, camera data, and ultrasonic ranging information.
[0070] Through the above method, the initial cockpit data is transmitted through the first CAN bus and the initial parking data is transmitted through the second CAN bus, which can improve the transmission efficiency of each data and avoid system delays or errors caused by functional conflicts; it can prevent mutual interference between cockpit and parking data and ensure real-time and reliability.
[0071] In a specific embodiment, sending first control information to the MCU, the first control information being used to instruct the MCU to send the vehicle's cabin data to the SOC through the first communication link, and sending the vehicle's parking data to the SOC through the second communication link, is implemented based on the following steps:
[0072] Determine the data in the cockpit data and the parking data whose data volume is greater than or equal to the throughput threshold as the first throughput data, determine the data whose data volume is less than the throughput threshold as the second throughput data, determine the data in the cockpit data and the parking data whose transmission delay is greater than or equal to the time threshold as the first real-time data, and determine the data whose transmission delay is less than the time threshold as the second real-time data;
[0073] The cockpit data satisfying both the first throughput data and the first real-time data is used as the first cockpit data, and the cockpit data satisfying both the second throughput data and the second real-time data is used as the second cockpit data;
[0074] The parking data satisfying both the first throughput data and the first real-time data is used as the first parking data, and the parking data satisfying both the second throughput data and the second real-time data is used as the second parking data;
[0075] Send first control information to the MCU, where the first control information is used to instruct the MCU to send first cockpit data to the SOC through the SPI channel in the first communication link, to send second cockpit data to the SOC through the UART channel in the first communication link, and to send first parking data to the SOC through the SPI channel in the second communication link, and to send second parking data to the SOC through the UART channel in the second communication link.
[0076] In a possible implementation, when the cockpit data satisfies both the first throughput data and the first real-time data, the first cockpit data characterized by a large transmission data volume and low real-time requirement is transmitted using the SPI channel in the first communication link;
[0077] When the cockpit data satisfies both the second throughput data and the second real-time data, the second cockpit data characterized as having a small transmission data volume but a high real-time requirement is transmitted using the UART channel in the first communication link;
[0078] When the parking data satisfies both the first throughput data and the first real-time data, the first parking data is characterized as having a large transmission data volume and low real-time requirement, and is transmitted using the SPI channel in the second communication link;
[0079] When the parking data satisfies both the second throughput data and the second real-time data, the second parking data is characterized as having a small transmission data volume but a high real-time requirement, and is transmitted using the UART channel in the second communication link.
[0080] Among them, the SPI used in the SPI channel can be a synchronous serial communication protocol. By adopting full-duplex communication, the MCU and SOC can send and receive data at the same time, which makes its transmission speed much faster than the UART channel; the clock rate of the SPI can be configured as needed to adapt to different data rate requirements. When transmitting the first cockpit data and the first parking data with a large amount of data, the SPI can be transmitted at a high rate. Therefore, SPI communication is used to transmit high-throughput data.
[0081] Here, the UART channel uses an asynchronous serial communication protocol. The asynchronous mode enables the MCU and SOC to communicate without sharing a clock, so they can work in a more flexible timing environment. Therefore, UART communication is used to transmit high real-time data.
[0082] Exemplarily, the throughput threshold may be 1 megabit per second (M / s), and the time threshold may be 20 milliseconds; the throughput threshold and the time threshold may be specifically set according to requirements, and are not limited here.
[0083] In a specific embodiment, the SOC uses a preset component to determine the first information based on the cabin data and the parking data, and is implemented based on the following steps:
[0084] Based on the cockpit service component in the SOC, the first cockpit data and the second cockpit data are obtained, and the corresponding interface of the Bingling component in the SOC is called to broadcast the first cockpit data and the second cockpit data in each system of the SOC, so that each system determines the driving program in the first information based on the first cockpit data and the second cockpit data;
[0085] Based on the automatic parking service component in the SOC, the first parking data and the second parking data are obtained, and the corresponding interface of the cyber component in the SOC is called to send the first parking data and the second parking data to the QNX system in the SOC, so that the QNX system adopts the parking algorithm to determine the parking calculation result in the first information.
[0086] In a possible implementation, there may be multiple operating systems in the SOC; for example, the SOC may be installed with an Android system and a QNX system.
[0087] Among them, the Android system can be used to process multimedia entertainment information and user interaction information. For example, the data types processed by the Android system in the SOC may include multimedia content and graphical interfaces in the cockpit data; the QNX system can be used to process low-level hardware control and real-time feedback data, for example, instrument panel information and sensor data in the cockpit data.
[0088] In one possible implementation, the cockpit service component in the SOC may refer to a cockpitservice component integrated in the SOC, which may be a service module for managing and providing smart cockpit functions.
[0089] Exemplarily, the services provided by the cockpit service component may include but are not limited to: information interaction and display, multimedia control, navigation, air conditioning management, voice assistant, etc.
[0090] In a possible implementation, iceoryx may be an inter-process communication middleware applicable to various operating systems, and may provide a data-independent transmission mechanism based on shared memory, so that data may be transmitted across various systems in the SOC.
[0091] Specifically, calling the corresponding interface of iceoryx can broadcast the first parking data and the second parking data between the Android system and the QNX system, so that the data between the Android system and the QNX system can be updated in real time and kept consistent, thereby promoting the collaborative work of the Android and QNX systems.
[0092] In a possible implementation, the automatic parking service component in the SOC may refer to an APA service component, which may be a service module for managing and executing the automatic parking function of the vehicle.
[0093] Exemplarily, the services provided by the APA service component may include, but are not limited to: environmental perception processing, vehicle automatic control and path planning.
[0094] In one possible implementation, the cyber component may refer to a real-time communication framework for autonomous driving, which provides a variety of communication mechanisms and user-level coroutines and performs scheduling based on task priority when resources are limited.
[0095] Specifically, by calling the corresponding interface of the cyber component to transmit the first parking data and the second parking data to the QNX system in the SOC, the transmission delay of the parking data in the SOC can be reduced, ensuring that the parking data with higher real-time performance can be quickly determined as the parking calculation result in the QNX system.
[0096] Furthermore, after the first parking data and the second parking data are transmitted to the QNX system, the corresponding interface of the cyber component can continue to be called to broadcast the first parking data and the second parking data in the QNX system, so that through the message publishing and subscription mechanism of the cyber component, multiple modules inside the QNX system can process the parking data in parallel, thereby further improving the processing efficiency of determining the parking calculation results.
[0097] Through the above method, when processing cockpit data, iceoryx is called to broadcast the first parking data and the second parking data between the Android system and the QNX system, so that the data between the Android system and the QNX system can be updated in real time and kept consistent, thereby improving the efficiency of data transmission in the cabin-parking integrated controller; calling the corresponding interface of the cyber component to transmit the first parking data and the second parking data to the QNX system in the SOC can reduce the delay of parking data transmission and further improve the real-time performance of data transmission.
[0098] In a specific embodiment, calling the corresponding interface of the Bingling component in the SOC to broadcast the first cockpit data and the second cockpit data in each system of the SOC includes:
[0099] Based on the cockpit service component in the SOC, the data parts in the first cockpit data and the second cockpit data that interact with the vehicle's CAN bus are determined, and the data parts are broadcast in various systems of the SOC by calling the corresponding interface of the Bingling component, so that the QNX system in the SOC obtains the data parts.
[0100] In one possible implementation, the CAN bus is used for real-time data exchange within the vehicle, and the data portion that interacts with the vehicle's CAN bus may refer to data that requires real-time decision-making and control; and since the QNX system is a high real-time operating system, the efficiency of data processing and return can be improved by broadcasting the data portion that interacts with the vehicle's CAN bus to the QNX system for processing.
[0101] Here, QNX obtains the data portion of the vehicle's CAN bus where there is interaction, and determines the driver in the first information corresponding to the data portion.
[0102] In a possible implementation, the cockpit service can also interact with multiple other systems or modules in the SOC and receive messages published by these systems through the Ice Antelope component.
[0103] Here, the message receiving can determine the type of message received by setting corresponding subscription rules and filtering conditions.
[0104] Through the above method, by calling the broadcast interface of the Bingling component, the QNX system can obtain and process cockpit data with high real-time requirements in real time, thereby realizing data sharing and coordination between systems, and improving the real-time performance and integrity of the system; through the low-latency, high-performance message middleware provided by the Bingling component, the cockpit service can receive and process messages from multiple systems in a timely manner, enhancing the functional integration and user experience of the cockpit system.
[0105] In a specific embodiment, based on the automatic parking service component in the SOC, obtaining the first parking data and the second parking data includes:
[0106] Sending third control information to the SOC, the third control information is used to instruct the SPI driver in the SOC to map the SPI channel in the second communication link into a first sub-channel and a second sub-channel; the first sub-channel is used to transmit the CAN message information in the first parking data, and the second sub-channel is used to transmit the sensor information in the first parking data;
[0107] Based on the automatic parking service component in the SOC, CAN message information is obtained through the first sub-channel, and sensor information is obtained through the second sub-channel.
[0108] Specifically, the SPI driver in the SOC maps the SPI channel in the second communication link into the first sub-channel and the second sub-channel; reads the first parking data in the SPI channel, parses and extracts CAN message information in the first parking data, and parses and extracts sensor information in the first parking data.
[0109] Here, the sensor information may include but is not limited to: raw data from ultrasonic radar and vehicle surrounding data from a surround-view camera.
[0110] Through the above method, by mapping the SPI channel into two sub-channels, the CAN message information and sensor information are transmitted separately. This data separation reduces information mixing and improves the efficiency of data transmission; by transmitting CAN message information and sensor data through dedicated sub-channels, real-time acquisition and processing of parking-related data can be achieved, which can ensure the rapid decision-making of the automatic parking system.
[0111] In a specific embodiment, sending the first information to the MCU through the first communication link and the second communication link includes:
[0112] Convert the format of the first information so that the first information complies with the protocol format corresponding to the SPI channel and the UART channel in the first communication link and the second communication link;
[0113] The first information conforming to the protocol format is sent to the MCU through the SOC.
[0114] Specifically, determine the data protocol format applicable to SPI and UART channels;
[0115] Performing format conversion on the first information, converting the cockpit data in the first information into the format required by the SPI channel, and formatting the parking data in the first information into the format of the UART channel;
[0116] The first information after format conversion is generated into an SPI packet and a UART data packet, and sent to the MCU.
[0117] Here, the first information is formatted so that data conforming to the protocol format can be transmitted more efficiently, thereby reducing the processing time of data on the link and improving the overall communication efficiency.
[0118] Figure 3 is a structural schematic diagram of a communication device of a cabin-mooring integrated controller provided by an embodiment of the present invention; wherein,
[0119] MCU31 and SOC32 communicate data through the first communication link and the second communication link. The first communication link includes SPI1 (equivalent to the SPI channel in the first communication link) and UART1 (equivalent to the UART channel in the first communication link), and the second communication link includes SPI2 (equivalent to the SPI channel in the second communication link) and UART2 (equivalent to the UART channel in the second communication link).
[0120] SOC32 integrates a cockpit service component 321, an automatic parking service component 322, an ice antelope component 323 and a cyber component 324; the cockpit service component 321 obtains the first cockpit data transmitted by SPI1 and the second cockpit data transmitted by UART1 through the SPI driver and the UART driver; the automatic parking service component 322 obtains the first parking data transmitted by SPI2 and the second parking data transmitted by UART2 through the SPI driver and the UART driver; wherein, the SPI driver that transmits the first parking data maps out a first sub-channel and a second sub-channel.
[0121] The cockpit service component 321 implements data broadcasting and subscription by calling the interface of the Bingling component 323 , and the automatic parking service component 322 transmits parking data to the QNX system by calling the interface of the cyber component 324 .
[0122] Figure 4 FIG. 1 is a schematic diagram of the structure of another communication device of a cabin-mooring integrated controller provided by an embodiment of the present invention. Figure 4 As shown, the device can be applied to intelligent electronic devices such as servers and computers; the device includes: a configuration module 401, a first control module 402 and a second control module 403;
[0123] The configuration module 401 is used to configure the first communication link and the second communication link between the MCU and the SOC in the cabin-motorcycle integrated controller;
[0124] The first control module 402 is used to send first control information to the MCU, the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC through the first communication link, and to send the vehicle's parking data to the SOC through the second communication link; receive the first information sent by the MCU, and send the first information to the vehicle; the first information includes: a driver associated with the cockpit data, and a parking calculation result associated with the parking data;
[0125] The second control module 403 is used to send second control information to the SOC, and the second control information is used to instruct the SOC to receive cockpit data through the first communication link and to receive parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link.
[0126] In a specific embodiment, the apparatus further includes a transmission module 404;
[0127] The transmission module 404 is used to send the initial cockpit data of the vehicle to the MCU through the first CAN bus, and to send the initial parking data of the vehicle to the MCU through the second CAN bus, so that the MCU determines the cockpit data of the vehicle based on the initial cockpit data, and determines the parking data of the vehicle based on the initial parking data.
[0128] In a specific embodiment, the first control module 402 is used to determine that the data in the cockpit data and the parking data whose data volume is greater than or equal to the throughput threshold is the first throughput data, determine that the data in the cockpit data and the parking data whose data volume is less than the throughput threshold is the second throughput data, determine that the data in the cockpit data and the parking data whose transmission delay is greater than or equal to the time threshold is the first real-time data, and determine that the data whose transmission delay is less than the time threshold is the second real-time data;
[0129] The cockpit data satisfying both the first throughput data and the first real-time data is used as the first cockpit data, and the cockpit data satisfying both the second throughput data and the second real-time data is used as the second cockpit data;
[0130] The parking data satisfying both the first throughput data and the first real-time data is used as the first parking data, and the parking data satisfying both the second throughput data and the second real-time data is used as the second parking data;
[0131] Send first control information to the MCU, where the first control information is used to instruct the MCU to send first cockpit data to the SOC through the SPI channel in the first communication link, to send second cockpit data to the SOC through the UART channel in the first communication link, and to send first parking data to the SOC through the SPI channel in the second communication link, and to send second parking data to the SOC through the UART channel in the second communication link.
[0132] In a specific embodiment, the second control module 403 is used to obtain the first cockpit data and the second cockpit data based on the cockpit service component in the SOC, call the corresponding interface of the Bingling component in the SOC, and broadcast the first cockpit data and the second cockpit data in each system of the SOC, so that each system determines the driver in the first information based on the first cockpit data and the second cockpit data;
[0133] Based on the automatic parking service component in the SOC, the first parking data and the second parking data are obtained, and the corresponding interface of the cyber component in the SOC is called to send the first parking data and the second parking data to the QNX system in the SOC, so that the QNX system adopts the parking algorithm to determine the parking calculation result in the first information.
[0134] In a specific embodiment, the second control module 403 is used to determine the data portion of the first cockpit data and the second cockpit data that interacts with the vehicle's CAN bus based on the cockpit service component in the SOC, and broadcast the data portion in each system of the SOC by calling the corresponding interface of the Bingling component, so that the QNX system in the SOC obtains the data portion.
[0135] In a specific embodiment, the second control module 403 is used to send third control information to the SOC, where the third control information is used to instruct the SPI driver in the SOC to map the SPI channel in the second communication link into a first sub-channel and a second sub-channel; the first sub-channel is used to transmit CAN message information in the first parking data, and the second sub-channel is used to transmit sensor information in the first parking data;
[0136] Based on the automatic parking service component in the SOC, CAN message information is obtained through the first sub-channel, and sensor information is obtained through the second sub-channel.
[0137] In a specific embodiment, the second control module 403 is used to convert the format of the first information so that the first information conforms to the protocol format corresponding to the SPI channel and the UART channel in the first communication link and the second communication link;
[0138] The first information conforming to the protocol format is sent to the MCU through the SOC.
[0139] It should be noted that: the communication device of the cabin-mooring integrated controller provided in the above embodiment only uses the division of the above program modules as an example to illustrate when implementing the communication method of the corresponding cabin-mooring integrated controller. In actual application, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the above-described processing. Figure 2 The embodiments of the method shown belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0140] The embodiment of the present invention also provides a computer device having the above Figure 4 The communication device of the cabin-mooring integrated controller is shown.
[0141] See also Figure 5 , Figure 5 FIG. 1 is a structural diagram of another communication device of a cabin-mooring integrated controller provided by an embodiment of the present invention. Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0142] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0143] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0144] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0145] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0146] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0147] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.
[0148] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0149] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0150] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0151] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A communication method for a cabin-mooring integrated controller, characterized in that: The method comprises: Configure a first communication link and a second communication link between the MCU and the SOC in the cabin-motorcycle integrated controller; Sending first control information to the MCU, wherein the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC through the first communication link, and to send the vehicle's parking data to the SOC through the second communication link; receiving first information sent by the MCU, and sending the first information to the vehicle; the first information includes: a driver associated with the cockpit data, and a parking calculation result associated with the parking data; sending second control information to the SOC, wherein the second control information is used to instruct the SOC to receive the cockpit data through the first communication link and to receive the parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link; The sending of second control information to the SOC, wherein the second control information is used to instruct the SOC to receive the cockpit data through the first communication link and to receive the parking data through the second communication link, is implemented based on the following steps: Determine the data whose data volume is greater than or equal to the throughput threshold in the cockpit data and the parking data as the first throughput data, determine the data whose data volume is less than the throughput threshold as the second throughput data, determine the data whose transmission delay is greater than or equal to the time threshold in the cockpit data and the parking data as the first real-time data, and determine the data whose transmission delay is less than the time threshold as the second real-time data; The cockpit data satisfying both the first throughput data and the first real-time data is used as first cockpit data, and the cockpit data satisfying both the second throughput data and the second real-time data is used as second cockpit data; The parking data satisfying both the first throughput data and the first real-time data is used as first parking data, and the parking data satisfying both the second throughput data and the second real-time data is used as second parking data; Sending first control information to the MCU, wherein the first control information is used to instruct the MCU to send the first cockpit data to the SOC through the SPI channel in the first communication link, to send the second cockpit data to the SOC through the UART channel in the first communication link, and to send the first parking data to the SOC through the SPI channel in the second communication link, and to send the second parking data to the SOC through the UART channel in the second communication link.
2. The method according to claim 1, characterized in that The method further comprises: The initial cockpit data of the vehicle is sent to the MCU via the first CAN bus, and the initial parking data of the vehicle is sent to the MCU via the second CAN bus, so that the MCU determines the cockpit data of the vehicle based on the initial cockpit data, and determines the parking data of the vehicle based on the initial parking data.
3. The method according to claim 1, characterized in that The SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and is implemented based on the following steps: Based on the cockpit service component in the SOC, first cockpit data and second cockpit data are obtained, a corresponding interface of the Bingling component in the SOC is called, and the first cockpit data and the second cockpit data are broadcasted in each system of the SOC, so that each system determines a driver in the first information based on the first cockpit data and the second cockpit data; Based on the automatic parking service component in the SOC, the first parking data and the second parking data are obtained, the corresponding interface of the cyber component in the SOC is called, and the first parking data and the second parking data are sent to the QNX system in the SOC, so that the QNX system adopts a parking algorithm to determine the parking calculation result in the first information.
4. The method according to claim 3, characterized in that The calling of the corresponding interface of the Bingling component in the SOC to broadcast the first cockpit data and the second cockpit data in each system of the SOC includes: Based on the cockpit service component in the SOC, determine the data parts in the first cockpit data and the second cockpit data that interact with the vehicle's CAN bus, and broadcast the data parts in each system of the SOC by calling the corresponding interface of the Bingling component, so that the QNX system in the SOC obtains the data parts.
5. The method according to claim 4, characterized in that The obtaining of the first parking data and the second parking data based on the automatic parking service component in the SOC includes: Sending third control information to the SOC, wherein the third control information is used to instruct the SPI driver in the SOC to map the SPI channel in the second communication link into a first sub-channel and a second sub-channel; the first sub-channel is used to transmit CAN message information in the first parking data, and the second sub-channel is used to transmit sensor information in the first parking data; Based on the automatic parking service component in the SOC, the CAN message information is obtained through the first sub-channel, and the sensor information is obtained through the second sub-channel.
6. The method according to claim 5, characterized in that The sending the first information to the MCU through the first communication link and the second communication link includes: Performing format conversion on the first information so that the first information complies with the protocol format corresponding to the SPI channel and the UART channel in the first communication link and the second communication link; The first information conforming to the protocol format is sent to the MCU through the SOC.
7. A communication device for a cabin-mooring integrated controller, characterized in that: The device comprises: A configuration module, used to configure a first communication link and a second communication link between the MCU and the SOC in the cabin-motorcycle integrated controller; a first control module, configured to send first control information to the MCU, wherein the first control information is used to instruct the MCU to send the vehicle's cockpit data to the SOC through the first communication link, and to send the vehicle's parking data to the SOC through the second communication link; receive the first information sent by the MCU, and send the first information to the vehicle; the first information includes: a driver program associated with the cockpit data, and a parking calculation result associated with the parking data; a second control module, configured to send second control information to the SOC, wherein the second control information is used to instruct the SOC to receive the cockpit data through the first communication link and to receive the parking data through the second communication link, so that the SOC uses a preset component to determine the first information based on the cockpit data and the parking data, and sends the first information to the MCU through the first communication link and the second communication link; The second control module is specifically used to determine that the data of the cockpit data and the parking data whose data volume is greater than or equal to the throughput threshold is the first throughput data, determine that the data of the data volume is less than the throughput threshold is the second throughput data, determine that the data of the cockpit data and the parking data whose transmission delay is greater than or equal to the time threshold is the first real-time data, and determine that the data of the transmission delay is less than the time threshold is the second real-time data; The cockpit data satisfying both the first throughput data and the first real-time data is used as first cockpit data, and the cockpit data satisfying both the second throughput data and the second real-time data is used as second cockpit data; The parking data satisfying both the first throughput data and the first real-time data is used as first parking data, and the parking data satisfying both the second throughput data and the second real-time data is used as second parking data; Sending first control information to the MCU, wherein the first control information is used to instruct the MCU to send the first cockpit data to the SOC through the SPI channel in the first communication link, to send the second cockpit data to the SOC through the UART channel in the first communication link, and to send the first parking data to the SOC through the SPI channel in the second communication link, and to send the second parking data to the SOC through the UART channel in the second communication link.
8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the communication method of the cabin-mooring integrated controller according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the communication method of the cabin-mooring integrated controller according to any one of claims 1 to 6.
Citation Information
Patent Citations
Automobile service layer communication method and device, electronic equipment and storage medium
CN115987898A