Hybrid node control method and system in same network segment, storage medium and vehicle

By dividing the local network PNC in the same network segment and controlling the node wake-up state, the problem of high power consumption in hybrid node communication is solved, and efficient and low-cost communication mode switching is achieved.

CN120389923APending Publication Date: 2025-07-29GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510460095.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

When communicating with CAN nodes and CANFD nodes in the same network segment, the prior art requires gateway controllers to perform protocol conversion, resulting in high power consumption of the whole vehicle, low power saving efficiency and increased bus load.

Method used

By dividing the network segment into at least two local network PNCs, it supports CAN frame and CANFD frame communication respectively, and controls the wake-up and sleep state of the node through the local network management message, thereby realizing flexible switching of the node.

Benefits of technology

It improves communication efficiency, reduces vehicle power consumption, reduces hardware and software development costs, and improves network stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120389923A_ABST
    Figure CN120389923A_ABST
Patent Text Reader

Abstract

The invention provides a method for controlling hybrid nodes in the same network segment. The method comprises the following steps: dividing the network segment comprising CAN nodes and CANFD nodes into at least two local network PNCs, namely a first PNC and a second PNC; when a CAN node or a CANFD node in the network segment has a request for waking up a first PNC or a second PNC, the CAN node or the CANFD node sends a local network management message to other nodes on the same network segment, and the local network management message comprises a status bit indicating whether the first PNC or the second PNC is activated or not; and other nodes in the network segment determine whether to switch own communication modes after receiving the local network management message. The invention further discloses a corresponding system, a storage medium and a vehicle. By implementing the method and the device, the communication of the CAN node and the CANFD node hybrid node can be realized in the same network segment by dividing different PNCs and combining with the state machine hopping, so that the communication efficiency is improved, and the power consumption and the cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automotive electronics technology, and particularly to a method, system, storage medium and vehicle for controlling hybrid nodes in the same network segment. Background Art

[0002] In the intelligent management system of a vehicle, local area network communication technology plays a key role. Currently, in the Controller Area Network (CAN) technology, traditional CAN nodes adopt the standard CAN protocol, with a maximum transmission rate of 1 Mbps and a single-frame data capacity limit of 8 bytes, which is very suitable for transmitting simple control instructions such as switch signals. As an upgraded version of CAN, the Flexible Data Rate Node (CAN FD) provides higher performance, with a data segment rate of up to 5 Mbps and a single-frame data capacity extended to 64 bytes, which is very suitable for transmitting large amounts of data such as sensor data.

[0003] However, traditional CAN nodes cannot recognize the frame format and high-speed data segment of CAN FD, and direct communication will cause errors. Therefore, in the prior art, it is usually necessary to isolate and convert the communication between these two different types of network nodes through a gateway controller. As Figure 1 shown, it shows a schematic structural diagram of implementing communication conversion between CAN nodes and CAN FD nodes using a gateway controller in the prior art. Specifically, in this prior art solution, a gateway controller is set to implement the conversion between the CAN and CAN FD protocols. At the same time, it is required that all CAN nodes (CAN node 1 to CAN node 3 in the figure) within the CAN network segment adopt the CAN communication method, while all CAN FD nodes (CAN FD node 1 to CAN FD node 3 in the figure) within the CAN FD network segment adopt the CAN FD communication method.

[0004] However, there is a shortcoming in the existing structure: as long as any node ECU (Electronic Control Unit) on the bus network conducts network communication, then all nodes with network management functions on this network will be awakened and remain in the awakened state. This leads to a problem: nodes that are not related to the current function will also be awakened by the activated nodes. For example, when the vehicle is in the P gear state and the user only wants to use the audio system to listen to music, controllers that are not related to this function (such as the intelligent driving domain controller) will also be awakened. This not only increases the power consumption of the whole vehicle, reduces the power saving efficiency, but also increases the load on the bus. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a method, system, storage medium and vehicle for controlling hybrid nodes in the same network segment. By dividing different PNCs and combining state machine transitions, communication between CAN nodes and CANFD nodes in the same network segment can be achieved, improving communication efficiency and reducing power consumption and cost.

[0006] As one aspect of the present invention, there is provided a method for controlling hybrid nodes in the same network segment, which at least includes the following steps:

