CN114785630B - Wake-up control method and device of CAN network segment, electronic equipment and storage medium - Google Patents

Wake-up control method and device of CAN network segment, electronic equipment and storage medium Download PDF

Info

Publication number
CN114785630B
CN114785630B CN202210225783.8A CN202210225783A CN114785630B CN 114785630 B CN114785630 B CN 114785630B CN 202210225783 A CN202210225783 A CN 202210225783A CN 114785630 B CN114785630 B CN 114785630B
Authority
CN
China
Prior art keywords
network segment
cross
target
function
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210225783.8A
Other languages
Chinese (zh)
Other versions
CN114785630A (en
Inventor
周颖
张雁英
陈文庆
胡灿东
黄光健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202210225783.8A priority Critical patent/CN114785630B/en
Publication of CN114785630A publication Critical patent/CN114785630A/en
Application granted granted Critical
Publication of CN114785630B publication Critical patent/CN114785630B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a wake-up control method, a wake-up control device, electronic equipment and a storage medium of a CAN network segment, wherein the wake-up control method comprises the following steps: determining a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; acquiring a state signal of a target node; determining a target cross-network segment function of the state signal of the target node meeting the preset state condition of the target node in a cross-network segment function set corresponding to the target CAN network segment; and controlling the network segment related to the target cross-network segment function to keep an awake state. The method and the device CAN realize wake-up control among different CAN network segments, and avoid the problems of low charging efficiency, false wake-up and the like after the vehicle is powered down caused by that all CAN network segments sleep together.

Description

Wake-up control method and device of CAN network segment, electronic equipment and storage medium
Technical Field
The present invention relates to the field of network management technologies of vehicle-mounted networks, and in particular, to a wake-up control method and apparatus for a CAN network segment, an electronic device, and a storage medium.
Background
CAN (Controller Area Network ) bus technology has been mature for use in the automotive communications field due to its reliability, real-time and flexibility. With the popularization of automobile intellectualization, electric and networking, controllers based on CAN networks in an on-board communication network are more and more, and because of the technical limitations of CAN network technology, the number of controllers allowed to be connected by each CAN network is limited. Currently, CAN networks in vehicles are divided into a plurality of CAN network segments, such as a Body CAN (BCAN), a Power CAN (PCAN), a new Energy CAN (ECAN), and the like, each of which includes a plurality of nodes.
In the prior art, the simultaneous sleep and wake strategy is used for controlling all CAN network segments on the vehicle, namely, after nodes of all the network segments meet the sleep condition, the gateway is used for controlling all the CAN network segments to sleep simultaneously. Because all nodes in the vehicle are forcefully kept dormant at the same time, certain functions in some vehicles, especially after the CAN bus is in an OFF state, for example, charging in the OFF state, CAN easily cause problems of low charging efficiency, false wake-up and the like.
Disclosure of Invention
In view of this, the embodiments of the present application provide a wake-up control method, device, electronic apparatus and storage medium for a CAN network segment, so as to improve the above-mentioned problems.
According to an aspect of the embodiments of the present application, there is provided a wake-up control method of a CAN network segment, including: determining a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; the cross-network segment function set comprises function configuration information of at least one cross-network segment function, wherein the function configuration information comprises preset state conditions of a target node; acquiring a state signal of the target node; determining a target cross-network segment function of which the state signal of the target node meets the preset state condition of the target node in the cross-network segment function set; and controlling the CAN network segment related to the target cross-network segment function to maintain an awake state.
According to an aspect of the embodiments of the present application, there is provided a wake-up control device of a CAN network segment, including: the cross-network segment function set determining module is used for determining a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; the cross-network segment function set comprises function configuration information of at least one cross-network segment function, and the function configuration information of the cross-network segment function comprises preset state conditions of a target node; the first acquisition module is used for acquiring the state signal of the target node; a target cross-network segment function determining module, configured to determine, in the cross-network segment function set, a target cross-network segment function that a status signal of the target node meets a preset status condition of the target node; and the control module is used for controlling the CAN network segment related to the target cross-network segment function to keep an awake state.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: a processor; and the memory is stored with computer readable instructions which, when executed by the processor, implement the wake-up control method of the CAN network segment as described above.
According to an aspect of the embodiments of the present application, there is provided a computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor, implement a wake-up control method of a CAN network segment as described above.
In the scheme of the application, the state signal of the target node is acquired, and the cross-network segment function set corresponding to the target CAN network segment is determined according to the target CAN network segment to which the target node belongs, so that the target cross-network segment function of which the state signal of the target node meets the preset state condition of the target node CAN be determined in the cross-network segment function set corresponding to the target CAN network segment.
According to the scheme, the CAN gateway only determines that the state signal of the target node meets the target cross-gateway function of corresponding requirements in the cross-network section set of the target CAN network section, and wakes up the CAN network section related to the target cross-network section function based on the target cross-network section function, so that the CAN network section which needs to be waken up is kept in a wake-up state by the CAN gateway, and the problems of low charging efficiency, false wake-up, waste of electric quantity of a storage battery, power feeding and the like caused by controlling all CAN network sections on a vehicle through a same sleep and wake-up strategy are avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flowchart of a wake-up control method of a CAN network segment according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating specific steps of step 130 according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating specific steps following step 130 according to an embodiment of the present application.
Fig. 4 is a flow chart illustrating specific steps following step 330 according to an embodiment of the present application.
Fig. 5 is a flowchart showing specific steps following step 130, according to another embodiment of the application.
Fig. 6 is a flowchart illustrating specific steps following step 510, according to an embodiment of the present application.
Fig. 7 is a block diagram of a wake-up control device of a CAN network segment according to an embodiment of the present application.
Fig. 8 is a hardware configuration diagram of an electronic device according to an exemplary embodiment of the present application.
There has been shown in the drawings, and will hereinafter be described, specific embodiments of the invention with the understanding that the present disclosure is to be considered in all respects as illustrative, and not restrictive, the scope of the inventive concepts being limited to the specific embodiments shown and described.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application can be practiced without one or more of the specific details, or with other methods, apparatus, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices. The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Fig. 1 is a flowchart of a wake-up control method of a CAN network segment according to an embodiment of the present application, where the method is applied to a CAN gateway in a vehicle, and the CAN gateway is in communication connection with at least two CAN network segments in the vehicle, and each CAN network segment includes at least one node. As shown in fig. 1, the method specifically includes the following steps:
step 110, determining a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; the cross-network segment function set comprises function configuration information of at least one cross-network segment function, wherein the cross-network segment function refers to a function which needs to be realized by nodes from at least two CAN network segments; the function configuration information includes preset state conditions of the target node.
A plurality of nodes CAN exist on any CAN network segment at the same time, and the nodes CAN be ECUs (Electronic Control Unit, electronic control units) with different functions connected on the CAN network segment, or different devices specifically controlled, and in the embodiment of the present application, any node CAN be used as a target node.
The target CAN network segment refers to the CAN network segment to which the target node belongs. For example, if the node in the BCAN network segment is set to include a door (e.g., a left front door, a left rear door, a right front door, etc.), a trunk door, a wiper, etc., then if the target node is a door, the BCAN network segment to which the door belongs is the target CAN network segment.
In some embodiments, the network segment identifier of each CAN network segment may be stored in association with the node representation of the node included in the CAN network segment in advance, and based on the node identifier of the target node, the target CAN network segment to which the target node belongs is correspondingly queried.
The cross-network segment function set corresponding to the target CAN network segment comprises cross-network segment functions jointly realized by the target CAN network segment and at least one other CAN network segment. For example, when the target CAN segment is a B CAN segment, the span segment function set may include a span segment function that needs to be implemented by at least one of a P CAN segment, a C CAN segment, an Info CAN segment, and a D CAN segment together with the B CAN segment.
In some embodiments, the preset state condition of the target node may be that the signal value of the state signal of the target node is within a set range, for example, if a node (assumed to be node a) is a temperature sensor for detecting the engine temperature, in a cross-network function, if the temperature range of the node a is set to be (20 ℃ and 90 ℃), if it is determined that the temperature value indicated by the state signal currently reported by the node a is 50 ℃, it can be seen that the temperature value of the current node a is within the corresponding temperature range, and therefore, the temperature value of the node a meets the corresponding required state condition.
In some embodiments, the preset state condition of the state signal of the target node may also be whether the state signal of the target node is a specified level.
Specifically, when the designated level of the preset state condition of the state signal of the target node is a recessive level and the state signal of the target node is also a recessive level, the required state condition is satisfied at this time, so that the target cross-network-segment function of the target node can be determined. Optionally, when the designated level of the preset state condition of the state signal of the target node is a dominant level and the state signal of the target node is also a dominant level, the required state condition is satisfied at this time, so that the target cross-network-segment function of the target node can be determined.
In other embodiments, the required state condition corresponding to the state signal of the target node may be whether the signal value of the state signal of the target node reaches the signal value threshold, and if the signal value threshold is reached, the state signal of the target node meets the corresponding required state condition, so that the target cross-network segment function of the target node can be determined. The preset state condition of the state signal of the specific target node may be set according to actual needs, and is not specifically limited herein. Specifically, there may be a plurality of target cross-network segment functions determined at the same time, which are not specifically limited herein.
In other embodiments, the functional configuration information of the cross-segment function includes, but is not limited to, a node of the cross-segment function that is required to participate, a required state condition of the node that is required to participate.
The required state condition corresponding to the node is used for indicating a condition that needs to be met by the state of the node, for example, if the node is a node for acquiring the temperature of the engine, and the state signal of the node is used for indicating the acquired temperature value of the engine, the required state condition corresponding to the node may be a temperature range set for the temperature of the engine. For example, if the node is a node for checking the open/closed state of the door, the state signal of the node is used to indicate that the open/closed state of the door is detected, and the request state condition corresponding to the node may be that the door is in the open state or the like. Of course, the corresponding required state conditions of the same node in different cross-network segment functions can be the same or different, and can be specifically set according to actual needs.
Step 120, obtain a status signal of the target node.
The status signal of the target node is used to indicate the status of the target node, for example, a signal indicating the magnitude of the vehicle speed, a signal indicating the direction of the vehicle speed, a signal indicating the status of a key, a signal indicating the status of a vehicle door, and the like.
For example, when the target node is a door, the state signal of the target node may be a signal indicating the open-closed state of the door detected by a sensor on the door, and when the door is opened, the sensor may report the signal indicating that the door is opened to the CAN gateway, specifically, the signal indicating that the door is opened may be sent to an ECU controlling the sensor first, and then the signal indicating that the door is opened is forwarded to the CAN gateway by the ECU.
In some embodiments, the state signal of the target node may be in the form of a level signal, and since the CAN segment is transmitted using a differential signal, in which logic 0 and logic 1 are represented by the voltage difference between two differential signal lines. Specifically, when at logic 1, the voltage difference of the two differential signal lines is less than 0.5V, referred to as a Recessive level (Recesse); when at logic 0, the voltage difference between the two differential signal lines is greater than 0.9V, referred to as the Dominant level (domino). Thus, different information can be expressed by a logic 0 and a logic 1, respectively, for example, for a sensor detecting the open/close state of the door, the door can be indicated as open by a logic 0 and closed by a logic 1.
Step 130, determining the target cross-network segment function of which the state signal of the target node meets the preset condition in the cross-network segment function set.
In some embodiments, the CAN gateway may query a set of cross-segments corresponding to the target CAN segment, so as to determine a target cross-segment function for which the status signal of the target node meets the corresponding required status condition.
In some embodiments, after receiving the status signal reported by each node, the CAN gateway stores the status signal according to the CAN network segment to which the node belongs, and then the CAN gateway CAN query the cross-network segment function set corresponding to each CAN network segment according to the set query frequency, where the query frequency of the CAN gateway queries the cross-network segment function set should not be lower than the maximum transmission frequency of the status signal of the node, and it CAN be understood that the maximum transmission frequency of the status signal of the node indicates the update frequency of the status signal of the target node, and if the query frequency is lower than the maximum transmission frequency of the status signal of the target node, the situation that the status signal of the target node is missed may occur, and thus the wake-up control or sleep control of the CAN network segment may be wrong.
The target cross-network segment function refers to a cross-network segment function set corresponding to the target CAN network segment, wherein the state signal of the target node meets the preset state condition of the target node.
In other embodiments, the target cross-segment function is a cross-segment function in which the participating nodes include target nodes in a set of cross-segment functions corresponding to the target CAN segments, and the status signals of the target nodes satisfy the corresponding required status conditions. For example, if the CAN network segment to which the node B1 belongs is the CAN network segment M1, the cross-network segment function set corresponding to the CAN network segment M1 includes a cross-network segment function T, and the node required to participate in the cross-network segment function T includes the node B1 and the node B2, where the required state condition set by the cross-network segment function T for the node B1 is the condition C1, the required state condition set for the node B2 is the condition C2, and if the target node is the node B1 and the current state signal according to the node B1 satisfies the condition C1, the cross-network segment function T CAN be determined to be the target cross-network segment function. It will be appreciated that the target cross-segment functionality may be one or more, as the case may be.
In other embodiments, as shown in FIG. 2, step 130 includes:
step 210, determining a reference cross-segment function of a node requiring participation including a target node in the cross-segment function set.
The reference network segment crossing function refers to the network segment crossing function of the target node included in the network segment crossing function set corresponding to the target CAN network segment. For example, the CAN network segment to which the target node E1 belongs is a B CAN network segment, and the corresponding span network segment function set of the B CAN network segment includes a span network segment function X, a span network segment function Y, and a span network segment function Z, where the span network segment function X requires that the participating node has E1 and node F2; the cross-network segment function Y requires the participating nodes to have E2 and F1; the cross-segment function Z requires the participating nodes to have E1 and F3, and can determine that the reference cross-segment function has the cross-segment function X and the cross-segment function Z. It will be appreciated that the reference cross-segment functionality may be one or more, as the case may be.
Step 220, acquiring the requirement state condition set for the target node from the function configuration information of the reference cross-network segment function.
Step 230, if the status signal of the target node meets the required status condition set for the target node, determining the reference cross-network segment function as the target cross-network segment function.
In some embodiments, if the status signal of the target node does not meet the required status condition set for the target node, it may be determined that the reference cross-network segment function of the target node does not need to be implemented, and the reference cross-network segment function is not the target cross-network segment function. It CAN be understood that the state signal of the target node does not meet the required state condition set for the target node, and then the CAN network segment of the cross-network segment function of the target node maintains the existing state.
With continued reference to fig. 1, in step 140, the CAN network segment involved in the control target cross-network segment function remains awake.
When a CAN network segment is in an awakening state, all nodes included in the CAN network segment are in an awakening state, and the nodes in the awakening state CAN work normally; when a CAN network segment is in a dormant state, all nodes included in the CAN network segment are in a dormant state, and when the nodes are in the dormant state, the nodes work in a low power consumption mode, namely only part of the modules in the nodes work, and all the most of the modules do not work, so that the power consumption of the nodes is saved.
If the CAN segment related to the target cross-segment function is in the sleep state before step 140, a wake-up signal (also referred to as a wake-up frame) is sent to the controller in each CAN segment in the CAN segments related to the target cross-segment function in step 140, so that the controller wakes up all the nodes in the CAN segment according to the wake-up signal.
If the CAN segment related to the target cross-segment function is in the sleep state before step 140, in step 140, each node in the CAN segment is controlled to maintain the awake state.
In the scheme of the application, the state signal of the target node is acquired, and the cross-network segment function set corresponding to the target CAN network segment is determined according to the target CAN network segment to which the target node belongs, so that the target cross-network segment function of which the state signal of the target node meets the corresponding requirement state condition CAN be determined in the cross-network segment function set corresponding to the target CAN network segment.
According to the scheme, the CAN gateway only determines that the state signal of the target node meets the target cross-gateway function of corresponding requirements in the cross-network section set of the target CAN network section, and wakes up the CAN network section related to the target cross-network section function based on the target cross-network section function, so that the CAN network section which needs to be waken up is kept in a wake-up state by the CAN gateway, and the problems of low charging efficiency, false wake-up, waste of electric quantity of a storage battery, power feeding and the like caused by controlling all CAN network sections on a vehicle through a same sleep and wake-up strategy are avoided.
In some embodiments, the function configuration information further includes activation conditions of the corresponding cross-network segment function and the participating nodes required by the target cross-network segment function; as shown in fig. 3, after step 130, the method further includes:
step 310, obtain status signals of the participating nodes.
Step 320, determining whether the status signal of the participating node meets an activation condition corresponding to the target cross-network segment function.
The activation condition corresponding to the target cross-network segment function may be defined by associating preset states corresponding to the participating nodes of the target cross-network segment based on a logic relationship, and specifically, the logic relationship may be a logic AND, a logic OR, a logic NOT, and the like. For example, if the cross-segment function F is the target cross-segment function, where the activation condition corresponding to the cross-segment function F is a condition X1 and a condition X2 and a condition X3, where the condition X1 is a preset state condition corresponding to the node A1, the condition X2 is a preset state condition corresponding to the node A2, the condition X3 is a preset state condition corresponding to the node A3, and if it is determined that the state signal of the node A1 satisfies the condition X1, the state signal of the node A2 satisfies the condition X2, and the state signal of the node A3 satisfies the condition X3, it may be determined that the activation condition corresponding to the target cross-segment function is satisfied.
In some embodiments, the participating nodes of different target cross-network segments may overlap, and the status signals between the nodes may also overlap, but the status signals of the same node between different target cross-network segment functions are not allowed to collide, which can be understood that mutually contradictory target cross-network segment functions cannot be performed simultaneously. For example, when a target cross-network function is that a vehicle door is opened, an illuminating lamp in the vehicle is opened, and nodes requiring participation have a door node for controlling and a node for controlling the illuminating lamp in the vehicle; when the vehicle is powered down to an OFF gear, the lighting lamp in the vehicle is turned OFF, the node requiring participation has a node for controlling the vehicle door and a node for controlling power, and in fact, the state signal of the node for controlling the lighting lamp in the vehicle cannot indicate that the lighting lamp in the vehicle is turned on and the lighting lamp in the vehicle is turned OFF, so that the two-span network function cannot be performed simultaneously.
Step 330, if the activation condition corresponding to the target cross-network-segment function is satisfied, activating the target cross-network-segment function.
As described above, the cross-segment function is a function that requires nodes from at least two CAN segments to be implemented, and it is understood that the cross-segment function is a function implemented by linking nodes in at least two CAN segments. Realizing the cross-network function is equivalent to realizing the linkage among a plurality of nodes, namely: and when the state signal of the condition node is determined to meet the activation condition, controlling the controlled node to execute the controlled action. The condition node refers to a node defined by an activation condition corresponding to the cross-network segment function, and the controlled node refers to a node defined by the cross-network segment function and required to execute controlled actions. For example, if the cross-segment function is to be implemented: when the vehicle door is closed and the vehicle window is closed, an air conditioner in the vehicle is opened, and the condition node corresponding to the cross-network function comprises a sensor for detecting the opening and closing states of the vehicle door and the vehicle window, wherein the controlled node is the air conditioner; the activation condition is that the vehicle door is closed and the vehicle window is closed; the controlled action is the opening of the air conditioner in the vehicle.
In some embodiments, the set of cross-segment functions corresponding to the target CAN segment may be presented in the form of a cross-segment function table. The target CAN network segment may include a plurality of cross-segment functions, status signals of nodes in which each cross-segment function is required to participate, and activation conditions corresponding to each cross-segment function, as shown in table 1 below.
TABLE 1
Figure BDA0003539136440000101
In table 1, the information in the column of "status signal of node requiring participation" and "activation condition" for each cross-network function can be regarded as the function configuration information of the cross-network function.
The status signals of the nodes required by different cross-segment functions may be the same or different, for example, the status signal of the node implementing the cross-segment function 1 may include the signal 1, and the status signal of the node implementing the cross-segment function 2 may also include the signal 1.
In some embodiments, the status signal acquired in step 310 may be a status signal of a conditional node corresponding to the target cross-segment function, without acquiring a status signal corresponding to a controlled node corresponding to the target cross-segment function. And if the state signals of the nodes required to participate in the target cross-network segment function do not meet the activation conditions corresponding to the target cross-network segment function, the target cross-network segment function is not activated.
In some embodiments, the function configuration information includes controlled nodes implementing cross-segment functions and control instructions for the controlled nodes; as shown in fig. 4, after step 330, the method further includes:
step 410, the control instruction of the corresponding controlled node is obtained according to the function configuration information.
For example, the target cross-network function is that the lighting lamp in the vehicle is turned OFF after the vehicle is powered down to an OFF gear, wherein the controlled node is a node for controlling the lighting lamp in the vehicle, and the control instruction is an instruction for controlling the lighting lamp in the vehicle to be turned OFF. The control instructions may be sent by the CAN gateway.
Step 420, a control instruction is sent to the controlled node corresponding to the target cross-network segment function.
The control instruction CAN be sent to the corresponding controlled node by the CAN gateway, and the controlled node executes the control instruction after receiving the control instruction, thereby realizing the target cross-network-segment function.
In some embodiments, as shown in fig. 5, after step 130, the method further comprises:
step 510, obtaining the activation state indication information of each cross-network segment function in the cross-network segment function set.
The activation state indication information is used for indicating whether the corresponding cross-network segment function is in an activation state.
And step 520, if it is determined that all the cross-network segment functions in the cross-network segment function set are in the inactive state according to the activation state indication information, the target CAN network segment is controlled to sleep.
In this embodiment, the target CAN segment is controlled to sleep whenever all the cross-segment functions in the target CAN segment are in an inactive state. When a target CAN network segment enters dormancy, all nodes in the target CAN network segment are in dormancy state, namely all nodes are in low power consumption mode. Otherwise, if at least one cross-network-segment function in the cross-network-segment function set corresponding to the target CAN network segment is in an activated state, the target CAN network segment is controlled to be kept in an awake state.
In some embodiments, as shown in fig. 6, after step 510, the method further comprises:
step 610, determining the cross-network segment function in the activated state in the cross-network segment function set according to the state indication information.
Step 620, the CAN network segment involved in the cross-segment function in the active state is controlled to maintain the wake state.
Since the cross-segment function is in an active state, it indicates that the cross-segment function needs to be implemented at this time. Whereas as described above, the cross-segment functionality needs to be implemented from nodes in at least two CAN segments. In this embodiment, for a cross-network segment function in an active state, at least two CAN network segments involved in the cross-network segment function in the active state are controlled to maintain an awake state, and all nodes in a corresponding CAN network segment are only required to be controlled to maintain the awake state in a unit of the CAN network segment, and are not required to be controlled in a unit of the node, i.e., the nodes required to participate in the cross-network segment function are searched in a plurality of nodes included in each CAN network segment, and then an awake signal is sent to the determined nodes in a targeted manner, thereby improving efficiency of implementing the cross-network segment function and shortening waiting time.
In some embodiments, if the CAN segment involved in the cross-segment function in the active state remains awake, the CAN gateway continues to pay attention to the CAN segment that remains awake, and repeats step 510 and subsequent steps.
Fig. 7 is a block diagram of a wake-up control device of a CAN network segment according to an embodiment of the present application, which is applied to a CAN gateway in a vehicle, the CAN gateway being communicatively connected to at least two CAN network segments in the vehicle, each CAN network segment including at least one node, and a wake-up control device 700 of the CAN network segment includes: a cross-segment function set determination module 710, a first acquisition module 720, a target cross-segment function determination module 730, and a control module 740. The cross-network segment function set determining module 710 is configured to determine a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; the cross-network segment function set comprises at least one piece of function configuration information of the cross-network segment function, wherein the function configuration information of the cross-network segment function comprises preset state conditions of the target node; a first obtaining module 720, configured to obtain a status signal of the target node; a target cross-network segment function determining module 730, configured to determine, in the cross-network segment function set, a target cross-network segment function for which a status signal of the target node meets a preset status condition; the control module 740 is configured to control the CAN network segment related to the target cross-network segment function to maintain an awake state.
In some embodiments, the function configuration information further includes activation conditions of the corresponding cross-network segment function and the participating nodes required by the target cross-network segment function; the wake-up control device 700 of the CAN network segment further includes: the second acquisition module is used for acquiring the status signals of the participating nodes; the judging module is used for judging whether the state signal of the participating node meets the activation condition corresponding to the target cross-network segment function; and the target cross-network segment function activating module is used for activating the target cross-network segment function if the activating condition corresponding to the target cross-network segment function is met.
In some embodiments, the function configuration information further includes a controlled node implementing the cross-segment function and control instructions of the controlled node; the wake-up control device 700 of the CAN network segment further includes: the control instruction acquisition module is used for acquiring a control instruction of a corresponding controlled node according to the function configuration information of the target cross-network segment function; and the sending module is used for sending a control instruction to the controlled node corresponding to the target cross-network-segment function.
In some embodiments, the wake-up control device 700 of the CAN network segment further includes: the activation state indication information acquisition module is used for acquiring activation state indication information of each cross-network segment function in the cross-network segment function set; and the dormancy control module is used for controlling the target CAN network segment to carry out dormancy if all the network segment crossing functions in the network segment crossing function set are determined to be in an inactive state according to the activation state indication information.
In some embodiments, the wake-up control device 700 of the CAN network segment further includes: the determining module is used for determining the cross-network segment function in the activated state in the cross-network segment function set according to the activated state indication information; and the wake-up control module is used for controlling the CAN network segment related to the cross-network segment function in the active state to maintain the wake-up state.
In some embodiments, the preset state condition of the target node is that the signal value of the state signal of the target node is within a specified signal value range or that the level state of the state signal of the target node is a specified level.
In other embodiments, the target cross-segment function determination module 730 includes: a reference cross-network segment function determining unit, configured to determine, in a cross-network segment function set, a reference cross-network segment function of a node that requires participation, including a target node; a required state condition acquisition unit configured to acquire a required state condition set for a target node from function configuration information of a reference cross-network segment function; the target cross-network segment function determining unit is used for determining the reference cross-network segment function as the target cross-network segment function if the state signal of the target node meets the requirement state condition set for the target node.
According to one aspect of an embodiment of the present application, there is provided a vehicle comprising a CAN gateway in communication with at least two CAN segments in the vehicle, each CAN segment comprising at least one node, the CAN gateway being adapted to perform the method of any of the embodiments described above.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method of any of the embodiments described above.
According to an aspect of the embodiments of the present application, there is further provided an electronic device, as shown in fig. 8, where the electronic device 800 includes a processor 810 and one or more memories 820, and the one or more memories 820 are configured to store program instructions executed by the processor 810, and the processor 810 implements the above-described object recognition method when executing the program instructions.
Further, the processor 810 may include one or more processing cores. The processor 810 runs or executes instructions, programs, code sets, or instruction sets stored in the memory 820 and invokes data stored in the memory 820. Alternatively, the processor 810 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 810 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor and may be implemented solely by a single communication chip.
According to an aspect of the present application, there is also provided a computer-readable storage medium that may be contained in the electronic device described in the above-described embodiment; or may exist alone without being incorporated into the electronic device. The computer readable storage medium carries computer readable instructions which, when executed by a processor, implement the method of any of the above embodiments.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The units involved in the embodiments of the present application may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (9)

1. A wake-up control method for a CAN segment, the method comprising:
determining a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; the cross-network segment function set comprises function configuration information of at least one cross-network segment function, wherein the function configuration information comprises preset state conditions of a target node, activation conditions of the corresponding cross-network segment function and participation nodes required by the target cross-network segment function;
acquiring a state signal of the target node, wherein the state signal of the target node is used for indicating the state of the target node;
determining a target cross-network segment function of which the state signal of the target node meets the preset state condition of the target node in the cross-network segment function set;
acquiring a status signal of the participating node;
judging whether the status signal of the participating node meets the activation condition corresponding to the target cross-network segment function;
if the activation condition corresponding to the target cross-network-segment function is met, activating the target cross-network-segment function;
the CAN network segment related to the target cross-network segment function of control activation maintains an awake state.
2. The method of claim 1, wherein the function configuration information further comprises a controlled node implementing the cross-segment function and control instructions of the controlled node;
after the target cross-segment function is activated, the method further comprises:
acquiring a control instruction of a corresponding controlled node according to the function configuration information;
and sending the control instruction to the controlled node corresponding to the target cross-network segment function.
3. The method according to claim 1, wherein the method further comprises:
acquiring activation state indication information of each cross-network segment function in the cross-network segment function set;
and if the fact that all the network segment crossing functions in the network segment crossing function set are in the non-activated state is determined according to the activation state indication information, controlling the target CAN network segment to sleep.
4. The method of claim 3, wherein after the acquiring the activation state indication information of each cross-segment function in the cross-segment function set corresponding to the target CAN segment, the method further comprises:
determining a cross-network segment function in an activated state in the cross-network segment function set according to the activation state indication information;
and controlling the CAN network segment related to the cross-network segment function in the activated state to maintain an awake state.
5. The method according to any one of claims 1 to 4, wherein the preset state condition of the target node is that a signal value of the state signal of the target node is within a specified signal value range or that a level state of the state signal of the target node is a specified level.
6. A wake-up control device for a CAN segment, the device comprising:
the cross-network segment function set determining module is used for determining a cross-network segment function set corresponding to a target CAN network segment according to the target CAN network segment to which the target node belongs; the cross-network segment function set comprises function configuration information of at least one cross-network segment function, wherein the function configuration information comprises preset state conditions of a target node, activation conditions of the corresponding cross-network segment function and participation nodes required by the target cross-network segment function;
the first acquisition module is used for acquiring a state signal of the target node, wherein the state signal of the target node is used for indicating the state of the target node; a target cross-network segment function determining module, configured to determine, in the cross-network segment function set, a target cross-network segment function that a status signal of the target node meets a preset status condition of the target node;
the second acquisition module is used for acquiring the state signals of the participating nodes;
the judging module is used for judging whether the state signal of the participating node meets the activation condition corresponding to the target cross-network segment function or not;
the target cross-network segment function activating module is used for activating the target cross-network segment function if the activating condition corresponding to the target cross-network segment function is met;
and the control module is used for controlling the CAN network segment related to the activated target cross-network segment function to keep an awake state.
7. An electronic device, the electronic device comprising:
a processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the method of any of claims 1 to 5.
8. A vehicle, characterized in that the vehicle comprises a CAN gateway which is in communication connection with at least two CAN segments in the vehicle, each CAN segment comprising at least one node, the CAN gateway being adapted to control each CAN segment according to the method according to any one of claims 1 to 5.
9. A computer readable storage medium having stored therein program code which is callable by a processor to perform the method of any one of claims 1 to 5.
CN202210225783.8A 2022-03-09 2022-03-09 Wake-up control method and device of CAN network segment, electronic equipment and storage medium Active CN114785630B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210225783.8A CN114785630B (en) 2022-03-09 2022-03-09 Wake-up control method and device of CAN network segment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210225783.8A CN114785630B (en) 2022-03-09 2022-03-09 Wake-up control method and device of CAN network segment, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114785630A CN114785630A (en) 2022-07-22
CN114785630B true CN114785630B (en) 2023-06-20

Family

ID=82423638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210225783.8A Active CN114785630B (en) 2022-03-09 2022-03-09 Wake-up control method and device of CAN network segment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114785630B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144029A (en) * 2018-08-24 2019-01-04 安徽江淮汽车集团股份有限公司 A kind of method and system that the local sleep of CAN bus wakes up
CN111624902A (en) * 2019-02-28 2020-09-04 北京新能源汽车股份有限公司 Control method and device for dormancy and awakening

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102010008818A1 (en) * 2010-02-22 2011-08-25 Continental Automotive GmbH, 30165 Method for activating a network component of a vehicle network system
GB2549087B (en) * 2016-03-31 2019-02-13 Jaguar Land Rover Ltd Communications on data buses
CN109756407A (en) * 2019-01-17 2019-05-14 重庆菲斯塔新能源汽车科技有限公司 A kind of CAN bus based localized network management method
CN111698107B (en) * 2019-03-13 2022-08-30 上海欧菲智能车联科技有限公司 Vehicle network management method, device and system and computer equipment
CN112068493B (en) * 2019-06-11 2022-04-19 广州汽车集团股份有限公司 Whole vehicle sleep awakening control method and control system
CN110830267A (en) * 2019-11-12 2020-02-21 上海元城汽车技术有限公司 State control method and device of network node and gateway
CN112260844A (en) * 2020-10-21 2021-01-22 王文君 Network management method and management system of hybrid power system
CN113259421A (en) * 2021-04-26 2021-08-13 联合汽车电子有限公司 Complete vehicle network partial dormancy management system and method and central gateway
CN113253648B (en) * 2021-05-19 2022-10-11 北京车和家信息技术有限公司 Vehicle and network management method thereof, domain controller, storage medium, and electronic device
CN114143746A (en) * 2021-11-30 2022-03-04 北京经纬恒润科技股份有限公司 Target network segment sleep state management method and related equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144029A (en) * 2018-08-24 2019-01-04 安徽江淮汽车集团股份有限公司 A kind of method and system that the local sleep of CAN bus wakes up
CN111624902A (en) * 2019-02-28 2020-09-04 北京新能源汽车股份有限公司 Control method and device for dormancy and awakening

Also Published As

Publication number Publication date
CN114785630A (en) 2022-07-22

Similar Documents

Publication Publication Date Title
CN106371424B (en) A kind of vehicle dormancy method and system
CN108933719B (en) Vehicle-mounted CAN network management method, vehicle-mounted CAN network and vehicle
CN106851798B (en) Vehicle network control method and vehicle network system
CN113253648B (en) Vehicle and network management method thereof, domain controller, storage medium, and electronic device
US9632970B2 (en) Device, method and computer program for operating a data bus system of a motor vehicle
CN110830267A (en) State control method and device of network node and gateway
CN107415741B (en) Control method and device for working state of vehicle-mounted charger controller and electric vehicle
CN109144029A (en) A kind of method and system that the local sleep of CAN bus wakes up
CN106218550A (en) The control method of electronic control unit, electronic control unit, system and vehicle
CN108900313A (en) A kind of CAN bus based network management and system
CN102815274B (en) Management method for bus-mastering system of finished automobile
GB2549087A (en) Communications on data buses
CN106184074B (en) Control method, electronic control unit, system and the vehicle of electronic control unit
CN113259421A (en) Complete vehicle network partial dormancy management system and method and central gateway
CN111624902A (en) Control method and device for dormancy and awakening
CN113794611A (en) Intelligent automobile electronic and electrical architecture based on central computing platform
CN106020177A (en) Control method of electronic control unit, electronic control unit and vehicle
CN114785630B (en) Wake-up control method and device of CAN network segment, electronic equipment and storage medium
CN202872815U (en) Automobile network topology
CN114670762B (en) Vehicle-mounted equipment awakening control method and device and electric automobile
CN115032932B (en) Control method and device of vehicle controller, central gateway controller and medium
CN107640030B (en) Method and device for reducing capacity of low-voltage storage battery of pure electric vehicle
CN107888472B (en) Vehicle network management method, control gateway, controller and automobile
CN112068493B (en) Whole vehicle sleep awakening control method and control system
CN117793671A (en) Vehicle-mounted network dormancy awakening method and device, electric structure and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant