Communication method and device, computer storage medium and vehicle

The microprocessor MPU performs inter-core communication, parsing and generating SOME/IP service packets, so that the MCUs without Ethernet hardware and protocol stacks communicate with other nodes on the on-board Ethernet, solving the problem that the MCU cannot communicate through the on-board Ethernet, and achieving communication capabilities without configuring the Ethernet hardware and protocol stacks.

CN115941783BActive Publication Date: 2025-05-06GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211373035.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-01
Publication Date
2025-05-06
Estimated Expiration
2042-11-01

AI Technical Summary

Technical Problem

The MCUs in some on-board ECUs are not configured with Ethernet hardware and protocol stacks, and cannot communicate with other MCUs through on-board Ethernet.

Method used

The microprocessor MPU performs inter-core communication, and obtains information from the MCU with no Ethernet hardware and protocol stack, parses and generates SOME/IP service packets, so that the microprocessor communicates with other nodes on the on-board Ethernet network.

Benefits of technology

The MCU with no Ethernet hardware and protocol stack is implemented to communicate with other nodes on the on-board Ethernet network. There is no need to configure Ethernet hardware and protocol stack on the MCU. It is portable and does not depend on the hardware.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941783B_ABST
    Figure CN115941783B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a communication method and device, a medium and a vehicle, and relates to the field of vehicle-mounted communication protocol technology. The method includes: a first microprocessor obtains first information from a first microcontroller unit in an inter-core communication manner, and the first information is generated by an application program of the first microcontroller unit calling a service-oriented scalable middleware SOME / IP interface; based on the first information, a first SOME / IP service message is parsed and generated; based on the first SOME / IP service message, the first microprocessor communicates with other nodes on the vehicle Ethernet. According to the technical solution of the embodiment of the present application, at least the first microcontroller unit that is not configured with Ethernet hardware and protocol stack can communicate with other nodes on the vehicle Ethernet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle-mounted communication technology, and in particular to a communication method and device, a computer-readable storage medium, and a vehicle. Background Art

[0002] Electrical and Electronic Architecture (EEA) is an electronic and electrical solution for the entire vehicle that integrates the vehicle's electronic and electrical systems, electronic control unit (ECU), various sensors, wiring harnesses, connector designs, and electronic and electrical distribution systems.

[0003] Based on EEA, the in-vehicle Ethernet is introduced in the car to facilitate better data communication between various ECUs in the car. At present, the common Ethernet communication protocol in the car is SOME / IP (Scalable service-oriented Middleware over IP) protocol. However, the MCU (Microcontroller Unit) in some in-vehicle ECUs is not equipped with Ethernet hardware and protocol stack, and cannot communicate with other MCUs through the in-vehicle Ethernet.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present application is to provide a communication method and apparatus, a computer-readable storage medium and a device, which can at least enable a first microcontroller unit that is not configured with Ethernet hardware and protocol stack to communicate with other nodes on the vehicle Ethernet.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to a first aspect of the present application, a communication method is provided, which is applied to a vehicle-mounted control device, wherein the vehicle-mounted control device includes at least a first microcontroller unit and a first microprocessor, wherein the first microprocessor communicates with an in-vehicle Ethernet, and the method includes: the first microprocessor obtains first information from the first microcontroller unit in an inter-core communication manner, wherein the first information is generated by an application program of the first microcontroller unit calling a service-oriented scalable middleware SOME / IP interface; based on the first information, parsing and generating a first SOME / IP service message; based on the first SOME / IP service message, enabling the first microprocessor to communicate with other nodes on the in-vehicle Ethernet.

[0008] In one embodiment of the present application, the above-mentioned reading the first information, parsing and generating the first SOME / IP message includes: a proxy module based on the first MPU reads the first message, parses and generates a first SOME / IP service message.

[0009] In one embodiment of the present application, the above-mentioned parsing and generating the first SOME / IP message based on the first information includes: a proxy module based on the first microprocessor parses the first message and generates a first SOME / IP service message.

[0010] In one embodiment of the present application, the above-mentioned proxy module based on the first microprocessor parses the first message and generates a first SOME / IP service message, including: a data conversion unit based on the proxy module converts the first message; a Some / IP proxy unit based on the proxy module parses the converted first message to generate the first SOME / IP service message.