[0007] Divide the network segment containing CAN nodes and CANFD nodes into at least two local networks PNCs, where the first PNC contains multiple CAN nodes and CANFD nodes, and the CAN nodes and CANFD nodes support CAN frame communication; the second PNC contains multiple CANFD nodes, and the CANFD nodes support CANFD frame communication;

[0008] When a CAN node or CANFD node in the network segment has a request to wake up the first PNC or the second PNC, the CAN node or CANFD node sends a local network management message to other nodes on the same network segment. The local network management message contains the identifier of the sending node and a status bit indicating whether the first PNC or the second PNC is activated;

[0009] Other nodes in the network segment, after receiving the local network management message, determine whether to switch their own communication mode according to the status bit in the local network management message. The communication mode includes: network sleep state, CAN frame only sending state, CANFD frame sending state.

[0010] Among them, in the local network management message, two status bits in a preset byte are used to respectively indicate the status of the first PNC and the second PNC;

[0011] Among them, the status bit of the first PNC is mapped to a preset status bit of the network management message to indicate activation or release of the first PNC; the status bit of the second PNC is mapped to another preset status bit to indicate activation or release of the second PNC.

[0012] Among them, other nodes in the network segment, receiving the local network management message, determine whether to and switch their own communication mode according to the status bit in the local network management message, including:

[0013] The node filters the received local network management message according to its own filtering mask to obtain the content of the status bit; among them, the CAN node only obtains the status bit content related to the first PNC through the filtering mask; the CANFD node obtains the status bit content of the first PNC and the second PNC through the filtering mask;

[0014] When the content of one of the status bits matches the active state, the node switches from the current state to the communication mode of the PNC corresponding to the status bit.

[0015] Among them, when the content of the status bit matches the active state, the node switches from the current state to the communication mode of the PNC corresponding to the status bit, including:

[0016] When it is matched that the two status bits in the local network management message indicate that both the first PNC and the second PNC are released, each CAN node and CANFD node switches or remains in the network sleep state;

[0017] When it is matched that among the two status bits of the local network management message, the first PNC is indicated to be active and the second PNC is released, each CAN node and CANFD node switches to the CAN frame only sending state and communicates by sending CAN frames;

[0018] When it is matched that among the two status bits of the local network management message, the second PNC is indicated to be active and the first PNC is released, each CANFD node switches to the CANFD frame sending state and communicates by sending CANFD frames; while each CAN node switches or remains in the network sleep state.

[0019] As another aspect of the present invention, there is also provided a communication processing system for hybrid nodes in the same network segment, which includes:

[0020] A local network division module for dividing a network segment into at least two local network PNCs, where the first PNC includes multiple CAN nodes and CANFD nodes, and the CAN nodes and CANFD nodes support CAN frame communication; the second PNC includes multiple CANFD nodes, and the CANFD nodes support CANFD frame communication;

[0021] A management message sending and processing module for when a CAN node or CANFD node in the network segment has a request to wake up the first PNC or the second PNC, the CAN node or CANFD node sends a local network management message to other nodes on the same network segment, and the local network management message includes the identifier of the sending node and a status bit indicating whether the first PNC or the second PNC is active;

[0022] A communication mode switching processing module is used for other nodes in the network segment to determine whether to switch their own communication modes according to the status bits in the local network management message after receiving the local network management message. The communication modes include: network sleep state, CAN frame only sending state, and CANFD frame sending state.

[0023] Among them, the management message sending processing module includes:

[0024] A message generation unit is used to construct a network management message containing PNC status bits, and two status bits in a preset byte are used to indicate the status of the first PNC and the second PNC respectively; among them, the status bit of the first PNC is mapped to a preset status bit of the network management message to indicate the activation or release of the first PNC; the status bit of the second PNC is mapped to another preset status bit to indicate the activation or release of the second PNC;

[0025] A status bit modification unit is used to adjust the content of the status bit combination according to the communication mode switching requirement to trigger other nodes to jump between the sleep state, CAN frame only sending state, and CANFD frame sending state;

[0026] A sending unit is used to broadcast and send the network management message to the network segment.

[0027] Among them, the communication mode switching processing module includes:

[0028] A message parsing unit is used for a node to filter the received local network management message according to its own filtering mask to obtain the content of the status bit; among them, a CAN node only obtains the status bit content related to the first PNC through the filtering mask; a CANFD node obtains the status bit content of the first PNC and the second PNC through the filtering mask;

[0029] A switching unit is used to switch the node from the current state to the communication mode of the PNC corresponding to the status bit when the content of one of the status bits matches the activation state.

[0030] Among them, the switching unit switches to the communication of the PNC corresponding to the status bit in the following manner:

[0031] When it is matched that both status bits in the local network management message indicate that the first PNC and the second PNC are released, each CAN node and CANFD node switches or remains in the network sleep state;

[0032] When it is matched that among the two status bits of the local network management message, the first PNC is indicated to be activated and the second PNC is released, each CAN node and CANFD node switches to the CAN frame only sending state and communicates by sending CAN frames;

[0033] When it is indicated in two status bits of the local network management message that the second PNC is activated and the first PNC is released, each CANFD node switches to the CANFD frame sending state and communicates by sending CANFD frames; while each CAN node switches to or remains in the network sleep state.

[0034] Further included therein are:

[0035] A power consumption optimization module, configured to force all CAN nodes and CANFD nodes in the network segment to enter the network sleep state when each PNC and the second PNC are both released.

[0036] Correspondingly, as another aspect of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method as described above are implemented.

[0037] Correspondingly, as a dual aspect of the present invention, there is also provided a vehicle, which includes:

[0038] One or more processors;

[0039] A memory, configured to store one or more computer programs;

[0040] When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method as described above.

[0041] Implementing the embodiments of the present invention has the following beneficial effects:

[0042] The present invention provides a method, system, storage medium and vehicle for hybrid node control in the same network segment. By dividing different local network control groups (PNCs) in the same network segment and combining a state machine jump mechanism, the present invention realizes hybrid communication between CAN nodes and CANFD nodes. This design avoids the complexity of protocol conversion required by traditional solutions, thereby improving communication efficiency;

[0043] In the embodiments of the present invention, by finely controlling the wake-up and sleep states of nodes, it is ensured that only the nodes related to the current function remain awake, while the irrelevant nodes enter the sleep state. This on-demand wake-up mechanism significantly reduces the power consumption of the entire vehicle and improves the power saving efficiency;

[0044] In the embodiments of the present invention, since the need for a gateway controller is eliminated, the solution of the present invention has obvious advantages in terms of hardware cost. At the same time, by optimizing the network management and node wake-up mechanisms, the complexity of software development and maintenance costs are also reduced;

[0045] In the embodiments of the present invention, it is supported to flexibly deploy CAN nodes and CANFD nodes within the same network segment and dynamically adjust the communication mode according to actual requirements. This flexibility enables vehicle electronic systems to more easily adapt to different application scenarios and functional requirements;

[0046] In the embodiments of the present invention, by precisely controlling the communication status of nodes, the present invention effectively avoids unnecessary communication of irrelevant nodes on the network, thereby reducing the load on the bus. This helps to improve the stability and reliability of the network and ensure the timely transmission of critical information. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, obtaining other drawings based on these drawings still belongs to the scope of the present invention;

[0048] Figure 1 It is a schematic structural diagram of implementing communication conversion between CAN nodes and CANFD nodes using a gateway controller in the prior art;

[0049] Figure 2 It is a schematic main process diagram of an embodiment of a method for controlling hybrid nodes in the same network segment provided by the present invention;

[0050] Figure 3 It is a schematic structural diagram of PNC division in the same network segment involved in the present invention;

[0051] Figure 4 It is a schematic state machine principle diagram of communication mode switching involved in the present invention;

[0052] Figure 5 It is a schematic diagram of the state of only sending CAN frames under network wake-up involved in the present invention;

[0053] Figure 6 It is a schematic diagram of the state of sending CANFD frames under network wake-up involved in the present invention;

[0054] Figure 7 It is a schematic structural diagram of an embodiment of a control system for hybrid nodes in the same network segment provided by the present invention;

[0055] Figure 8 For Figure 7 It is a schematic structural diagram of the management message sending and processing module in;

[0056] Figure 9 For Figure 7Structural schematic diagram of the communication mode switching processing module. Detailed implementation manners

[0057] To make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.

[0058] As Figure 2 shown, a main flow schematic diagram of an embodiment of a method for controlling hybrid nodes in the same network segment provided by the present invention is shown. Together with Figures 3 to 6 shown, in this embodiment, the method includes the following steps:

[0059] Step S10: Divide a network segment including CAN nodes and CANFD nodes into at least two independent partial network control groups (PNCs) corresponding to different communication scenarios; wherein the first PNC includes multiple CAN nodes and CANFD nodes, and it supports CAN frame communication; the second PNC includes multiple CANFD nodes, and it supports CANFD frame communication;

[0060] Wherein, in the local network management message, two status bits in a preset byte are used to respectively indicate the statuses of the first PNC and the second PNC;

[0061] Wherein, the status bit of the first PNC is mapped to a preset status bit of the network management message for indicating activation or release of the first PNC; the status bit of the second PNC is mapped to another preset status bit for indicating activation or release of the second PNC.

[0062] Specifically, as Figure 3 shown, in an example of the present invention, CAN nodes and CANFD nodes in the same network segment are divided into PNC0 and PNC1. PNC0 corresponds to function 1 scenario (only CAN frame communication), and PNC1 corresponds to function 2 scenario (only CANFD frame communication). Among them, CAN nodes use CAN transceivers supporting a specific frame wake-up function, and the transceivers can identify received CAN ID and CAN DATA, and only CAN messages meeting the requirements can wake up the MCU. It can be understood that in specific applications, only PNC0 or PNC1 in the network management message is activated, and the two cannot be activated simultaneously.

[0063] Among them, the controllers related to function 1 are CAN node 1, CAN node 2, CANFD node 1, and CANFD node 2;

[0064] The controllers related to function 2 are CANFD node 1 and CANFD node 2.

[0065] When performing a function, there is no need for non - relevant nodes to keep the network awake. That is, when performing Function 2, only CANFD Node 1 and CANFD Node 2 need to keep the network awake, and CAN Node 1 and CAN Node 2 can enter the network sleep state, thereby reducing the power consumption of the whole vehicle.

[0066] Step S11, when performing communication mode switching, when a CAN node or CANFD node in the network segment has a request to wake up the first PNC or the second PNC, a CAN node or CANFD node in the network segment serves as the sending node and sends a local network management message to other nodes on the same network segment. The local network management message contains the identifier of the sending node and a status bit indicating whether the first PNC or the second PNC is activated.

[0067] In an example, the PNC definitions of the network management messages sent after a node wakes up are shown in Table 1. Assume that the network management message ID of CAN Node 1 is 0x501, the network management message ID of CAN Node 2 is 0x502, the network management message ID of CANFD Node 1 is 0x503, and the network management message ID of CANFD Node 2 is 0x504. PNC0 is mapped to Byte3 bit0 of the network management message, and PNC1 is mapped to Byte3 bit1 of the network management message.

[0068] Assume that the network is in the network sleep state. When CANFD Node 1 has a demand for Function 1, it needs to send a specific network management message to wake up other nodes. CANFD Node 1 sends the network management message 0x503:03 50 00 01 00 00 0000.

[0069] Table 1 Definition of the data field of the network management message

[0070]

[0071] Step S12, other nodes in the network segment, after receiving the local network management message, determine whether to switch their own communication mode according to the content in the status bit of the local network management message. The communication modes include: network sleep state, CAN frame only sending state, and CANFD frame sending state.

[0072] In this embodiment, the communication states of CAN nodes and CANFD nodes in the same network segment are divided into three working modes: network sleep state, CAN frame only sending state, and CANFD frame sending state. The three working modes complete the jump of the network communication mode state machine through the status of the local network management PNC.

[0073] Network sleep state: When all nodes on the network have no wake - up demand, the network is in the sleep state.

[0074] Network wake-up state: When a CANFD node has a request to wake up PNC0 or PNC1, the network jumps from the sleep state to the network wake-up state. The network wake-up includes the CAN frame only transmission state and the CANFD frame transmission state.

[0075] Among them, other nodes in the network segment receive the local network management message and determine whether to switch their own communication modes according to the content in the status bits, including:

