Local network state management method, device and system, vehicle and storage medium
By receiving and processing network management messages, determining the network segments and functional groups to be awakened, local network management is realized, and the problem of high hardware replacement costs in the prior art is solved, reducing the static power consumption and development costs of the vehicle.
Patent Information
- Application Number
- CN202411171889.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-03
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure CN119065349A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle control technology, and in particular to a method, device, system, vehicle and storage medium for managing a local network state. Background Art
[0002] With the accelerated advancement of vehicle intelligence and electrification, there are more and more intelligent services in parking scenarios. Vehicles are no longer just a simple means of transportation, and people's car-using habits are gradually changing, such as using vehicles to supply power when camping, and setting up pet care scenarios when leaving the car for a short period of time.
[0003] In order to support more and more intelligent services in parking scenarios, a large number of controllers, sensors, and actuators need to work simultaneously, which greatly increases the static power consumption of the vehicle. Although, with the continuous development of vehicle control technology, power saving can be achieved through point-to-point wake-up local network management. However, in order to achieve the status management of the local network, the original hardware circuit of the vehicle needs to be modified accordingly. However, this change requires huge hardware development costs for platform-based models.
[0004] Therefore, how to reduce the cost of local network status management has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] Embodiments of the present invention provide a method, device, system, vehicle and storage medium for managing a local network status to solve the problem of high cost of local network management for platform-based vehicles by changing hardware circuits.
[0006] In a first aspect, an embodiment of the present invention provides a method for managing a local network state, the method being applied to a first electronic control unit, the method comprising:
[0007] Receiving a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes a setting status of a preset data bit;
[0008] Determine the network segment to be awakened according to the setting of the preset data bit and the preset network segment awakening condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group;
[0009] Based on the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, obtain the second electronic control unit corresponding to each basic function group in the network segment to be awakened;
[0010] One or more basic function groups in the network segment to be awakened are awakened according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
[0011] The embodiment of the present invention adopts the first electronic control unit to replace the responsibilities of the CAN PN transceiver. First, based on the preset data bits of the network management message sent by each second electronic control unit and the preset network segment wake-up condition, the network segment to be awakened is determined. Then, based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained. Finally, one or more basic function groups in the network segment to be awakened can be awakened according to the second electronic control unit corresponding to each basic function group of the network segment to be awakened. The present invention realizes communication isolation of some network segments through partial awakening and partial dormancy of the network segment. Further, through the network segment to be awakened, and the preset relationship between the basic function group and the network segment and the second electronic control unit, it can be determined which basic function groups need to be awakened. Thus, the dormancy of some electronic control units and the awakening of some electronic control units are realized, thereby reducing the static power consumption of the whole vehicle and reducing the development costs of automobile companies.
[0012] In a possible implementation, according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened, awakening one or more basic function groups in the network segment to be awakened includes:
[0013] If the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all first transceivers, then all basic function groups in the network segment to be awakened are awakened;
[0014] If the transceiver in the second electronic control unit corresponding to a basic function group in the network segment to be awakened is a second transceiver, then based on the setting of the configuration data bit and the preset data bit in the second transceiver, some basic function groups in the network segment to be awakened are awakened.
[0015] In a possible implementation, based on the setting of the configuration data bit and the preset data bit in the second transceiver, some basic function groups in the to-be-awakened network segment are awakened, including:
[0016] Detecting whether the setting conditions of the configuration data bit and the preset data bit in the second transceiver are the same;
[0017] For the second transceiver whose detection configuration data bit and the preset data bit have different setting conditions, the remaining basic function groups in the to-be-awakened network segment except the basic function groups corresponding to the second transceiver are awakened.
[0018] The embodiment of the present invention is that as the enterprise continuously updates the transceiver, when the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all first transceivers, all basic function groups in the network segment to be awakened are awakened; when there is a CAN PN transceiver in the basic function group in the network segment to be awakened, different wake-up strategies are adopted to further reduce power consumption. Based on this strategy, the cost of automobile companies in the iteration process can be reduced, and the needs of local network management can also be met.
[0019] In a possible implementation, the preset network segment wake-up condition includes a setting condition of a preset data bit corresponding to waking up at least one network segment;
[0020] According to the setting of the preset data bit and the preset network segment wake-up condition, the network segment to be awakened is determined, including:
[0021] Comparing the setting of the preset data bit with the setting of the preset data bit corresponding to waking up at least one network segment;
[0022] If the setting status of the preset data bit is compared to the setting status of the preset data bit corresponding to the awakening target network segment and is found to be the same, the target network segment is used as a network segment to be awakened.
[0023] In a possible implementation manner, after comparing the setting status of the preset data bit with the setting status of the preset data bit corresponding to waking up at least one network segment, the method further includes:
[0024] If the setting status of the preset data bit is different from the setting status of the preset data bit corresponding to waking up all network segments, all network segments are used as the network segments to be awakened.
[0025] In the embodiment of the present invention, first, the preset network segment wake-up conditions are refined, and then, when the ECU in the vehicle has the local network management function, the network segment to be awakened is determined according to the setting of the preset data bit of the NM message; when the ECU in the vehicle does not have the local network management function, in order to avoid missing awakening, all network segments need to be awakened. Thus, the problem of the coexistence of ECUs with and without local network management functions in the process of ECU iteration and upgrade of automobile enterprises is met, and awakening is ensured not to be missed.
[0026] In a possible implementation, based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit, obtaining the second electronic control unit corresponding to each basic function group in the network segment to be awakened includes:
[0027] Based on the network segment to be awakened and the basic function groups included in each network segment, determine each basic function group in the network segment to be awakened;
[0028] According to each basic function group in the network segment to be awakened and the basic function group corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained.
[0029] In a second aspect, an embodiment of the present invention provides a device for managing a local network state, the device is applied to a first electronic control unit, and the device includes:
[0030] A receiving module, used to receive a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes a setting status of a preset data bit;
[0031] A determination module, used to determine the network segment to be awakened according to the setting of the preset data bit and the preset network segment awakening condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group;
[0032] An acquisition module, used to obtain the second electronic control unit corresponding to each basic function group in the network segment to be awakened based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit;
[0033] The wake-up module is used to wake up one or more basic function groups in the network segment to be awakened according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
[0034] In a possible implementation, the wake-up module is used to wake up all the basic function groups in the network segment to be awakened if the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all first transceivers;
[0035] If the transceiver in the second electronic control unit corresponding to a basic function group in the network segment to be awakened is a second transceiver, then based on the setting of the configuration data bit and the preset data bit in the second transceiver, some basic function groups in the network segment to be awakened are awakened.
[0036] In a possible implementation, the wake-up module is used to detect whether the setting conditions of the configuration data bit and the preset data bit in the second transceiver are the same;
[0037] For the second transceiver whose detection configuration data bit and the preset data bit have different setting conditions, the remaining basic function groups in the to-be-awakened network segment are awakened except for each basic function group corresponding to the second transceiver.
[0038] In a possible implementation, the preset network segment wake-up condition includes a setting condition of a preset data bit corresponding to waking up at least one network segment;
[0039] A determination module, configured to compare the setting of the preset data bit with the setting of the preset data bit corresponding to waking up at least one network segment;
[0040] If the setting status of the preset data bit is compared to the setting status of the preset data bit corresponding to the awakening target network segment and is found to be the same, the target network segment is used as a network segment to be awakened.
[0041] In a possible implementation, the determination module is configured to set all network segments as network segments to be awakened if the setting status of the preset data bit is different from the setting status of the preset data bit corresponding to awakening all network segments.
[0042] In a possible implementation, the obtaining module is used to determine each basic function group in the network segment to be awakened based on the network segment to be awakened and the basic function groups included in each network segment;
[0043] According to each basic function group in the network segment to be awakened and the basic function group corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained.
[0044] In a third aspect, an embodiment of the present invention provides a management system for a local network state, the management system comprising a first electronic control unit and at least one second electronic control unit;
[0045] A second electronic control unit sends a network management message via a transceiver;
[0046] A first electronic control unit receives a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes the setting status of a preset data bit; a network segment to be awakened is determined according to the setting status of the preset data bit and a preset network segment wake-up condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group; based on the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained; according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened, one or more basic function groups in the network segment to be awakened are awakened.
[0047] In a fourth aspect, an embodiment of the present invention provides a vehicle comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and wherein the processor implements the steps of the method described in the first aspect or any possible implementation of the first aspect when executing the computer program.
[0048] In a fifth aspect, an embodiment of the present invention provides an electronic control unit, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method described in the first aspect or any possible implementation of the first aspect are implemented.
[0049] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect or any possible implementation of the first aspect are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0051] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present invention;
[0052] Figure 2 is a schematic diagram of another application scenario provided by an embodiment of the present invention;
[0053] Figure 3 It is a schematic structural diagram of a CAN transceiver chip without local network management and a CAN PN transceiver chip provided in an embodiment of the present invention;
[0054] Figure 4 It is a flow chart of an implementation method of a local network status management method provided by an embodiment of the present invention;
[0055] Figure 5 is a structural block diagram of a second electronic control unit provided by an embodiment of the present invention;
[0056] Figure 6 is a flowchart of another method for managing local network status provided by an embodiment of the present invention;
[0057] Figure 7 It is a schematic diagram of a network segment sleep and wake-up method provided by an embodiment of the present invention;
[0058] Figure 8 is a control block diagram of a second electronic control unit provided by an embodiment of the present invention in which all transceivers are transceivers without a local network management function;
[0059] Fig. 9A control block diagram of a second electronic control unit provided by an embodiment of the present invention in which part of the transceiver is a transceiver without a local network management function and part is a CAN PN transceiver;
[0060] Fig.10 It is a structural diagram of a local network status management device provided by an embodiment of the present invention;
[0061] Fig.11 It is a structural diagram of a management system for a local network state provided by an embodiment of the present invention;
[0062] Fig.12 Schematic diagram of a vehicle provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0063] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0064] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0065] The inventors found that with the continuous advancement of vehicle intelligence and electrification, more and more parking scene services are available. However, the commonly used network management on cars is usually global network management, that is, when a certain function is activated, all electronic control units (ECUs) on the network need to be awakened, even if some ECUs do not participate in the work of this parking scene. As a result, the whole vehicle needs to be awakened to meet the parking scene, resulting in more and more static power consumption of the vehicle.
[0066] like Figure 1 As shown, Figure 1 A schematic diagram of an application scenario of global network management provided by an embodiment of the present invention is schematically shown, and the schematic diagram includes multiple ECUs. Figure 1 The boxes with black dots in the figure represent the ECUs that need to be awakened to meet a certain parking scenario. The other boxes without black dots are electronic control units that are not related to the parking scenario. In order to meet a certain parking scenario, all ECUs in the vehicle need to be awakened, which will increase the static power consumption. It should be noted that a white box indicates that the ECU corresponding to the box is in the awake state.
[0067] In order to reduce the static power consumption of the vehicle, the partial network (PN) management strategy of point-to-point wake-up has begun to be widely used. Different from the logic of all ECUs sleeping and waking up at the same time in global network management, PN management divides the entire network into multiple PN groups according to functional attributes. These PN groups can be regarded as virtual partial networks. One or more ECUs are woken up by network management messages instead of waking up all ECUs on the bus. The ECUs of these virtual partial networks can be in the same network segment or across network segments. The same ECU can also belong to multiple PN groups. The original intention of PN is to provide an energy-saving mechanism in the AUTOmotive Open System Architecture (AUTOSAR) standard to implement efficient energy management. It allows the network communication of a batch of ECUs to be shut down when so many ECUs are not needed, while other ECUs can continue to communicate.
[0068] The AUTOSAR standard is an open standard proposed by the Autosar Alliance to better manage and organize software components in automotive electronic systems. The purpose of this standard is to provide a set of specifications that describe basic software modules, define program connections, and implement a common method for further development based on a standardized format. This standardized format ensures that the standard is applicable to vehicles from different manufacturers and can also be implemented by different electronic equipment manufacturers used in these vehicles.
[0069] In order to implement the point-to-point wake-up PN management strategy, it is necessary to replace the transceivers of all ECU controllers involved in network management in the vehicle with CAN PN transceivers. Figure 2 As shown, Figure 2 Another application scenario provided by an embodiment of the present invention is schematically shown. Figure 2 The boxes with black dots in the figure represent multiple ECUs that need to be awakened to meet a certain parking scenario, and the other boxes without black dots are electronic control units that are not related to the parking scenario. Since all ECUs in the vehicle are equipped with CAN PN transceivers, which have a point-to-point wake-up function, in order to meet the parking scenario, only the ECUs related to the parking scenario are awakened, while other unrelated ECUs are in a dormant state, thereby minimizing the static power consumption of the vehicle. Figure 2 A white box in the middle indicates that the ECU corresponding to the box is in the awake state, and a gray box indicates that the ECU corresponding to the box is in the sleep state.
[0070] Whether point-to-point local wake-up can be achieved mainly depends on the transceiver in the ECU, such as Figure 3As shown in the figure, currently, the chip of CAN transceiver without local network management has 4 pins on each side, which is an 8-pin chip. For example, the commonly used TJA1057T chip or TJA1057GT chip are both CAN transceivers without local network management. The chip of CAN PN transceiver has 7 pins on each side, which is a 14-pin chip. For example, the commonly used TJA1145AT chip or TJA1145FD chip are both CAN PN transceivers.
[0071] from Figure 3 It can be seen that there is a large difference in the number of PIN pins between the CAN PN transceiver that currently supports the AUTOSAR standard and the CAN transceiver that does not have local network management, and direct replacement is not possible. To replace the CAN transceiver that does not have local network management with a CAN PN transceiver, the hardware circuit needs to be modified accordingly. However, most of the controllers of vehicle manufacturers are platform-based development. If the need to add a local network management strategy leads to the replacement of all CAN transceivers that do not have local network management and participate in network management with CAN PN transceivers, the cost will undoubtedly be huge, which will bring huge hardware change costs to the company.
[0072] Combine the following Figure 1-2 For application scenarios, refer to Figure 4-Figure 9 To describe the method for managing the local network status provided according to the exemplary embodiment of the present application. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the embodiments of the present invention are not limited in this respect. On the contrary, the embodiments of the present invention can be applied to any applicable scenario.
[0073] In order to solve the problems of the prior art, the embodiments of the present invention provide a method, device, system, vehicle and storage medium for managing the status of a local network. The embodiments of the present application are a method, device, system, vehicle and storage medium for managing the status of a local network based on the AUTOSAR standard. When the transceiver in the ECU is an ordinary CAN transceiver rather than a CAN PN transceiver, in order to reduce static power consumption, it is necessary to achieve partial dormancy of the network segment by dividing the network segment, so as to achieve partial dormancy of some ECUs and wake up some ECUs. In order to make the purpose, technical solutions and advantages of the present application clearer, it will be explained through specific embodiments in conjunction with the accompanying drawings.
[0074] It should be noted that the execution subject of the local network status management method provided according to the exemplary embodiment of the present invention is the first electronic control unit. The first electronic control unit can determine which network segments to wake up by receiving and identifying the network management message sent by the transceiver in at least one second electronic control unit.
[0075] Exemplarily, the first electronic control unit may be a gateway ECU.
[0076] As the core control device of the automobile network system, the gateway is responsible for coordinating the protocol conversion and data exchange between CAN bus networks and other data networks with different structures and characteristics to achieve seamless communication between different systems.
[0077] The gateway ECU is the controller that controls the work of the gateway. It is usually responsible for managing and controlling the work of the gateway, including receiving, processing, forwarding and filtering data. The gateway ECU can also configure and manage the gateway to meet different communication requirements. The relationship between the gateway ECU and other ECUs can be as follows: Figure 1 and Figure 2 As shown in , other ECUs can send network management messages through the transceivers therein, and the gateway ECU receives the network management messages sent by other ECUs.
[0078] See also Figure 4 , which shows a flow chart of the implementation of the method for managing the local network status provided by an embodiment of the present invention, which is described in detail as follows:
[0079] S410: Receive a network management message sent by a transceiver in at least one second electronic control unit.
[0080] The network management message includes the setting of the preset data bit.
[0081] Exemplarily, the preset data bits may include an indication bit for local network management and an indication bit for basic function groups, wherein the indication bit for local network management includes a PNI bit for indicating whether the ECU is awake, and the indication bit for basic function groups includes a PNC bit for indicating which basic function groups in the ECU are activated.
[0082] Exemplarily, the setting condition means that when the preset data bit is not awakened or activated, the preset data bit is 0, but when the preset data bit is awakened or activated, the preset data bit is set to 0.
[0083] In network management, each ECU in the network communicates through network management messages. The main function of network management messages is to manage and maintain the normal operation of network communication. The AUTOSAR network management message of the CAN bus is referred to as the NM message. The NM message conforms to the format of the CAN message and consists of a frame start, arbitration field, control field, data field, CRC field, response field and frame end.
[0084] In response to the received vehicle wake-up event, at least one second electronic control unit sets a preset data bit in its NM message based on the trigger instruction of the wake-up event. For example, the PNI bit in the network management message and the PNC bit of the basic function group to be activated are set. Figure 5 As shown, when ECU1 is determined to be the second electronic control unit, ECU1 will set the PNI bit in its NM message from 0 to 1. When the basic function group corresponding to PNC3 in ECU1 needs to be activated, PNC3 is set from 0 to 1, and the PNCs corresponding to other basic function groups in ECU1 are not set.
[0085] For the second electronic control unit, in this embodiment, the ECU in the vehicle responds to the vehicle's wake-up event, determines the ECU that needs to be awakened based on the basic function group corresponding to the wake-up event, and determines these ECUs that need to be awakened as the second electronic control unit.
[0086] It should be noted that the vehicle contains multiple ECUs, each of which includes at least one basic function group, and each basic function group has a set of partial network signal clusters (PNC) for supporting the function group. For example, basic function groups such as high voltage, charging, thermal management, exterior lights, ADAS or audio and video entertainment can support the currently known parking function scenarios to combine and call basic functions.
[0087] In order to manage the local network status, it is necessary to design a local network management strategy based on the AUTOSAR network management architecture and the basic functions of the vehicle. That is, first of all, starting from the functions of the whole vehicle, the basic functions are divided into multiple basic function groups. And based on the functional logic, functional allocation, and the activation / deactivation conditions of each functional logic regarding the wake-up / maintenance strategy, all ECUs are divided into active ECUs and passive ECUs. In network management, the passive ECU does not need to send network management messages, so the second electronic control unit in the present invention is an active ECU. Then, based on the functional allocation, the activation and shutdown of the functional logic is mapped to the activation / deactivation conditions of the PNC of each active ECU. In combination with the network topology, the corresponding relationship between each PNC and the network segment is formulated, and the routing and network segment wake-up strategy of the first electronic control unit for the NM message is formulated.
[0088] S420: Determine the network segment to be awakened according to the setting status of the preset data bit and the preset network segment awakening condition.
[0089] The routing module corresponding to the first electronic control unit includes multiple network segments, each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group. In order to realize local awakening through network segments, it is necessary to determine the network segments to be awakened and the dormant network segments.
[0090] Before performing local network status management, the wake-up conditions for each network segment, the setting status of the preset data bits of the NM message, and the network segments corresponding to each basic function group have been set based on the local network management strategy. Therefore, the network segment to be awakened can be determined based on the setting status of the preset data bits and the preset network segment wake-up conditions.
[0091] S430: Based on the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, obtain the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
[0092] Before performing local network status management, the basic function groups corresponding to each second electronic control unit and the basic function groups included in each network segment have been set based on the local network management strategy. Therefore, after determining the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened can be obtained.
[0093] S440. Wake up one or more basic function groups in the network segment to be awakened according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
[0094] In some embodiments, with the continuous advancement of technology, the functions of ECU are also gradually improved. In order to meet the needs of parking scenarios and save the static power consumption of vehicles, car companies are constantly updating ECUs. ECUs include ECUs without local network management functions and ECUs with local network management functions. It should be noted that the CAN transceiver in the ECU with local network management function is an ordinary transceiver and does not have a point-to-point wake-up function. In addition, it also includes an ECU with a CAN PN transceiver with point-to-point wake-up.
[0095] Since the functions of the transceivers in the second electronic control unit are different, the awakening methods for the network segment or basic function group are also different. Therefore, it is necessary to awaken one or more basic function groups in the awakened network segment according to the second electronic control unit corresponding to each basic function group in the awakened network segment.
[0096] In this embodiment, in order to make the whole vehicle network management gradually iteratively realize point-to-point local network management, the first electronic control unit can be used to replace the responsibilities of the CAN PN transceiver. First, based on the preset data bits of the network management message sent by each second electronic control unit and the preset network segment wake-up condition, the network segment to be awakened is determined. Then, based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained. Finally, one or more basic function groups in the network segment to be awakened can be awakened according to the second electronic control unit corresponding to each basic function group of the network segment to be awakened. The present invention realizes communication isolation of some network segments through partial awakening and partial dormancy of the network segment. Further, through the network segment to be awakened, and the preset relationship between the basic function group and the network segment and the second electronic control unit, it can be determined which basic function groups need to be awakened. Thereby, the dormancy of some electronic control units and the awakening of some electronic control units are realized, thereby reducing the static power consumption of the whole vehicle and reducing the development costs of automobile companies.
[0097] Most vehicle manufacturers develop their products on a platform basis. The structures of CAN transceivers without local network management functions and CANPN transceiver chips are different. If all of them are replaced with CAN PN transceivers, the hardware circuit needs to be changed, which results in high replacement costs. In order to reduce the replacement costs of vehicle manufacturers, hardware iteration development can be carried out according to the replacement plans of each ECU, and CAN transceivers without local network management functions can be gradually replaced with CAN PN transceivers, thereby further reducing static power consumption. Figure 6 As shown, the execution subject of the method is still the first electronic control unit, and the first electronic control unit here can be a gateway ECU. The method includes:
[0098] S610: Receive a network management message sent by a transceiver in at least one second electronic control unit.
[0099] The implementation method of receiving the network management message sent by the transceiver in at least one second electronic control unit can be referred to Figure 4 The relevant description in the embodiments will not be repeated here.
[0100] S620: Determine the network segment to be awakened according to the setting status of the preset data bit and the preset network segment awakening condition.
[0101] The routing module corresponding to the first electronic control unit includes multiple network segments, each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group. In order to realize local awakening through network segments, it is necessary to determine the network segments to be awakened and the dormant network segments.
[0102] Before performing local network status management, the wake-up conditions for each network segment, the setting status of the preset data bits of the NM message, and the network segments corresponding to each basic function group have been set based on the local network management strategy. Therefore, the network segment to be awakened can be determined based on the setting status of the preset data bits and the preset network segment wake-up conditions.
[0103] In some embodiments, the preset network segment wake-up condition includes a setting condition of a preset data bit corresponding to waking up at least one network segment.
[0104] In this embodiment, the setting of the preset data bit can be compared with the setting of the preset data bit corresponding to waking up at least one network segment first. Only by comparing the setting of the preset data bit with the setting of the preset data bit corresponding to waking up at least one network segment can it be determined which network segments need to be woken up.
[0105] Then, if the setting status of the preset data bit is the same as the setting status of the preset data bit corresponding to the awakening target network segment, it means that the ECU is an ECU with a local network management function, and the target network segment is used as a network segment to be awakened.
[0106] For ease of understanding, Figure 7 Take an example to illustrate, the first electronic control unit here is the gateway ECU, ECU1 and ECU2 are both second electronic control units, and both are active ECUs. When ECU1 and ECU2 respond to the received vehicle wake-up event, they will set the preset data bits in the NM message in ECU1 and ECU2 based on the trigger instruction of the wake-up event. The NM message in ECU1 is set to PNC3, and the NM message in ECU2 is set to PNC1. ECU1 and ECU2 send their respective NM messages to the gateway ECU respectively. Based on the two received messages, the gateway ECU determines that the network segments corresponding to PNC1 and PNC3 are the segments to be awakened, while the network segment corresponding to PNC2 is still in sleep mode, according to the setting of the preset data bits and the preset network segment wake-up conditions. Figure 7 It can be seen that PNC1 corresponds to network segment 1, PNC3 corresponds to network segment 5 and network segment 6, network segment 1, network segment 5 and network segment 6 are waiting to be awakened, and network segment 2-4 are dormant network segments. Based on network segment isolation, network segmentation is achieved, thereby reducing the static power consumption of the entire vehicle.
[0107] In addition, considering the gradual replacement of local network management, ECUs that do not have local network management functions and ECUs that have local network management functions will coexist for a long time within a certain period of time. ECUs that do not have local network management functions do not have the function of setting NM messages. In order to avoid functional failure events caused by the network not being awakened due to the local network wake-up strategy not recognizing the network wake-up requirements of ECUs that do not have local network wake-up functions, therefore, if the setting of the preset data bits is different from the setting of the preset data bits corresponding to awakening all network segments, all network segments will be treated as segments to be awakened.
[0108] S630. Based on the network segment to be awakened and the basic function groups included in each network segment, determine each basic function group in the network segment to be awakened; according to each basic function group in the network segment to be awakened and the basic function group corresponding to each second electronic control unit, obtain the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
[0109] Before performing local network status management, the basic function group corresponding to each network segment has been set based on the local network management strategy. Therefore, after determining the network segment to be awakened, the basic function groups in the network segment to be awakened can be determined based on the basic function group corresponding to each network segment and the network segment to be awakened.
[0110] In addition, based on the local network management strategy, the second electronic control unit corresponding to each basic function group in the network segment to be awakened can also be determined according to each basic function group to be awakened and the basic function group corresponding to each second electronic control unit.
[0111] S640: If the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all first transceivers, awaken all the basic function groups in the network segment to be awakened.
[0112] The first transceiver is a CAN transceiver without a local network management function.
[0113] It should be noted that ECUs are divided into ECUs with local network management functions and ECUs without local network management functions. The first transceiver here is a transceiver inside the ECU with the local network management function.
[0114] Taking into account the process of gradual replacement of local network management, if the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all CAN transceivers without local network management function, all basic function groups in the network segment to be awakened need to be awakened.
[0115] For ease of understanding, Figure 8 As shown, Figure 8The following schematically shows a schematic diagram of a structure of a network segment sleep and wake-up method provided by an embodiment of the present invention. Figure 8 The boxes with black dots in the figure represent the ECUs that need to be awakened to meet a certain parking scenario, and the other boxes without black dots are electronic control units that are not related to the parking scenario. When the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all CAN transceivers with local network management functions, all basic function groups in the network segment to be awakened will be awakened. It should be noted that Figure 8 The white box indicates that the ECU is in the awake state, and the gray box indicates that the ECU is in the dormant state. The figure only shows the corresponding state of the ECU, and does not show the basic function group under the network segment to be awakened. By dividing the network segment, all ECUs in the awakening network segment can be awakened, while all ECUs not in the awakening network segment are dormant. The dormancy of each network segment can be realized under the global network management of the whole vehicle sleeping and waking together, further reducing the static power consumption of the vehicle.
[0116] S650: If the transceiver in the second electronic control unit corresponding to a basic function group in the network segment to be awakened is a second transceiver, based on the setting of the configuration data bit and the preset data bit in the second transceiver, awaken part of the basic function groups in the network segment to be awakened.
[0117] Similarly, for the second electronic control unit corresponding to other basic function groups in the network segment to be awakened, if the transceiver therein is a second transceiver, some basic function groups in the network segment to be awakened are awakened based on the setting status of the configuration data bit and the preset data bit in the second transceiver.
[0118] Here, considering the gradual replacement of local network management, when the electronic controller is iterated or a new manufacturer is opened, it can be considered to directly replace the CAN transceiver without local network management with a CAN PN transceiver. At this time, in the gradual iteration process, some ECUs will have CAN transceivers without local network management and some ECUs will have CAN PN transceivers, and the wake-up strategies of these two transceivers are different. The second transceiver can be a CAN PN transceiver with point-to-point wake-up.
[0119] It should be noted that an ECU containing a CAN transceiver without a local network management function is an ECU with a local network management function. The ECU with a local network management function and the ECU with a CAN PN are different. The CAN in the ECU with a local network management function does not have the local network management function, while the ECU with a CAN PN has a point-to-point wake-up function of the local network.
[0120] In this embodiment, since the CAN PN transceiver has an editable function, it can be pre-configured so that the transceiver in the ECU can only receive NM messages with configured data bits, and other NM messages will be shielded.
[0121] Exemplarily, first, it is possible to detect whether the configuration data bit in the second transceiver is set the same as the preset data bit. Then, for the second transceiver whose configuration data bit is set differently from the preset data bit, the remaining basic function groups in the to-be-awakened network segment are awakened except for each basic function group corresponding to the second transceiver.
[0122] For ease of understanding, Fig. 9 As shown, Fig. 9 The following schematically shows a schematic diagram of a structure of a network segment sleep and wake-up method provided by an embodiment of the present invention. Fig. 9 The boxes with black dots in the figure represent the ECUs that need to be awakened to meet a certain parking scenario. The other boxes without black dots are electronic control units that are not related to the parking scenario. Fig. 9 The second ECU in the first column is a CAN PN transceiver, and the third ECU in the third column is a CAN PN transceiver. First, based on the network segment, the network segments corresponding to the first column and the third column are the network segments to be awakened, and because the second ECU in the first column is a CAN PN transceiver, and the third ECU in the third column is a CAN PN transceiver, it is also necessary to set the configuration data bits and preset data bits of each CAN PN transceiver according to the setting conditions. Only when the configuration data bits and preset data bits of each CAN PN transceiver are exactly the same, the second ECU in the first column and the third ECU in the third column will be awakened, otherwise the NM message will be shielded and it will still be in a dormant state. Figure 8 The configuration data bits of the CAN PN transceiver of the second ECU in the first column and the third ECU in the third column are different from the setting of the preset data bits. Therefore, these two ECUs continue to be in a dormant state, which can further save static power consumption. It should be noted that Fig. 9 The white box indicates that the ECU is in the awake state, and the gray box indicates that the ECU is in the sleep state. The figure only shows the corresponding state of the ECU, and does not show the basic function group under the network segment to be awakened.
[0123] In the process of managing the local network status, the present invention comprehensively considers the gradual iteration process of the vehicle. When determining the network segment to be awakened, it is considered that the second electronic control unit may have both an ECU without a local network management function and an ECU with a local network management function. In order to avoid missed awakening, the present invention comprehensively considers the different situations of the setting of the preset data bit and the setting of the preset data bit corresponding to awakening all network segments. In addition, with the continuous development of science and technology, it is also considered that in the iteration process of the vehicle, the second electronic control unit may have both a CAN PN transceiver and a CAN transceiver without a network management function. Different awakening methods are set according to the working strategies of different transceivers, so that static power consumption can be further saved when there is only a CAN transceiver without a network management function.
[0124] Starting from the input-output of automobile enterprises, in order to achieve the purpose of minimizing costs and obtaining maximum benefits, the present invention replaces the duties of the CAN PN transceiver with the first electronic control unit, develops software based on the CAN PN management mechanism, isolates network segments through gateways, and realizes segmented sleep and wake-up. Subsequently, as each ECU replacement plan is undergoing hardware iteration development or a new manufacturer is opened, the CAN PN transceiver can be used to gradually replace the existing CAN transceiver that does not have the local network management function, thereby saving hardware change costs, and in this way, the vehicle management network can achieve the final point-to-point wake-up through a step-by-step iteration.
[0125] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0126] Based on the local network status management method provided in the above embodiment, the present invention also provides a specific implementation of a local network status management device applied to the local network status management method. Please refer to the following embodiment.
[0127] like Fig.10 As shown, a local network status management device 1000 is provided, the device is applied to a first electronic control unit, and the device includes:
[0128] The receiving module 1010 is used to receive a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes the setting status of a preset data bit;
[0129] The determination module 1020 is used to determine the network segment to be awakened according to the setting of the preset data bit and the preset network segment awakening condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group;
[0130] The obtaining module 1030 is used to obtain the second electronic control unit corresponding to each basic function group in the network segment to be awakened based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit;
[0131] The awakening module 1040 is used to awaken one or more basic function groups in the network segment to be awakened according to the second electronic control units corresponding to each basic function group in the network segment to be awakened.
[0132] In a possible implementation, the awakening module 1040 is configured to awaken all basic function groups in the network segment to be awakened if the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all first transceivers;
[0133] If the transceiver in the second electronic control unit corresponding to a basic function group in the network segment to be awakened is a second transceiver, then based on the setting of the configuration data bit and the preset data bit in the second transceiver, some basic function groups in the network segment to be awakened are awakened.
[0134] In a possible implementation, the wake-up module 1040 is used to detect whether the setting conditions of the configuration data bit and the preset data bit in the second transceiver are the same;
[0135] For the second transceiver whose detection configuration data bit and the preset data bit have different setting conditions, the remaining basic function groups in the to-be-awakened network segment are awakened except for each basic function group corresponding to the second transceiver.
[0136] In a possible implementation, the preset network segment wake-up condition includes a setting condition of a preset data bit corresponding to waking up at least one network segment;
[0137] A determination module 1020, configured to compare the setting of the preset data bit with the setting of the preset data bit corresponding to waking up at least one network segment;
[0138] If the setting status of the preset data bit is compared to the setting status of the preset data bit corresponding to the awakening target network segment and is found to be the same, the target network segment is used as a network segment to be awakened.
[0139] In a possible implementation, the determination module 1020 is configured to set all network segments as network segments to be awakened if the setting status of the preset data bit is different from the setting status of the preset data bit corresponding to awakening all network segments.
[0140] In a possible implementation, the obtaining module 1030 is used to determine each basic function group in the network segment to be awakened based on the network segment to be awakened and the basic function groups included in each network segment;
[0141] According to each basic function group in the network segment to be awakened and the basic function group corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained.
[0142] Fig.11 It is a structural diagram of a local network status management system 11 provided by the present invention. The management system includes a first electronic control unit 1110 and at least one second electronic control unit 1120.
[0143] The second electronic control unit 1110 sends a network management message via a transceiver;
[0144] The first electronic control unit 1120 receives a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes the setting status of a preset data bit; according to the setting status of the preset data bit and the preset network segment wake-up condition, the network segment to be awakened is determined; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group; based on the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained; according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened, one or more basic function groups in the network segment to be awakened are awakened.
[0145] Fig.12 Schematic diagram of the structure of a vehicle provided by an embodiment of the present invention. Fig.12 As shown, the vehicle 12 of this embodiment includes: a processor 1210 and a memory 1220, wherein the memory 1220 stores a computer program 1221 that can be run on the processor 1210. When the processor 1210 executes the computer program 1221, the steps in any of the above-mentioned method embodiments are implemented, for example Figure 4 Steps 401 to 404 shown or Figure 6 Alternatively, when the processor 1210 executes the computer program 1221, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig.10 Functions of modules 1001 to 1040 are shown.
[0146] An embodiment of the present invention further provides an electronic control unit, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the above method embodiments when executing the computer program.
[0147] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for managing the local network status is implemented.
[0148] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0149] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0150] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0152] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0153] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0154] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A method for managing a local network state, characterized in that: The method is applied to a first electronic control unit, and the method comprises: Receiving a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes a setting status of a preset data bit; Determine the network segment to be awakened according to the setting of the preset data bit and the preset network segment awakening condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group; Based on the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, obtain the second electronic control unit corresponding to each basic function group in the network segment to be awakened; One or more basic function groups in the network segment to be awakened are awakened according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
2. The management method according to claim 1, characterized in that: The step of awakening one or more basic function groups in the network segment to be awakened according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened includes: If the transceivers in the second electronic control unit corresponding to each basic function group in the network segment to be awakened are all first transceivers, then all basic function groups in the network segment to be awakened are awakened; If the transceiver in the second electronic control unit corresponding to a basic function group of the network segment to be awakened is a second transceiver, then based on the setting of the configuration data bit and the preset data bit in the second transceiver, part of the basic function group in the network segment to be awakened is awakened.
3. The management method according to claim 2, characterized in that: The step of waking up part of the basic function group in the to-be-awakened network segment based on the setting of the configuration data bit and the preset data bit in the second transceiver includes: Detecting whether the configuration data bit in the second transceiver is set the same as the preset data bit; For the second transceiver whose detection configuration data bit is different from the setting status of the preset data bit, the remaining basic function groups in the to-be-awakened network segment except the basic function groups corresponding to the second transceiver are awakened.
4. The management method according to any one of claims 1 to 3, characterized in that: The preset network segment wake-up condition includes the setting of a preset data bit corresponding to waking up at least one network segment; The step of determining the network segment to be awakened according to the setting of the preset data bit and the preset network segment awakening condition includes: Comparing the setting status of the preset data bit with the setting status of the preset data bit corresponding to waking up at least one network segment; If the setting status of the preset data bit is compared to the setting status of the preset data bit corresponding to the awakening target network segment and is found to be the same, the target network segment is used as a network segment to be awakened.
5. The management method according to claim 4, characterized in that: After comparing the setting of the preset data bit with the setting of the preset data bit corresponding to waking up at least one network segment, the method further includes: If the setting status of the preset data bit is different from the setting status of the preset data bit corresponding to waking up all network segments, all network segments are used as network segments to be awakened.
6. The management method according to any one of claims 1 to 3, characterized in that: The method of obtaining the second electronic control unit corresponding to each basic function group in the network segment to be awakened based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit includes: Based on the network segment to be awakened and the basic function groups included in each network segment, determining each basic function group in the network segment to be awakened; According to each basic function group in the network segment to be awakened and the basic function group corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained.
7. A local network status management device, characterized in that: The device is applied to a first electronic control unit, and comprises: A receiving module, used to receive a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes a setting status of a preset data bit; A determination module, used to determine the network segment to be awakened according to the setting of the preset data bit and the preset network segment awakening condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group; An acquisition module, configured to acquire the second electronic control unit corresponding to each basic function group in the network segment to be awakened based on the network segment to be awakened, the basic function group included in each network segment, and the basic function group corresponding to each second electronic control unit; The awakening module is used to awaken one or more basic function groups in the network segment to be awakened according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened.
8. A management system for local network status, characterized in that: The management system comprises a first electronic control unit and at least one second electronic control unit; The second electronic control unit sends a network management message via a transceiver; The first electronic control unit receives a network management message sent by a transceiver in at least one second electronic control unit; wherein the network management message includes the setting status of a preset data bit; the network segment to be awakened is determined according to the setting status of the preset data bit and the preset network segment wake-up condition; wherein each network segment includes at least one basic function group, and each second electronic control unit corresponds to at least one basic function group; based on the network segment to be awakened, the basic function groups included in each network segment, and the basic function groups corresponding to each second electronic control unit, the second electronic control unit corresponding to each basic function group in the network segment to be awakened is obtained; according to the second electronic control unit corresponding to each basic function group in the network segment to be awakened, one or more basic function groups in the network segment to be awakened are awakened.
9. A vehicle, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and is characterized in that when the processor executes the computer program, it implements the local network status management method as described in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for managing the local network status according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Local network management method and system based on AUTOSAR
CN111726340A
Local network management grouping method and device, electronic equipment and storage medium
CN115685843A
SOA-based vehicle local network wake-up method, system and device, and medium
CN116347573A
Vehicle network segment awakening method, device, equipment, medium and program product
CN117376053A
Vehicle network management method and device, equipment and storage medium
CN117527847A
Cited By
In-vehicle local network management method and system, electronic equipment and storage medium
CN121217507A
Network segment control method and device based on sentry mode, equipment and medium
CN121441673A