[0011] In one embodiment of the present application, the first microprocessor obtains the first information from the first microcontroller unit by means of inter-core communication, including: the first microprocessor obtains the first information from the SOME / IP interface of the first microcontroller unit by means of inter-core communication, the SOME / IP interface is a virtual SOME / IP interface, and the first message is a virtual SOME / IP service message.

[0012] In one embodiment of the present application, the above-mentioned vehicle-mounted control device also includes a second microcontroller unit and a second microprocessor, the second microprocessor communicates with the second microcontroller unit in inter-core communication, and the second microprocessor communicates with the vehicle-mounted Ethernet; the method also includes: the first microprocessor obtains a second SOME / IP service message through the vehicle-mounted Ethernet, and the second SOME / IP service message is generated by the second microprocessor; based on the second SOME / IP service message, a second message is generated; the first microprocessor sends the second message to the first microcontroller unit in an inter-core communication manner, so that the first microcontroller unit communicates with the second microcontroller unit.

[0013] In one embodiment of the present application, the generating of the second message based on the second SOME / IP service message includes: parsing the second SOME / IP service message based on the SOME / IP proxy unit of the proxy module; and converting the parsed second SOME / IP service message based on the data conversion unit of the proxy module to generate the second message.

[0014] In one embodiment of the present application, the first microprocessor sends the second message to the first microcontroller unit by means of inter-core communication, including: the first microprocessor sends the second message to the SOME / IP interface of the first microcontroller unit by means of inter-core communication, and the second message is a virtual SOME / IP message service.

[0015] According to a second aspect of the present application, a communication device is provided, which is applied to a vehicle-mounted control device, wherein the vehicle-mounted control device includes at least a first microcontroller unit and a first microprocessor, wherein the first microprocessor communicates with an in-vehicle Ethernet, and the device includes: an acquisition module, used for the first microprocessor to acquire first information from the first microcontroller unit in an inter-core communication manner, wherein the first information is generated by an application program of the first microcontroller unit calling a service-oriented scalable middleware SOME / IP interface; a parsing and generating module, used for parsing and generating a first SOME / IP service message based on the first information; and a communication module, used for enabling the first microprocessor to communicate with other nodes on the in-vehicle Ethernet based on the first SOME / IP service message.

[0016] According to the third aspect of the present application, a vehicle is provided, comprising an on-board control device, wherein the on-board control device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the communication method described in the first aspect when executing the computer program.

[0017] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the communication method described in the first aspect is implemented.

[0018] The communication method and device, computer storage medium and terminal provided in the embodiments of the present application have the following technical effects:

[0019] The first microprocessor obtains the first information from the first microcontroller in an inter-core communication manner, and the first information is generated by the application of the first microcontroller calling the service-oriented scalable middleware SOME / IP interface; based on the first information, the first SOME / IP service message is parsed and generated; based on the first SOME / IP service message, the first microprocessor communicates with other nodes on the vehicle Ethernet. In the embodiment of the present application, the first microprocessor obtains the first information from the first microcontroller in an inter-core communication manner, and the first microprocessor communicates with the vehicle Ethernet through the SOME / IP service message, so that the first microcontroller can indirectly communicate with the vehicle Ethernet, and then realize communication with other nodes on the vehicle Ethernet, without configuring Ethernet hardware and protocol stack on the first microcontroller, which is portable and does not rely on hardware.

[0020] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A schematic diagram showing a first application scenario of a communication method provided according to an embodiment of the present application;

[0023] Figure 2 A schematic diagram showing a second application scenario of the communication method provided according to an embodiment of the present application is shown;

[0024] Figure 3 A schematic diagram of a communication method according to an embodiment of the present application is shown;

[0025] Figure 4 A schematic diagram of the structure of a proxy module of a first MPU provided in an exemplary embodiment of the present application is shown;

[0026] Figure 5A schematic diagram showing a flow chart of a communication method provided according to another embodiment of the present application is shown;

[0027] Figure 6 A structural diagram of a communication device provided according to an exemplary embodiment of the present application is shown;

[0028] Figure 7 A structural diagram of a vehicle provided by an embodiment of the present application is shown;

[0029] Figure 8 The structure of an on-board control device of a vehicle according to an exemplary embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0030] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0031] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0032] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0033] In related technologies, the electrical and electronic architecture (EEA) is an electronic and electrical solution for the entire vehicle that integrates the vehicle's electronic and electrical systems, ECU (Electronic Control Unit), various sensors, wiring harnesses, connector designs, and electronic and electrical distribution systems.