[0076] The node filters the received local network management message according to its own filter mask to obtain the content of the status bits; among them, the CAN node only obtains the status bit content related to the first PNC through the filter mask; the CANFD node obtains the status bit content of the first PNC and the second PNC through the filter mask;

[0077] When the content of one of the status bits matches the active state, the node switches from the current state to the communication mode corresponding to the PNC of the status bit.

[0078] Specifically, as Figure 4 shown, when it is matched that both status bits in the local network management message indicate that the first PNC and the second PNC are both released (i.e., PNC0 = 0 and PNC1 = 0 in the figure), each CAN node and CANFD node switches or remains in the network sleep state;

[0079] When it is matched that among the two status bits of the local network management message, it indicates that the first PNC is activated (PNC0 = 1) and the second PNC is released (PNC1 = 0), each CAN node and CANFD node switches to the CAN frame only transmission state and communicates by sending CAN frames;

[0080] When it is matched that among the two status bits of the local network management message, it indicates that the second PNC is activated (PNC1 = 1) and the first PNC is released (PNC0 = 0), each CANFD node switches to the CANFD frame transmission state and communicates by sending CANFD frames; while each CAN node switches or remains in the network sleep state.

[0081] Combined with Figure 4 the switching of various states, the process of step S12 will be described in detail below with several specific examples of communication mode switching.

[0082] a), Network sleep mode jumps to the CAN frame only transmission state (the scenario of activating function 1 after the vehicle goes to sleep):

[0083] The network is in sleep mode. When there is a wake-up request from PNC0 of CANFD Node 1 and there is no wake-up request from PNC1, the network jumps to the state of only sending CAN frames. It needs to send specific network management messages to wake up other nodes. CANFD Node 1 sends the network management message 0x503:03 50 00 01 00 00 00 00. After receiving this network management message, CAN Node 1, CAN Node 2, and CANFD Node 2 filter according to the specification in Table 2. After filtering, PNC0 is 1, indicating that the received network wake-up request with PNC0 set to 1 is received. CAN Node 1, CAN Node 2, and CANFD Node 2 also jump to the state of only sending CAN frames in the network wake-up state. In the state of only sending CAN frames, the CANFD node only allows CAN frame messages to be sent. CAN nodes can communicate with CANFD nodes normally in this state, as Figure 5 shown.

[0084] Table 2 ECU Filter Mask Table

[0085]

[0086] b), The network sleep state jumps to the state of sending CANFD frames (scenario of activating Function 2 after vehicle dormancy):

[0087] The network is in sleep mode. When there is a wake-up request from PNC1 of CANFD Node 1 and there is no wake-up request from PNC0, the network jumps to the state of sending CANFD frames in the network mode. CANFD Node 1 sends the network management message 0x503:03 50 00 02 00 00 00 00. After receiving this network management message, CAN Node 1 and CAN Node 2 filter according to the specification in Table 2. After filtering, PNC0 is 0, which does not meet the network wake-up condition, and they continue to stay in the network dormancy state; after filtering, PNC0 = 0 and PNC1 = 1 for CANFD Node 2, and it jumps to the state of sending CANFD frames. In this state, CAN nodes are in the network dormancy state, and CANFD nodes are in the network wake-up state. CANFD nodes can communicate with each other by sending CANFD frame messages, and no error frames will be generated in the network, as Figure 6 shown.

[0088] c), The state of only sending CAN frames jumps to the state of CANFD frames (scenario of switching to Function 2 after Function 1 is released):

[0089] After Function 1 is executed and the network segment has released the PNC0 network, the transceivers of CAN Node 1 and CAN Node 2 are turned off. At this time, if CANFD Node 1 has a need to activate Function 2, CANFD Node 1 sends a network management message (CAN frame) it sends with PNC0 set to 0 and PNC1 set to 1, that is, the message 0x503:03 50 00 02 00 00 00 00. The transceivers of CAN Node 1 and CAN Node 2 filter out this message according to the rules in Table 2 and will not wake up the MCU; after filtering, CANFD Node 2 wakes up PNC1, and CANFD Node 2 jumps to the state of sending CANFD frames. When executing Function 2, CANFD Node 1 and CANFD Node 2 can send CANFD messages or CAN messages.

[0090] d), State transition from sending CANFD frames to only sending CAN frames (switching to the scenario of Function 1 after Function 2 is released):

[0091] After Function 2 is executed and the network segment has released the PNC1 network. At this time, if Function 1 of CANFD Node 1 has a need to activate, CANFD Node 1 sends a network management message with PNC1 set to 0 and PNC0 set to 1. After CAN Node 1, CAN Node 2, and CANFD Node 2 perform filtering according to the filtering rules in Table 2, they will all wake up the PNC0 network and jump to the state of only sending CAN frames.

[0092] e), State transition from network wake-up to network sleep state (both Function 1 and Function 2 are released) When there is no activation requirement for both Function 1 and Function 2 and the network PNC0 and PNC1 are released, all network management messages stop being sent, and all nodes are in the sleep mode.

[0093] It can be understood that the method provided by the present invention enables CAN nodes and CANFD nodes to be deployed in the same network segment and realizes scenario switching without carrying a gateway controller by adopting different PNC methods.

[0094] As Figure 7 shown, a schematic structural diagram of an embodiment of a communication processing system for hybrid nodes in the same network segment provided by the present invention is shown. In combination with Figure 8 、 Figure 9 shown, in this embodiment, the communication processing system 1 of the hybrid nodes includes:

[0095] A local network division module 10, configured to divide a network segment into at least two local networks PNC, where the first PNC includes multiple CAN nodes and CANFD nodes, and the CAN nodes and CANFD nodes support CAN frame communication; the second PNC includes multiple CANFD nodes, and the CANFD nodes support CANFD frame communication;

[0096] The management message sending and processing module 11 is used to, when switching the communication mode, when a CAN node or a CANFD node in the network segment has a request to wake up the first PNC or the second PNC, the CAN node or the CANFD node sends a local network management message to other nodes on the same network segment. The local network management message contains the identifier of the sending node and a status bit indicating whether the first PNC or the second PNC is activated;

[0097] The communication mode switching processing module 12 is used for other nodes in the network segment to determine whether to switch their own communication mode according to the content in the status bit in the received local network management message. The communication mode includes: network sleep state, CAN frame only sending state, CANFD frame sending state.

[0098] In a specific example, such as Figure 8 as shown, the management message sending and processing module 11 includes:

[0099] The message generation unit 110 is used to construct a network management message containing PNC status bits, and two status bits in a preset byte are used to indicate the status of the first PNC and the second PNC respectively; wherein, the status bit of the first PNC is mapped to a preset status bit of the network management message to indicate the activation or release of the first PNC; the status bit of the second PNC is mapped to another preset status bit to indicate the activation or release of the second PNC;

[0100] The status bit modification unit 111 is used to adjust the content of the status bit combination according to the communication mode switching requirement to trigger other nodes to jump among the three communication modes of sleep state, CAN frame only sending state and CANFD frame sending state;

[0101] The sending unit 112 is used to broadcast and send the network management message to the network segment.

[0102] In a specific example, such as Figure 9 as shown, the communication mode switching processing module 12 includes:

[0103] The message parsing unit 120 is used for a node to filter the received local network management message according to its own filtering mask to obtain the content of the status bit; wherein, a CAN node only obtains the content of the status bit related to the first PNC through the filtering mask; a CANFD node obtains the content of the status bits of the first PNC and the second PNC through the filtering mask;

[0104] The switching unit 121 is used to, when the content of one of the status bits matches the activation state, the node switches from the current state to the communication mode corresponding to the PNC of the status bit.

[0105] Among them, the switching unit 12 switches to the communication of the PNC corresponding to the status bit in the following manner:

[0106] When it is matched that both status bits in the local network management message indicate that the first PNC and the second PNC are both released, each CAN node and CANFD node switches to or remains in the network sleep state;

[0107] When it is matched that among the two status bits of the local network management message, the first PNC is indicated to be active and the second PNC is released, each CAN node and CANFD node switches to the CAN frame only sending state and communicates by sending CAN frames;

[0108] When it is matched that among the two status bits of the local network management message, the second PNC is indicated to be active and the first PNC is released, each CANFD node switches to the CANFD frame sending state and communicates by sending CANFD frames; while each CAN node switches to or remains in the network sleep state.

