Cabin communication method and device, vehicle and storage medium
The data frames are broadcast through the main system node and the routing information is updated, which solves the problem that data cannot be delivered after dynamically adding nodes in cockpit communication, and realizes efficient data transmission.
Patent Information
- Application Number
- CN202510567884.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-07-11
AI Technical Summary
The existing cockpit communication method cannot effectively deliver data after dynamically adding communication nodes.
The data frame of the subsystem node is received through the main system node. If the receiver is unknown, the data frame will be broadcast and the receiving node will be determined based on the reply frame, and the routing information will be updated to ensure the data is delivered.
It can still ensure the delivery of data after dynamically adding communication nodes, and improve the decoupling efficiency and reliability of communication.
Smart Images

Figure CN120302370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of in-vehicle communication, and particularly to a cockpit communication method, device, vehicle, and storage medium. Background Art
[0002] An intelligent cockpit is an integrated in-vehicle digital platform integrating a variety of IT and artificial intelligence technologies, which can provide an intelligent experience for drivers. A vehicle cockpit may include a display screen, a camera, a sound system, lights, seats, etc.
[0003] Currently, the communication methods of intelligent cockpits mainly include two categories: wired connection and wireless connection. Wired connections include CAN bus, in-vehicle Ethernet, and AVB Ethernet audio / video bridging technology, etc. Wireless connections include WI-FI and Bluetooth, etc. In existing cockpits, the communication between in-cockpit nodes is usually point-to-point communication or data broadcasting.
[0004] However, in the existing cockpit communication methods, there is too much dependence on node communication. The sender must know the receiver clearly. If communication nodes are dynamically added, the data cannot be delivered. Summary of the Invention
[0005] The present invention provides a cockpit communication method, device, vehicle, and storage medium to solve the problem of communication failure after dynamically adding communication nodes.
[0006] In a first aspect, the present invention provides a cockpit communication method, which is applied to a main system node in a cockpit and includes:
[0007] Receiving a current data frame sent by a first subsystem node in the cockpit, where the current main system node can communicate with the subsystem node;
[0008] If it is determined according to the routing information that a second subsystem node for receiving the data in the current data frame is unknown, then broadcasting the data in the current data frame to target nodes, and determining the second subsystem node of the current data frame according to the received response frame, where the routing information includes the association relationship between the subsystem node and the data frame, and the target nodes are the nodes in the subsystem nodes except the first subsystem node that sends the data;
[0009] Sending the data in the current data frame to the second subsystem node, and updating the association relationship according to the second subsystem node.
[0010] In a second aspect, the present invention provides a cockpit communication device, including:
[0011] A data receiving module, configured to receive a current data frame sent by a first subsystem node in the cockpit, where the current main system node can communicate with the subsystem node;
[0012] A receiving node determination module, configured to, if it is determined according to routing information that the second subsystem node for receiving the data in the current data frame is unknown, broadcast the data in the current data frame to a target node, and determine the second subsystem node of the current data frame according to the received response frame, where the routing information includes the association relationship between the subsystem node and the data frame, and the target node is a node other than the first subsystem node that sends the data frame;
[0013] A sending and updating module, configured to send the data in the current data frame to the second subsystem node, and update the association relationship according to the second subsystem node.
[0014] In a third aspect, the present invention provides a vehicle, and the cockpit in the vehicle includes:
[0015] At least one processor;
[0016] And a memory communicatively connected to at least one processor;
[0017] Wherein, the memory stores a computer program executable by at least one processor, and the computer program is executed by at least one processor so that at least one processor can execute the cockpit communication method in the first aspect above.
[0018] In a fourth aspect, the present invention provides a computer-readable storage medium, and the computer-readable storage medium stores computer instructions for causing a processor to implement the cockpit communication method in the first aspect above when executed.
[0019] The cockpit communication solution provided by the present invention constructs a cockpit communication network composed of a main system node and subsystem nodes. When the subsystem node that sends data does not know the receiving node, the main system node will broadcast the data, determine the receiving node of the data according to the returned response frame, and update the routing information so that when the subsystem node that sends the data sends data next time, the main system node can quickly determine the receiving node of the data according to the routing information, realizing the decoupling of communication data and still ensuring the delivery of data after dynamically adding communication nodes.
[0020] It should be understood that the content described in this part is not intended to identify the key or important features of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Description of the Drawings
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0022] Figure 1 It is a flowchart of a cockpit communication method provided according to Embodiment 1 of the present invention;
[0023] Figure 2 It is a schematic diagram of node communication provided according to Embodiment 1 of the present invention;
[0024] Figure 3 It is a flowchart of a cockpit communication method provided according to Embodiment 2 of the present invention;
[0025] Figure 4 It is a schematic structural diagram of a cockpit communication device provided according to Embodiment 3 of the present invention;
[0026] Figure 5 It is a schematic structural diagram of a vehicle cockpit provided according to Embodiment 4 of the present invention. Detailed implementation manners
[0027] In order to enable those skilled in the art to better understand the solution of the present invention, the following clearly and completely describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present invention are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In the description of the present invention, unless otherwise specified, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily limit to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1 A flowchart of a cockpit communication method is provided for Embodiment 1 of the present invention. This embodiment is applicable to the situation of cockpit communication. This method can be executed by a cockpit communication device, which can be implemented in the form of hardware and / or software. The cockpit communication device can be configured in a vehicle, which can be composed of two or more physical entities or one physical entity.
[0031] As Figure 1 shown, a cockpit communication method provided in Embodiment 1 of the present invention can be applied to the main system node in the cockpit and specifically includes the following steps:
[0032] S101. Receive the current data frame sent by the first subsystem node in the cockpit, where the current main system node can communicate with the subsystem node.
[0033] Figure 2 It is a schematic diagram of node communication. As Figure 2As shown in the figure, the cockpit can be equipped with a main system (communication) node, such as a QNX node, and subsystem nodes, such as an MCU node, an Android node, a FreeRTOS node, and an Other node, etc. The QNX node can communicate with the MCU node through SPI, and the QNX node can communicate with other subsystem nodes through Socket. Among them, FreeRTOS is a small real-time operating system kernel, which is a lightweight operating system. QNX is a Unix-like real-time operating system. The Other node is a node of other subsystems in the cockpit, such as an HUD (Head-Up Display System) node, etc.
[0034] In this embodiment, the main system node in the cockpit can receive the current data frame sent by the (first) subsystem node. Among them, the current main system node can communicate with multiple subsystem nodes, and the subsystem nodes communicate with each other through the main system node.
[0035] S102. If the second subsystem node that receives the data in the current data frame is unknown according to the routing information, then broadcast the data in the current data frame to the target nodes, and determine the second subsystem node of the current data frame according to the received response frame. Among them, the routing information includes the association relationship between the subsystem node and the data frame, and the target node is the node other than the first subsystem node that sends the data among the subsystem nodes.
[0036] In this embodiment, the routing information (such as a routing table) stored in the main system node includes the association relationship between the subsystem node and the data frame. If the routing information does not contain the current data frame, or does not contain the association relationship between the current data frame and the subsystem node, it means that the recipient of the current data frame is unknown, that is, the second subsystem node is unknown. The main system node can broadcast the data in the current data frame to other subsystem nodes, that is, the target nodes. Then determine the sender (subsystem node) corresponding to the response frame as the destination node of the current data frame, that is, the second subsystem node. Among them, when the subsystem node sends a response frame to the main system node, it means that it is interested in the data in the current data frame sent by the main system node.
[0037] S103. Send the data in the current data frame to the second subsystem node, and update the association relationship according to the second subsystem node.
[0038] In this embodiment, the main system node can forward the data in the current data frame to the second subsystem node, and use the second subsystem node to update the association relationship in the routing information, such as generating the association relationship between the current data frame and the second subsystem node, and adding this relationship to the routing information.
[0039] In the technical solution of the embodiment of the present invention, a cockpit communication network composed of a main system node and a subsystem node is constructed. When the subsystem node sending data does not know the receiving node, the main system node will broadcast the data, determine the receiving node of the data according to the returned response frame, and update the routing information so that when the subsystem node sending the data sends data next time, the main system node can quickly determine the receiving node of the data according to the routing information, realizing the decoupling of communication data and still ensuring the delivery of data after dynamically adding communication nodes.
[0040] Optionally, before broadcasting the data in the current data frame to the target node if it is determined according to the routing information that the second subsystem node receiving the data in the current data frame is unknown, it further includes: if the destination data in the current data frame is the first preset data, broadcasting the data in the current data frame to the target node, where the first preset data is used to represent that the data in the current data frame needs to be broadcast to the target node; if the destination data in the current data frame is the second preset data, forwarding the data in the current data frame to the second subsystem node, where the second preset data is used to represent the second subsystem node.
[0041] Specifically, the structure of the data frame can be preset. For example, the current data frame can include a message header (2 bytes), length (4 bytes), data ID (4 bytes), source address (1 byte), destination (1 byte), data (9 bytes and above), and CRC (4 bytes), etc. If the destination data in the current data frame is the first preset data, such as 0XFF, it means that the destination of the current data frame is the target node, and the main system node needs to broadcast the data in the current data frame to the target node. If the destination data in the current data frame is the second preset data, such as 1, it means that the destination of the current data frame is the subsystem node with the node identifier "1", and the main system node needs to forward the data in the current data frame to this subsystem node. Among them, the routing information can include the node identifier of the target node. The source address data in the data frame is used to represent the node identifier of the sender. The destination data in the data frame is used to represent the destination of the data in the data frame.
[0042] Optionally, determining the second subsystem node of the current data frame according to the received response frame includes: determining the subsystem node corresponding to the received acknowledgment character ACK frame as the second subsystem node of the current data frame.
[0043] Specifically, the subsystem node that receives the data in the current data frame, if interested in the data, can send an ACK (acknowledgment character) frame to the current main system node. The subsystem node that sends the ACK frame is the second subsystem node.
[0044] Optionally, before receiving the current data frame sent by the first subsystem node in the receiving cockpit, it further includes: after the cockpit is powered on, receiving the first synchronization data frame sent by the subsystem node, and updating the routing information according to the first synchronization data frame, where the first synchronization data frame includes the node identifier of the subsystem node, the subsystem node includes the first newly added subsystem node, and the routing information includes the association relationship between the node identifier of the subsystem node and the data frame.
[0045] Specifically, after the cockpit is powered on, during the startup phase of the cockpit system, the subsystem node can broadcast the first synchronization data frame to the main system node. After receiving it, the main system node can save the source address data in the first synchronization data frame to the routing information to complete node synchronization. Among them, the source address data in the first synchronization data frame is the node identifier.
[0046] Optionally, after updating the routing information according to the first synchronization data frame, it further includes: receiving the second synchronization data frame sent after the initialization of the second newly added subsystem node, and updating the routing information according to the second synchronization data frame, where the second synchronization data frame includes the node identifier of the second newly added subsystem node.
[0047] Specifically, during the operation phase of the cockpit, if there is a (second) newly added subsystem node, the initialized newly added subsystem node will send the second synchronization data frame to the main system node. After receiving it, the main system node can save the source address data in the second synchronization data frame to the routing information to complete the synchronization of the newly added node. Among them, the source address data in the second synchronization data frame is the node identifier.
[0048] Embodiment 2
[0049] Figure 3 The flowchart of a cockpit communication method provided by Embodiment 2 of the present invention. The technical solution of the embodiment of the present invention is further optimized on the basis of the above optional technical solutions, and a specific method of cockpit communication is given.
[0050] Optionally, the routing information includes the association relationship between the subsystem node and the data identity identifier in the data frame; among them, before determining that the second subsystem node receiving the data in the current data frame is unknown according to the routing information, it further includes: if the destination data in the current data frame is the third preset data and the routing information does not include the data identity identifier in the current data frame, it is determined that the second subsystem node receiving the data in the current data frame is unknown, where the third preset data is used to indicate that the second subsystem node is unknown. The advantage of this setting is that by defining the destination data in the current data frame, the main system node can quickly determine whether the recipient of the current data frame is unknown.
[0051] Optionally, the routing information includes the node identifier of the subsystem node, the data identity identifier in the data frame, the learning identifier, and the association relationship between the node identifier of the subsystem node corresponding to the data in the received data frame. The learning identifier is used to indicate whether the subsystem node is willing to receive the data in the data frame corresponding to the data identity identifier. Among them, updating the association relationship according to the second subsystem node includes: updating the learning identifier in the association relationship according to the data identity identifier in the current data frame. The advantage of this setting is that by defining and updating the routing information, the destination of the data frame can be quickly and accurately determined from the routing information in subsequent communications, and there is no need to label the destination node in the data frame sent by the sender, improving the communication efficiency and further ensuring the decoupling of communication data.
[0052] As Figure 3 shown, a cockpit communication method provided in Embodiment 2 of the present invention specifically includes the following steps:
[0053] S201. After the cockpit is powered on, receive the first synchronization data frame sent by the subsystem node and update the routing information according to the first synchronization data frame.
[0054] Among them, the routing information includes the node identifier of the subsystem node, the data identity identifier in the data frame, the learning identifier, and the association relationship between the node identifier of the subsystem node corresponding to the data in the received data frame. The learning identifier is used to indicate whether the subsystem node is willing to receive the data in the data frame corresponding to the data identity identifier.
[0055] Exemplarily, the structure of the routing information can be expressed as:
[0056] Sender node identifier:
[0057] [Data ID1, learning identifier, receiver node identifier]
[0058] [Data ID2, learning identifier, receiver node identifier]
[0059] …
[0060] Among them, the "sender node identifier" is the subsystem node that sends the data frame, the "receiver node identifier" is the subsystem node that receives the data frame, and the "data ID" is the data identity identifier. "Learning identifier" = 0 indicates that the subsystem node corresponding to the receiver node identifier in the same row is not willing to receive the data corresponding to the data ID in the same row, and "learning identifier" = 1 indicates that the subsystem node corresponding to the receiver node identifier in the same row is willing to receive the data corresponding to the data ID in the same row.
[0061] S202. Receive the current data frame sent by the first subsystem node in the cockpit.
[0062] S203. Determine whether the destination data in the current data frame is the first preset data. If so, execute step 204; if not, execute step 205.
[0063] Specifically, the destination data in the current data frame can be any one of the first preset data, the second preset data, and the third preset data.
[0064] S204. Broadcast the data in the current data frame to the target node and execute step S210.
[0065] S205. Determine whether the destination data in the current data frame is the second preset data. If so, execute step 206; if not, execute step 207.
[0066] S206. Forward the data in the current data frame to the second subsystem node and update the learning identifier in the associated relationship in the routing information according to the data identity identifier in the current data frame.
[0067] Specifically, if the data identity identifier in the current data frame is data ID3, the node identifier of the subsystem node sending the current data frame is A, and the node identifier of the second subsystem node is B, then the information area with the sending node identifier A can be determined from the routing information first, and then "[data ID3, 1, B]" is written into the routing information. The next time the main system node receives a data frame containing data ID3 sent by the subsystem node with the node identifier A, it can quickly determine the destination node as the subsystem node with the node identifier B by querying the routing information.
[0068] S207. Determine whether the routing information contains the data identity identifier in the current data frame. If so, execute step 208; if not, execute step 209.
[0069] S208. Determine the second subsystem node according to the routing information and execute step 206.
[0070] Exemplarily, if the data identity identifier in the current data frame is data ID1, the node identifier of the subsystem node sending the current data frame is A, and the structure of the routing information is as described in the above example, then the associated learning identifier and destination node can be quickly determined. The node corresponding to the receiving node identifier with the learning identifier = 1 is determined as the second subsystem node.
[0071] S209. Determine that the second subsystem node receiving the data in the current data frame is unknown and execute step 204.
[0072] Among them, the third preset data is used to represent that the second subsystem node is unknown.
[0073] S210. Determine the subsystem node corresponding to the received acknowledgement character ACK frame as the second subsystem node of the current data frame.
[0074] S211. Send the data in the current data frame to the second subsystem node, and update the learning identifier in the association relationship in the routing information according to the data identity identifier in the current data frame.
[0075] The cockpit communication method provided by the embodiments of the present invention supports dynamic node and dynamic routing communication. By defining the destination data in the current data frame, the master system node can quickly determine whether the recipient of the current data frame is unknown. By defining and updating the routing information, subsequent communication can quickly and accurately determine the destination of the data frame from the routing information, and there is no need to mark the destination node in the data frame sent by the sender, and it can ensure that the data can effectively reach the destination, reduce frequent communication of the data, improve the communication efficiency, and further ensure the decoupling of the communication data.
[0076] Embodiment III
[0077] Figure 4 FIG. is a schematic structural diagram of a cockpit communication device provided by Embodiment III of the present invention. As Figure 4 shown, the device includes: a data receiving module 301, a receiving node determining module 302, and a sending and updating module 303, where:
[0078] The data receiving module is configured to receive a current data frame sent by a first subsystem node in the cockpit, where the current master system node can communicate with the subsystem node;
[0079] The receiving node determining module is configured to, if it is determined according to the routing information that the second subsystem node for receiving the data in the current data frame is unknown, broadcast the data in the current data frame to the target nodes, and determine the second subsystem node of the current data frame according to the received response frame, where the routing information includes the association relationship between the subsystem node and the data frame, and the target nodes are the nodes in the subsystem nodes except the sending first subsystem node;
[0080] The sending and updating module is configured to send the data in the current data frame to the second subsystem node, and update the association relationship according to the second subsystem node.
[0081] The cockpit communication device provided by the embodiment of the present invention constructs a cockpit communication network composed of a main system node and a subsystem node. When the subsystem node sending data does not know the receiving node, the main system node will broadcast the data, determine the receiving node of the data according to the returned response frame, and update the routing information so that when the subsystem node sending the data sends data next time, the main system node can quickly determine the receiving node of the data according to the routing information, realizing the decoupling of communication data and still ensuring the delivery of data after dynamically adding communication nodes.
[0082] Optionally, the device further includes:
[0083] A broadcast module, configured to broadcast the data in the current data frame to the target node if the destination data in the current data frame is a first preset data before broadcasting the data in the current data frame to the target node if the second subsystem node that receives the data in the current data frame is unknown according to the routing information, where the first preset data is used to indicate that the data in the current data frame needs to be broadcast to the target node;
[0084] A sending module, configured to forward the data in the current data frame to the second subsystem node if the destination data in the current data frame is a second preset data, where the second preset data is used to indicate the second subsystem node.
[0085] Optionally, the routing information includes the association relationship between the subsystem node and the data identity identifier in the data frame.
[0086] Optionally, the device further includes:
[0087] A node determination module, configured to determine that the second subsystem node that receives the data in the current data frame is unknown if the destination data in the current data frame is a third preset data and the routing information does not include the data identity identifier in the current data frame before it is determined that the second subsystem node that receives the data in the current data frame is unknown according to the routing information, where the third preset data is used to indicate that the second subsystem node is unknown.
[0088] Optionally, the routing information includes the association relationship between the node identifier of the subsystem node, the data identity identifier in the data frame, the learning identifier, and the node identifier of the subsystem node corresponding to the data in the received data frame, and the learning identifier is used to indicate whether the subsystem node is willing to receive the data in the data frame corresponding to the data identity identifier.
[0089] Optionally, the sending and updating module includes:
[0090] An update unit, configured to update the learning identifier in the association relationship according to the data identity identifier in the current data frame.
[0091] Optionally, the apparatus further includes:
[0092] A first update module, configured to, before receiving the current data frame sent by the first subsystem node in the receiving cockpit, after the cockpit is powered on, receive a first synchronization data frame sent by the subsystem node, and update the routing information according to the first synchronization data frame, where the first synchronization data frame includes the node identifier of the subsystem node, the subsystem node includes a first newly added subsystem node, and the routing information includes the node identifier of the subsystem node and the association relationship of the data frame.
[0093] Optionally, the apparatus further includes:
[0094] A second update module, configured to, after updating the routing information according to the first synchronization data frame, receive a second synchronization data frame sent by the second newly added subsystem node after initialization, and update the routing information according to the second synchronization data frame, where the second synchronization data frame includes the node identifier of the second newly added subsystem node.
[0095] Optionally, the receiving node determination module includes:
[0096] A node determination unit, configured to determine the subsystem node corresponding to the received acknowledgement character ACK frame as the second subsystem node of the current data frame.
[0097] The cockpit communication apparatus provided by the embodiments of the present invention can execute the cockpit communication method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0098] Embodiment 4
[0099] Figure 5 FIG. shows a schematic structural diagram of a vehicle cockpit 40 that can be used to implement the embodiments of the present invention. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0100] As Figure 5As shown, the cockpit 40 in a vehicle includes at least one processor 41 and a memory communicatively connected to the at least one processor 41, such as a read-only memory (ROM) 42, a random access memory (RAM) 43, etc. Among them, the memory stores computer programs executable by the at least one processor. The processor 41 can execute various appropriate actions and processes according to the computer programs stored in the read-only memory (ROM) 42 or the computer programs loaded from the storage unit 48 into the random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the vehicle cockpit 40 can also be stored. The processor 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. The input / output (I / O) interface 45 is also connected to the bus 44.
[0101] Multiple components in the vehicle cockpit 40 are connected to the I / O interface 45, including: an input unit 46, such as a keyboard, a mouse, etc.; an output unit 47, such as various types of displays, speakers, etc.; a storage unit 48, such as a disk, an optical disc, etc.; and a communication unit 49, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 49 allows the vehicle cockpit 40 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The processor 41 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 41 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 41 executes the various methods and processes described above, such as the cockpit communication method.
[0103] In some embodiments, the cockpit communication method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 48. In some embodiments, part or all of the computer program can be loaded and / or installed onto the vehicle cockpit 40 via the ROM 42 and / or the communication unit 49. When the computer program is loaded into the RAM 43 and executed by the processor 41, one or more steps of the cockpit communication method described above can be executed. Alternatively, in other embodiments, the processor 41 can be configured to execute the cockpit communication method in any other appropriate way (for example, by means of firmware).
[0104] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGA), application specific integrated circuits (ASIC), application specific standard products (ASSP), systems on chip (SOC), complex programmable logic devices (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0105] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0106] The computer device provided above can be used to execute the cockpit communication method provided in any of the above embodiments, and has the corresponding functions and beneficial effects.
[0107] Embodiment 5
[0108] In the context of the present invention, a computer-readable storage medium can be a tangible medium, and the computer-executable instructions are used to execute a cockpit communication method when executed by a computer processor. The method includes:
[0109] Receiving a current data frame sent by a first subsystem node in the cockpit, wherein the current master system node can communicate with the subsystem node;
[0110] If it is determined according to the routing information that the second subsystem node for receiving the data in the current data frame is unknown, then broadcasting the data in the current data frame to the target nodes, and determining the second subsystem node of the current data frame according to the received response frame, wherein the routing information includes the association relationship between the subsystem nodes and the data frames, and the target nodes are the nodes in the subsystem nodes except the first subsystem node that sends the data;
[0111] Send the data in the current data frame to the second subsystem node, and update the association relationship according to the second subsystem node.
[0112] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
[0113] The computer device provided above can be used to execute the cockpit communication method provided in any of the above embodiments, and has the corresponding functions and beneficial effects.
[0114] It should be noted that in the embodiments of the above cockpit communication device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0115] Note that the above is only the preferred embodiment of the present invention and the applied technical principle. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A cockpit communication method, which is applied to a main system node in a cockpit, and is characterized in that, Including: Receiving a current data frame sent by a first subsystem node in the cockpit, where the current main system node can communicate with the subsystem node; If a second subsystem node that receives the data in the current data frame is unknown according to the routing information, broadcasting the data in the current data frame to a target node, and determining the second subsystem node of the current data frame according to the received response frame, where the routing information includes the association relationship between the subsystem node and the data frame, and the target node is a node other than the first subsystem node that sends the data frame among the subsystem nodes; Sending the data in the current data frame to the second subsystem node, and updating the association relationship according to the second subsystem node.
2. The method according to claim 1, wherein Before the step of broadcasting the data in the current data frame to the target node if a second subsystem node that receives the data in the current data frame is unknown according to the routing information, it further includes: If the destination data in the current data frame is a first preset data, broadcasting the data in the current data frame to the target node, where the first preset data is used to indicate that the data in the current data frame needs to be broadcast to the target node; If the destination data in the current data frame is a second preset data, forwarding the data in the current data frame to the second subsystem node, where the second preset data is used to indicate the second subsystem node.
3. The method according to claim 1, wherein The routing information includes the association relationship between the subsystem node and the data identity identifier in the data frame; where, before the step of determining that a second subsystem node that receives the data in the current data frame is unknown according to the routing information, it further includes: If the destination data in the current data frame is a third preset data and the routing information does not include the data identity identifier in the current data frame, determining that a second subsystem node that receives the data in the current data frame is unknown, where the third preset data is used to indicate that the second subsystem node is unknown.
4. The method according to any one of claims 1 to 3, characterized in that The routing information includes the association relationship between the node identifier of the subsystem node, the data identity identifier in the data frame, the learning identifier, and the node identifier of the subsystem node that receives the data in the corresponding data frame, and the learning identifier is used to indicate whether the subsystem node is willing to receive the data in the data frame corresponding to the data identity identifier; Wherein, the step of updating the association relationship according to the second subsystem node includes: Updating the learning identifier in the association relationship according to the data identity identifier in the current data frame.
5. The method according to claim 1, wherein Before the step of receiving the current data frame sent by the first subsystem node in the cockpit, it further includes: After the cockpit is powered on, receiving a first synchronization data frame sent by the subsystem node, and updating the routing information according to the first synchronization data frame, where the first synchronization data frame includes the node identifier of the subsystem node, the subsystem node includes a first newly added subsystem node, and the routing information includes the association relationship between the node identifier of the subsystem node and the data frame.
6. The method according to claim 5, wherein After the step of updating the routing information according to the first synchronization data frame, it further includes: Receive the second synchronization data frame sent after the initialization of the second newly added subsystem node, and update the routing information according to the second synchronization data frame, where the node identifier of the second newly added subsystem node is included in the second synchronization data frame.
7. The method according to claim 1, wherein The determining of the second subsystem node of the current data frame according to the received response frame includes: Determine the subsystem node corresponding to the received acknowledgment character ACK frame as the second subsystem node of the current data frame.
8. A cockpit communication device, characterized in that, Includes: A data receiving module, configured to receive a current data frame sent by a first subsystem node in the cockpit, where the current main system node can communicate with the subsystem node; A receiving node determining module, configured to, if it is determined according to the routing information that the second subsystem node for receiving the data in the current data frame is unknown, broadcast the data in the current data frame to the target nodes, and determine the second subsystem node of the current data frame according to the received response frame, where the routing information includes the association relationship between the subsystem node and the data frame, and the target nodes are the nodes other than the first subsystem node that sends the data in the subsystem nodes; A sending and updating module, configured to send the data in the current data frame to the second subsystem node, and update the association relationship according to the second subsystem node.
9. A vehicle, characterized in that, The cockpit of the vehicle includes: At least one processor; and A memory communicatively connected to the at least one processor; where The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cockpit communication method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the cockpit communication method according to any one of claims 1-7 when executed.