[0034] Based on the automotive EE architecture, the in-vehicle Ethernet is introduced to facilitate better data communication between the various ECUs in the car. At present, the common Ethernet communication protocol in the car is the SOME / IP (Scalable service-oriented middleware over IP) protocol. However, the MCU (Microcontroller Unit) in some in-vehicle ECUs is not equipped with Ethernet hardware and protocol stacks, and cannot communicate with other MCUs on the in-vehicle Ethernet.

[0035] In response to the problems existing in the above-mentioned related technologies, the present application proposes a communication method and device, a computer storage medium and a terminal, which can at least enable an MCU that is not configured with Ethernet hardware and protocol stack to communicate with other MCUs on the microprocessor MPU vehicle Ethernet.

[0036] Figure 1 A schematic diagram of a first application scenario of a communication method provided according to an embodiment of the present application is shown.

[0037] Reference Figure 1 As shown, the first application scenario includes an MCU and an MPU (Microprocessor Unit), the MCU and the MPU perform inter-core communication, and the MCU and the MPU are located in a vehicle-mounted control device. The MCU includes an application 101 and a SOME / IP interface 102, and the SOME / IP interface 102 is a virtual SOME / IP interface. The MPU includes an agent module 103 and a SOA (Service Oriented Architecture) module 104.

[0038] When in use, the MPU obtains the first information from the MCU in the form of inter-core communication, and the first information is generated by the MCU's application 101 calling the SOME / IP interface 102; the proxy module 103 in the MPU parses the first information and generates a SOME / IP service message; the SOA module 104 of the MPU calls the corresponding service based on the SOME / IP service message, that is, the MPU communicates with other nodes on the vehicle Ethernet based on the SOME / IP service message. In this application scenario, the MPU communicates with other nodes on the vehicle Ethernet based on the SOME / IP service message, and the MCU communicates indirectly with the vehicle Ethernet through the MPU, without the need to equip the MCU with Ethernet hardware and protocol stack, thereby enabling the MCU that is not equipped with Ethernet hardware and protocol stack to communicate with other nodes on the vehicle Ethernet, wherein the node on the vehicle Ethernet can be an on-board control device, other MCU or ECU in the vehicle.

[0039] Figure 2A schematic diagram of a second application scenario of the communication method provided according to an embodiment of the present application is shown.

[0040] Reference Figure 2 As shown, the second application scenario includes a first MCU201, a first MPU202, a second MPU203 and a second MCU204, the first MCU201 and the first MPU202 perform inter-core communication, the second MCU204 and the second MPU203 perform inter-core communication, and the first MPU202 and the second MPU203 communicate via the vehicle Ethernet. Among them, the first MCU201 and the second MCU204 both include an application and a SOME / IP interface, and the SOME / IP interface is a virtual SOME / IP interface. The first MPU202 and the second MPU203 both include a proxy module. The application, SOME / IP interface and proxy module in this application scenario are consistent with those in the above application scenario, and will not be repeated in this embodiment.

[0041] When in use, the first MPU202 obtains first information from the first MCU201 in an inter-core communication manner, where the first information is generated by the application of the first MCU201 calling the SOME / IP interface; the proxy module in the first MPU202 converts and parses the first information to generate a first SOME / IP service message; the first MPU202 sends the first SOME / IP service message to the second MPU203 through the vehicle Ethernet, and the second MPU203 parses and converts the first SOME / IP service message and sends it to the second MCU204 through the inter-core communication manner, and the second MCU204 receives the message, so that the first MCU201 and the second MCU204 communicate with each other; or

[0042] The first MPU202 obtains the second SOME / IP service message through the vehicle Ethernet, and the second SOME / IP service message is generated by the proxy module of the second MPU203; the proxy module of the first MPU202 converts and parses the second SOME / IP service message to generate a second message; the first MPU202 sends the second message to the first MCU201 in the form of inter-core communication, and the first MCU201 receives the second message, so that the first MCU201 and the second MCU204 can communicate with each other. That is, in this application scenario, the first MPU202 and the second MPU203 communicate with the vehicle Ethernet, and the first MCU201 and the second MCU204 are both equipped with Ethernet hardware and protocol stacks. The first MCU201 communicates with the vehicle Ethernet through the first MPU202, and the second MCU204 communicates with the vehicle Ethernet through the second MPU203, thereby enabling the first MCU201 and the second MCU204 to communicate with each other.

[0043] Figure 3A flow chart of a communication method provided according to an embodiment of the present application is shown. The execution subject of the communication method may be a computing device with a computing and processing function, such as the MPU in the vehicle control device in the first application scenario, or the first MPU 202 and the second MPU 203 in the second application scenario. The communication method includes steps S301 to S303. The communication method in the example embodiment is described in detail below in conjunction with the accompanying drawings.

[0044] Reference Figure 3 As shown, step S301: the first microprocessor obtains first information from the first micro control unit in an inter-core communication manner.

[0045] In an example embodiment, the first information is generated by an application of the first MCU calling the SOME / IP interface, and the application may be an application in the first application scenario or the second application scenario described above. The SOME / IP interface of the first MCU is a virtual SOME / IP interface, and the first message is a virtual SOME / IP service message. Inter-Process Communication (IPC) is a multi-core system in which the cores often need to communicate due to application requirements. For example, when multiple processors need to share peripherals, memory, and interrupts between processors, inter-processor communication (IPC) implements this function. Inter-core communication is mainly used in two aspects: sending interrupts to other cores and transmitting small amounts of data between cores.

[0046] The first MPU obtains the first information from the SOME / IP interface of the first MCU in an inter-core communication manner. During this process, communication is established between the first MPU and the first MCU without going through the in-vehicle Ethernet.

[0047] Step S302: parsing and generating a first SOME / IP service message based on the first information.

[0048] In an exemplary embodiment, the first SOME / IP service message is a service message generated by the first MPU according to the SOME / IP protocol of Ethernet. The first MPU parses the first information and generates the first SOME / IP service message.

[0049] Specifically, in one embodiment, the first MPU includes a proxy module, and the first MPU parses the first message based on the proxy module and generates a first SOME / IP service message.

[0050] Understandable, refer to Figure 4As shown, in a specific embodiment, the first MPU includes a proxy module, the proxy module includes a data conversion unit and a Some / IP proxy unit, and the first MPU converts the first message based on the data conversion unit of the proxy module; the first MPU parses the converted first message based on the Some / IP proxy unit of the proxy module, and generates a first SOME / IP service message.

[0051] It should be noted that, in this embodiment, the proxy module is an Agent program. The application program of the first MCU calls the SOME / IP interface to generate a first message, which is a virtual SOME / IP service message. The Agent program maps the first message to the action Agent function, and the Agent function converts and parses the data format of the first message to generate a real first SOME / IP service message that complies with the Ethernet protocol stack.

[0052] Step S303: Based on the first SOME / IP service message, the first microprocessor communicates with other nodes on the vehicle Ethernet.

[0053] In an example embodiment, the first MPU sends a first SOME / IP service message to the vehicle Ethernet so that the first microprocessor communicates with other nodes on the vehicle Ethernet, and then the first microcontroller unit communicates with other nodes on the vehicle Ethernet through the first microprocessor.

[0054] It can be understood that, in combination with the above-mentioned example embodiments, the first MPU includes an agent module, which is an Agent program. The Agent program receives a first message generated by the first MCU, converts and parses the first message to generate a first SOME / IP service message that complies with the protocol stack, and then sends the first SOME / IP service message to other nodes on the vehicle Ethernet. The other nodes on the vehicle Ethernet receive the first SOME / IP service message, thereby enabling the first microprocessor to communicate with other nodes on the vehicle Ethernet.

[0055] In addition, it should be noted that the nodes on the vehicle Ethernet in this example embodiment can be an onboard computer or other MCUs and ECUs in the vehicle. In one embodiment, if the first MCU in the vehicle needs to communicate with another MCU, the other MCU may be equipped with Ethernet hardware and a protocol stack, or may not be equipped with Ethernet hardware and a protocol stack. If the other MCU is equipped with Ethernet hardware and a protocol stack, the other MCU can directly parse the first SOME / IP service message to establish communication. If the other MCU is not equipped with Ethernet hardware and a protocol stack, the other MCU can convert and parse the first SOME / IP service message through the MPU that establishes inter-core communication with it, so as to realize communication between the first MCU and the second MCU.

[0056] according to Figure 3 The technical solution in the example embodiment of the first MPU obtains the first information from the first MCU in the form of inter-core communication, and the first information is generated by the application of the first MCU calling the SOME / IP interface; the first MPU parses the first information and generates a SOME / IP service message; the first MPU sends the first SOME / IP service message to other nodes on the vehicle Ethernet to communicate with other nodes on the vehicle Ethernet. In the embodiment of the present application, the first microprocessor obtains the first information from the first microcontroller unit in the form of inter-core communication, and the first microprocessor communicates with the vehicle Ethernet through the SOME / IP service message, so that the first microcontroller unit can indirectly communicate with the vehicle Ethernet, and then communicate with other nodes on the vehicle Ethernet, without configuring Ethernet hardware and protocol stack on the first microcontroller unit, which is portable and does not rely on hardware.

[0057] Furthermore, in this exemplary embodiment, the Agent program is used to replace the complex protocol stack and the corresponding Ethernet hardware, which can greatly simplify the configuration of the first MCU, has portability, and is not restricted by hardware conditions.

[0058] Figure 5 A flow chart of a communication method provided according to another embodiment of the present application is shown. The execution subject of the communication method may be a computing device with a computing and processing function, such as the first MPU and the second MPU in the vehicle control device in the second application scenario. The communication method includes steps S501 to S503. The communication method in the example embodiment is described in detail below in conjunction with the accompanying drawings.

[0059] Reference Figure 5 As shown, step S501: the first microprocessor obtains a second SOME / IP service message through the vehicle-mounted Ethernet.

[0060] In an exemplary embodiment, in combination with the above exemplary embodiment, the vehicle control device further includes a second MCU and a second MPU, the second MCU and the second MPU communicate with each other, and the second MPU communicates with the vehicle Ethernet. The second SOME / IP service message is a service message generated by the second MPU according to the SOME / IP protocol of the Ethernet.

[0061] It can be understood that the second MPU generates a second SOME / IP service message and sends the second SOME / IP service message to the in-vehicle Ethernet, and the first MPU communicating with the in-vehicle Ethernet receives the second SOME / IP service message.

[0062] Step S502: Generate a second message based on the second SOME / IP service message.

[0063] In an exemplary embodiment, the second message is a message obtained by parsing and converting the second SOME / IP service message by the first MPU. The second message is a virtual SOME / IP message service and can be received by the SOME / IP interface of the first MCU.

[0064] In combination with the above exemplary embodiments, refer to Figure 4 As shown, the first MPU includes a proxy module, and the proxy module includes a data conversion unit and a SOME / IP proxy unit. The SOME / IP proxy unit of the proxy module of the first MPU parses the second SOME / IP service message; the data conversion unit of the proxy module of the first MPU converts the parsed second SOME / IP service message to generate a second message.

[0065] It can be understood that the agent module is an Agent program, which maps the second SOME / IP service message to the action Agent function. The Agent function parses the second SOME / IP service message and generates a second message after converting the data format. The second message is a virtual SOME / IP message service, which can be received by the SOME / IP interface of the first MCU through inter-core communication.

[0066] Step S503: the first microprocessor sends the second message to the first micro control unit in an inter-core communication manner, so that the first micro control unit communicates with the second micro control unit.

[0067] In an example embodiment, the first MPU performs inter-core communication with the first MCU, and the first MPU sends the second message to the first MCU through the inter-core communication. In a specific embodiment, the first MPU sends the second message to the SOME / IP interface of the first MCU in the form of inter-core communication.

[0068] In combination with the above example embodiments, the Agent function parses the second SOME / IP service message, converts the data format and generates a second message, where the second message is a virtual SOME / IP message service. The virtual SOME / IP message service is sent to the SOME / IP interface of the first MCU through inter-core communication. The SOME / IP interface of the first MCU receives the second message to indirectly realize communication between the first MCU and the second MCU.

[0069] according to Figure 5 According to the technical solution in the example embodiment, the first MPU obtains the second SOME / IP service message through the in-vehicle Ethernet, and the second SOME / IP service message is generated by the agent module of the second MPU; the agent module of the first MPU converts and parses the second SOME / IP service message to generate a second message; the first MPU sends the second message to the first MCU in the form of inter-core communication, and the first MCU receives the second message through the SOME / IP interface of the first MCU and feeds it back to the application in the first MCU, so as to indirectly realize communication between the first MCU and the second MCU.