[0109] Among them, the system 1 further includes:

[0110] A power consumption optimization module 13, which is used to turn off the transceiver power of non-related CAN nodes or CANFD nodes when the communication mode is switched; when each PNC and the second PNC are both released, force all CAN nodes and CANFD nodes in the network segment to enter the network sleep state.

[0111] Correspondingly, as another aspect of the present invention, there is also provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described above are implemented. For more details, reference can be made to the foregoing description of Figures 2 to 6 and details are not elaborated herein. Figures 2 to 6

[0112] Correspondingly, as another aspect of the present invention, there is also provided a vehicle, on which there are provided:

[0113] One or more processors;

[0114] A memory for storing one or more computer programs;

[0115] When the one or more computer programs are executed by the one or more processors, the one or more processors implement the steps of the method described above. Figures 2 to 6

[0116] For more details, reference can be made to the foregoing description of Figures 2 to 6 and details are not elaborated herein. ​​

[0117] Implementing the embodiments of the present invention has the following beneficial effects:

[0118] The present invention provides a method, system, storage medium and vehicle for hybrid node control in the same network segment. By dividing different local network control groups (PNCs) in the same network segment and combining a state machine jump mechanism, the present invention realizes hybrid communication between CAN nodes and CANFD nodes. This design avoids the complexity of protocol conversion required by traditional solutions, thereby improving communication efficiency;

[0119] In the embodiments of the present invention, by finely controlling the wake-up and sleep states of nodes, it is ensured that only the nodes related to the current function remain awake, while the irrelevant nodes enter the sleep state. This on-demand wake-up mechanism significantly reduces the power consumption of the entire vehicle and improves the power-saving efficiency;

[0120] In the embodiments of the present invention, since the requirement for a gateway controller is eliminated, the solution of the present invention has obvious advantages in terms of hardware cost. At the same time, by optimizing the network management and node wake-up mechanism, the complexity of software development and maintenance costs are also reduced;

[0121] In the embodiments of the present invention, it supports the flexible deployment of CAN nodes and CANFD nodes within the same network segment and dynamically adjusts the communication mode according to actual requirements. This flexibility enables the vehicle electronic system to more easily adapt to different application scenarios and functional requirements;

[0122] In the embodiments of the present invention, by precisely controlling the communication states of nodes, the present invention effectively avoids unnecessary communication of irrelevant nodes on the network, thereby reducing the load on the bus. This helps to improve the stability and reliability of the network and ensure the timely transmission of critical information.

[0123] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for realizing the functions specified in one Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.

[0124] The above-disclosed is only a preferred embodiment of the present invention, and of course, the scope of rights of the present invention cannot be limited thereby. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope covered by the present invention.

Claims

1. A method for controlling hybrid nodes in the same network segment, characterized in that, At least include the following steps: Divide the network segment containing CAN nodes and CANFD nodes into at least two local networks PNC, where the first PNC contains multiple CAN nodes and CANFD nodes, and the CAN nodes and CANFD nodes support CAN frame communication; The second PNC contains multiple CANFD nodes, and the CANFD nodes support CANFD frame communication; When a CAN node or CANFD node in the network segment has a request to wake up the first PNC or the second PNC, the CAN node or CANFD node sends a local network management message to other nodes on the same network segment. The local network management message contains the identifier of the sending node and a status bit indicating whether the first PNC or the second PNC is activated; Other nodes in the network segment, after receiving the local network management message, determine whether to switch their own communication modes according to the status bit in the local network management message. The communication modes include: network sleep state, CAN frame only sending state, CANFD frame sending state.

2. The method according to claim 1, characterized in that, Wherein: In the local network management message, two status bits in a preset byte are used to respectively indicate the status of the first PNC and the second PNC; Among them, the status bit of the first PNC is mapped to a preset status bit of the network management message, which is used to indicate the activation or release of the first PNC; the status bit of the second PNC is mapped to another preset status bit, which is used to indicate the activation or release of the second PNC.

