Search

CN-121984906-A - Communication method, system and electronic equipment

CN121984906ACN 121984906 ACN121984906 ACN 121984906ACN-121984906-A

Abstract

The invention provides a communication method, a communication system and electronic equipment, which are applied to a controller module in a communication system, wherein the method comprises the steps of obtaining a target message to be processed; the method comprises the steps of storing a target message into a received message cache of a controller module, obtaining route configuration information of the received message cache, and forwarding the target message to the target controller module appointed by the route configuration information through a routing circuit under the condition that the route configuration information indicates that hardware routing is enabled. By applying the method provided by the embodiment of the invention, the message can be quickly and stably transmitted.

Inventors

  • YANG DONGER

Assignees

  • 北京经纬恒润科技股份有限公司

Dates

Publication Date
20260505
Application Date
20260316

Claims (10)

  1. 1. A communication method for use in a controller module in a communication system, the method comprising: Obtaining a target message to be processed; storing the target message into a received message cache of the controller module; acquiring route configuration information of the received message buffer; In the event that the routing configuration information indicates that hardware routing is enabled, forwarding the target message through a routing circuit to a target controller module specified by the routing configuration information.
  2. 2. The method of claim 1, wherein storing the target message in a received message buffer of the controller module comprises: and storing the target message into a received message cache of the controller module under the condition that the target message meets the preset filtering condition.
  3. 3. The method according to claim 2, wherein the process of detecting that the target message meets a preset filtering condition comprises: And matching the identifier of the target message through a filter mask and a filter comparison value, and determining that the target message meets the filter condition under the condition that the identifier of the target message, the filter mask and the filter comparison value meet a preset matching relation.
  4. 4. The method of claim 1, wherein forwarding the target message to a target controller module specified by the routing configuration information comprises: Determining a target controller module among a plurality of controller modules of the communication system according to the route mask information in the route configuration information; Converting the attribute of the target message according to the message attribute conversion information in the route configuration information; and forwarding the converted target message to the target controller module.
  5. 5. The method of claim 1, wherein forwarding the target message to a target controller module specified by the routing configuration information comprises: and forwarding the target message to a target controller module designated by the route configuration information according to the set delay time.
  6. 6. The method according to claim 1, wherein the obtaining the target message to be processed includes: under the condition that a plurality of message routing requests are received, sequencing the message routing requests according to a preset priority rule; And receiving a target message corresponding to each message routing request through a signal channel corresponding to the controller module according to the sequence of each message routing request.
  7. 7. A communication system, comprising: The controller comprises a plurality of controller modules, wherein the controller modules are connected through a routing circuit; each of the controller modules is configured to perform the method of any of claims 1-6.
  8. 8. The system of claim 7, further comprising a monitoring module; the monitoring module is used for recording the message transmitting and receiving information of each controller module.
  9. 9. The system of claim 7, wherein the controller module comprises a receive message buffer and a register; The received message buffer is used for storing target messages meeting preset filtering conditions; The register is configured to store route configuration information cached by the received message.
  10. 10. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to perform the method of any of claims 1-6 by one or more processors.

Description

Communication method, system and electronic equipment Technical Field The present invention relates to the field of computer technologies, and in particular, to a communication method, a communication system, and an electronic device. Background The Controller Area Network (CAN) bus is a standard protocol widely used in vehicle network communications. With the complexity of the whole vehicle electronic and electric architecture, data interaction is often required between different CAN network segments, for example, a message received by a certain network segment is forwarded to another network segment, so as to realize information sharing across network segments. The traditional cross-network-segment routing scheme is mostly realized in a software mode, namely, after the central processing unit responds to the receiving interrupt, the carrying and forwarding of the message among different network segments are completed through software. However, in the case of software routing, since the routing process involves multiple links such as CPU interrupt response, task scheduling, data copying, etc., the processing delay is affected by factors such as system load, interrupt priority, software execution efficiency, etc., so that the message routing delay time presents uncertainty, and a frame loss situation may occur when a bus load storm occurs. For increasingly more real-time control applications in the whole vehicle network, such as Advanced Driving Assistance Systems (ADAS), drive-by-wire chassis and the like, the uncertain routing delay and frame loss conditions can influence the real-time performance and reliability of the system and even cause functional safety problems. Disclosure of Invention The invention aims to provide a communication method, a communication system and electronic equipment, which can quickly and stably transmit messages. The specific scheme is as follows: A communication method applied to a controller module in a communication system, the method comprising: Obtaining a target message to be processed; storing the target message into a received message cache of the controller module; acquiring route configuration information of the received message buffer; In the event that the routing configuration information indicates that hardware routing is enabled, forwarding the target message through a routing circuit to a target controller module specified by the routing configuration information. The method, optionally, wherein storing the target message into the received message buffer of the controller module includes: and storing the target message into a received message cache of the controller module under the condition that the target message meets the preset filtering condition. In the above method, optionally, the controller module is specifically configured to: And matching the identifier of the target message through a filter mask and a filter comparison value, and determining that the target message meets the filter condition under the condition that the identifier of the target message, the filter mask and the filter comparison value meet a preset matching relation. The method, optionally, forwarding the target message to a target controller module specified by the route configuration information, includes: Determining a target controller module among a plurality of controller modules of the communication system according to the route mask information in the route configuration information; Converting the attribute of the target message according to the message attribute conversion information in the route configuration information; and forwarding the converted target message to the target controller module. The method, optionally, forwarding the target message to a target controller module specified by the route configuration information, includes: and forwarding the target message to a target controller module designated by the route configuration information according to the set delay time. The method described above, optionally, the obtaining the target message to be processed comprises the following steps: under the condition that a plurality of message routing requests are received, sequencing the message routing requests according to a preset priority rule; And receiving a target message corresponding to each message routing request through a signal channel corresponding to the controller module according to the sequence of each message routing request. A communication system, comprising: The controller comprises a plurality of controller modules, wherein the controller modules are connected through a routing circuit; Each of the controller modules is configured to perform the method described above. The system, optionally, further comprises a monitoring module; the monitoring module is used for recording the message transmitting and receiving information of each controller module. The system, optionally, the controller module comprises a received message buffer and a registe