[0070] In the present application, by adding a first MPU on the first MCU side through inter-core communication, the proxy module of the first MPU has an Agent program, and the Agent program can convert the virtual SOME / IP message information from the first MCU into a service message that complies with the SOME / IP protocol and send it to the vehicle Ethernet; it can also convert the service message of the SOME / IP protocol from other MCUs into a virtual SOME / IP protocol service message and feed it back to the first MCU, so that the first MCU and the second MCU can communicate indirectly. It avoids the integration of complex protocol stacks and corresponding hardware on the first MCU side or the second MCU side, and reduces the dependence on hardware.

[0071] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0072] Figure 6 A structural diagram of a communication device provided according to an exemplary embodiment of the present application is shown.

[0073] The communication device 600 in the embodiment of the present application includes: an acquisition module 601 , a parsing and generating module 602 , and a communication module 603 .

[0074] The acquisition module 601 is used for the first microprocessor to acquire first information from the first microcontroller in an inter-core communication manner, where the first information is generated by an application program of the first microcontroller calling a service-oriented scalable middleware SOME / IP interface;

[0075] The parsing and generating module 602 is used to parse and generate a first SOME / IP service message based on the first information;

[0076] The communication module 603 is used to enable the first microprocessor to communicate with other nodes on the in-vehicle Ethernet based on the first SOME / IP service message.

[0077] Furthermore, in one embodiment of the present application, the above-mentioned parsing and generating module 602 is also used to parse the first message and generate a first SOME / IP service message based on the proxy module of the first microprocessor.

[0078] Optionally, in one embodiment of the present application, the above-mentioned parsing and generating module 602 is also used to convert the first message based on the data conversion unit of the proxy module; the Some / IP proxy unit based on the proxy module parses the converted first message to generate a first SOME / IP service message.

[0079] Optionally, in one embodiment of the present application, the above-mentioned acquisition module 601 is also used for the first microprocessor to obtain the first information from the SOME / IP interface of the first microcontroller unit in an inter-core communication manner, the SOME / IP interface is a virtual SOME / IP interface, and the first message is a virtual SOME / IP service message.

[0080] Optionally, in one embodiment of the present application, the vehicle-mounted control device further includes a second microcontroller unit and a second microprocessor, the second microprocessor communicates with the second microcontroller unit core, and the second microprocessor communicates with the vehicle-mounted Ethernet;

[0081] The acquisition module 601 is further used for the first microprocessor to acquire a second SOME / IP service message through the vehicle Ethernet, where the second SOME / IP service message is generated by the second microprocessor;

[0082] The above-mentioned parsing and generating module 602 is further used to generate a second message based on the second SOME / IP service message;

[0083] The communication module is also used for the first microprocessor to send the second message to the first microcontroller unit in an inter-core communication manner, so that the first microcontroller unit communicates with the second microcontroller unit.

[0084] Optionally, the above-mentioned parsing and generating module 602 is also used to parse the second SOME / IP service message based on the SOME / IP proxy unit of the proxy module; based on the data conversion unit of the proxy module, convert the parsed second SOME / IP service message to generate a second message.

[0085] Optionally, the communication module 603 is further used for the first microprocessor to send the second message to the SOME / IP interface of the first micro control unit in an inter-core communication manner, where the second message is a virtual SOME / IP message service.

[0086] It should be noted that when the communication device provided in the above embodiment executes the communication method, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the communication device and the communication method embodiment provided in the above embodiment belong to the same concept. Therefore, for details not disclosed in the device embodiment of the present application, please refer to the above-mentioned communication method embodiment of the present application, which will not be repeated here.

[0087] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0088] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the method of any of the above embodiments are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0089] An embodiment of the present application also provides a vehicle, including an on-board control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of any of the above-mentioned embodiments when executing the program.

[0090] Figure 7 A structural diagram of a vehicle provided in one embodiment of the present application is shown. Figure 8 The structure of an on-board control device of a vehicle according to an exemplary embodiment of the present application is schematically shown.

[0091] See also Figure 7 and Figure 8 As shown, the vehicle 700 includes an on-board control device 800 , and the on-board control device 800 includes: a processor 801 and a memory 802 .