3. The method according to claim 1 or 2, characterized in that, Other nodes in the network segment, receive the local network management message, and determine whether to switch their own communication modes according to the status bit in the local network management message, including: The node filters the received local network management message according to its own filtering mask to obtain the content of the status bit; among them, the CAN node only obtains the status bit content related to the first PNC through the filtering mask; the CANFD node obtains the status bit content of the first PNC and the second PNC through the filtering mask; When the content of one of the status bits matches the activated state, the node switches from the current state to the communication mode of the PNC corresponding to the status bit.

4. The method according to claim 3, wherein When the content of the status bit matches the activated state, the node switches from the current state to the communication mode of the PNC corresponding to the status bit, including: When it is matched that both the first PNC and the second PNC are released as indicated by the two status bits in the local network management message, each CAN node and CANFD node switches or remains in the network sleep state; When it is matched that among the two status bits of the local network management message, the first PNC is activated and the second PNC is released, each CAN node and CANFD node switches to the CAN frame only sending state and communicates by sending CAN frames; When it is matched that among the two status bits of the local network management message, the second PNC is activated and the first PNC is released, each CANFD node switches to the CANFD frame sending state and communicates by sending CANFD frames; while each CAN node switches or remains in the network sleep state.

5. A communication processing system for hybrid nodes in the same network segment, characterized in that, Include: A local network division module, which is used to divide a network segment into at least two local networks PNC. The first PNC includes multiple CAN nodes and CANFD nodes, and the CAN nodes and CANFD nodes support CAN frame communication; The second PNC includes multiple CANFD nodes, and the CANFD nodes support CANFD frame communication; A management message sending and processing module, which is used to send a local network management message to other nodes on the same network segment when a CAN node or a CANFD node in the network segment has a request to wake up the first PNC or the second PNC. The local network management message includes the identifier of the sending node and a status bit indicating whether the first PNC or the second PNC is activated; A communication mode switching processing module, which is used for other nodes in the network segment to determine whether to switch their own communication modes according to the status bit in the local network management message after receiving the local network management message. The communication modes include: network sleep state, CAN frame only sending state, and CANFD frame sending state.

6. The system according to claim 5, wherein The management message sending and processing module includes: A message generation unit, which is used to construct a network management message including PNC status bits, and use two status bits in a preset byte to respectively indicate the statuses of the first PNC and the second PNC; wherein, the status bit of the first PNC is mapped to a preset status bit of the network management message to indicate activation or release of the first PNC; the status bit of the second PNC is mapped to another preset status bit to indicate activation or release of the second PNC; A status bit modification unit, which is used to adjust the content of the status bit combination according to the communication mode switching requirement to trigger other nodes to jump between the sleep state, the CAN frame only sending state, and the CANFD frame sending state; A sending unit, which is used to broadcast and send the network management message to the network segment.

7. The system according to claim 6, characterized in that, The communication mode switching processing module includes: A message parsing unit, which is used for a node to filter the received local network management message according to its own filtering mask to obtain the content of the status bit; wherein, a CAN node only obtains the status bit content related to the first PNC through the filtering mask; a CANFD node obtains the status bit content of the first PNC and the second PNC through the filtering mask; A switching unit, which is used to switch the node from the current state to the communication mode of the PNC corresponding to the status bit when the content of one of the status bits matches the activated state.

8. The system according to claim 7, wherein The switching unit switches to the communication of the PNC corresponding to the status bit in the following manner: When it is matched that both status bits in the local network management message indicate that the first PNC and the second PNC are released, each CAN node and CANFD node switches or remains in the network sleep state; When it is matched that among the two status bits of the local network management message, the first PNC is indicated to be activated and the second PNC is released, each CAN node and CANFD node switches to the CAN frame only sending state and communicates by sending CAN frames; When it is matched that among the two status bits of the local network management message, it indicates that the second PNC is activated and the first PNC is released, each CANFD node switches to the state of sending CANFD frames and communicates by sending CANFD frames; And each CAN node switches to or remains in the network sleep state.

9. The system according to any one of claims 5 to 8, characterized in that Further comprising: A power consumption optimization module, configured to force all CAN nodes and CANFD nodes in the network segment to enter the network sleep state when each PNC and the second PNC are both released.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.

11. A vehicle, characterized in that, Comprising: One or more processors; A memory for storing one or more computer programs; When the one or more computer programs are executed by the one or more processors, the one or more processors are caused to implement the method described in any one of claims 1 to 4.