[0092] In the embodiment of the present application, the processor 801 is the control center of the computer system, which can be the processor of a physical machine or the processor of a virtual machine. The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state.

[0093] In an embodiment of the present application, the above-mentioned processor 801 is specifically used for: the first microprocessor obtains first information from the first microcontroller unit in an inter-core communication manner, where the first information is generated by an application program of the first microcontroller unit calling a service-oriented scalable middleware SOME / IP interface; based on the first information, parsing and generating a first SOME / IP service message; based on the first SOME / IP service message, enabling the first microprocessor to communicate with other nodes on the vehicle Ethernet.

[0094] Furthermore, in one embodiment of the present application, the processor 801 is further specifically configured to: parse the first message and generate a first SOME / IP service message based on a proxy module of the first microprocessor.

[0095] Optionally, the processor 801 is further specifically configured to: convert the first message based on a data conversion unit of the proxy module; and parse the converted first message based on a Some / IP proxy unit of the proxy module to generate a first SOME / IP service message.

[0096] Optionally, the processor 801 is further specifically used for: the first microprocessor obtains the first information from the SOME / IP interface of the first micro control unit in an inter-core communication manner, the SOME / IP interface is a virtual SOME / IP interface, and the first message is a virtual SOME / IP service message.

[0097] Optionally, the above-mentioned processor 801 is also specifically used for: the first microprocessor obtains a second SOME / IP service message through the in-vehicle Ethernet, and the second SOME / IP service message is generated by the second microprocessor; based on the second SOME / IP service message, a second message is generated; the first microprocessor sends the second message to the first microcontroller unit in an inter-core communication manner, so that the first microcontroller unit communicates with the second microcontroller unit.

[0098] Optionally, the processor 801 is further specifically configured to: parse the second SOME / IP service message based on the SOME / IP proxy unit of the proxy module; and convert the parsed second SOME / IP service message based on the data conversion unit of the proxy module to generate a second message.

[0099] Optionally, the processor 801 is further specifically configured to: the first microprocessor sends the second message to the SOME / IP interface of the first micro control unit in an inter-core communication manner, where the second message is a virtual SOME / IP message service.

[0100] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage terminals, flash memory storage terminals. In some embodiments of the present application, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 801 to implement the method in the embodiment of the present application.

[0101] In some embodiments, the vehicle-mounted control device 800 further includes: a peripheral terminal interface 803 and at least one peripheral terminal. The processor 801, the memory 802 and the peripheral terminal interface 803 may be connected via a bus or a signal line. Each peripheral terminal may be connected to the peripheral terminal interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral terminal includes: at least one of a display screen 804, a camera 805 and an audio circuit 806.

[0102] The peripheral terminal interface 803 may be used to connect at least one peripheral terminal related to input / output (I / O) to the processor 801 and the memory 802. In some embodiments of the present application, the processor 801, the memory 802, and the peripheral terminal interface 803 are integrated on the same chip or circuit board; in some other embodiments of the present application, any one or two of the processor 801, the memory 802, and the peripheral terminal interface 803 may be implemented on a separate chip or circuit board. This embodiment of the present application does not specifically limit this.

[0103] The display screen 804 is used to display the user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 804 is a touch display screen, the display screen 804 also has the ability to collect touch signals on the surface or above the surface of the display screen 804. The touch signal can be input to the processor 801 as a control signal for processing. At this time, the display screen 804 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments of the present application, the display screen 804 can be one, and the front panel of the vehicle-mounted control device 800 is set; in other embodiments of the present application, the display screen 804 can be at least two, which are respectively set on different surfaces of the vehicle-mounted control device 800 or are folded; in some other embodiments of the present application, the display screen 804 can be a flexible display screen, which is set on the curved surface or folded surface of the vehicle-mounted control device 800. Even, the display screen 804 can also be set to a non-rectangular irregular figure, that is, a special-shaped screen. The display screen 804 can be made of materials such as a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.

[0104] Camera 805 is used to capture images or videos. Optionally, camera 805 includes a front camera and a rear camera. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and virtual reality (VR) shooting function or other fusion shooting functions. In some embodiments of the present application, camera 805 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0105] The audio circuit 806 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 801 for processing. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the vehicle-mounted control device 800. The microphone may also be an array microphone or an omnidirectional collection microphone.

[0106] The power supply 805 is used to power various components in the vehicle-mounted control device 800. The power supply 805 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 805 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0107] The terminal structure block diagram shown in the embodiment of the present application does not constitute a limitation on the vehicle-mounted control device 800. The vehicle-mounted control device 800 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0108] In this application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or order; the term "plurality" refers to two or more, unless otherwise expressly defined. The terms "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances.

[0109] In the description of the present application, it is necessary to understand that the terms "upper", "lower", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or unit referred to must have a specific direction, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present application.

[0110] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A communication method, characterized in that: The communication method is applied to a vehicle-mounted control device, the vehicle-mounted control device at least comprising a first microcontroller unit and a first microprocessor, the first microprocessor communicating with the vehicle-mounted Ethernet, the method comprising: The first microprocessor obtains first information from the first microcontroller in an inter-core communication manner, the first information being generated by an application of the first microcontroller invoking a service-oriented scalable middleware SOME / IP interface, the scalable middleware SOME / IP interface being a virtual scalable middleware SOME / IP interface, and the first information being a virtual SOME / IP service message; Based on the first information, parse and generate a first SOME / IP service message; Based on the first SOME / IP service message, the first microprocessor communicates with other nodes on the in-vehicle Ethernet; The parsing and generating of the first SOME / IP service message based on the first information includes: mapping the virtual SOME / IP service message to an action Agent function, and converting and parsing the data format of the virtual SOME / IP service message by the action Agent function to generate the first SOME / IP service message that complies with the Ethernet protocol stack.

2. The method according to claim 1, characterized in that The first microprocessor obtains first information from the first micro control unit in an inter-core communication manner, including: The first microprocessor obtains the first information from the SOME / IP interface of the first microcontroller unit in an inter-core communication manner, and the SOME / IP interface is a virtual SOME / IP interface.

3. The method according to claim 1, characterized in that The vehicle-mounted control device further includes a second microcontroller unit and a second microprocessor, the second microprocessor communicates with the second microcontroller unit core, and the second microprocessor communicates with the vehicle-mounted Ethernet; the method further includes: The first microprocessor obtains a second SOME / IP service message through the in-vehicle Ethernet, where the second SOME / IP service message is generated by the second microprocessor; generating a second message based on the second SOME / IP service message; The first microprocessor sends the second message to the first micro control unit in an inter-core communication manner, so that the first micro control unit communicates with the second micro control unit.

4. The method according to claim 3, characterized in that The first microprocessor includes a proxy module, and the generating a second message based on the second SOME / IP service message includes: Parsing the second SOME / IP service message based on the SOME / IP proxy unit of the proxy module; The data conversion unit based on the proxy module converts the parsed second SOME / IP service message to generate the second message.

5. The method according to claim 3, characterized in that: The first microprocessor sends the second message to the first micro control unit in an inter-core communication manner, including: The first microprocessor sends the second message to the SOME / IP interface of the first micro control unit in an inter-core communication manner, and the second message is a virtual SOME / IP message service.

6. A communication device, characterized in that: The communication device is applied to a vehicle-mounted control device, the vehicle-mounted control device at least includes a first microcontroller unit and a first microprocessor, the first microprocessor communicates with the vehicle-mounted Ethernet, the first microprocessor includes a proxy module, and the device includes: an acquisition module, configured for the first microprocessor to acquire first information from the first microcontroller in an inter-core communication manner, wherein the first information is generated by an application of the first microcontroller invoking a service-oriented scalable middleware SOME / IP interface, the scalable middleware SOME / IP interface is a virtual scalable middleware SOME / IP interface, and the first information is a virtual SOME / IP service message; A parsing and generating module, configured to parse and generate a first SOME / IP service message based on the first information; a communication module, configured to enable the first microprocessor to communicate with other nodes on the in-vehicle Ethernet based on the first SOME / IP service message; The proxy module is used to map the virtual SOME / IP service message to the action Agent function, and the action Agent function converts and parses the data format of the virtual SOME / IP service message to generate the first SOME / IP service message that complies with the Ethernet protocol stack.

7. A vehicle, comprising an on-board control device, the on-board control device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the communication method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the communication method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Chip service proxy method and related equipment

    CN114301981A

  • SOME / IP service management method and related equipment

    CN114363425A