CN112224215B - Integrated control chip, control method thereof, storage medium, and vehicle - Google Patents
Integrated control chip, control method thereof, storage medium, and vehicle Download PDFInfo
- Publication number
- CN112224215B CN112224215B CN201910581920.XA CN201910581920A CN112224215B CN 112224215 B CN112224215 B CN 112224215B CN 201910581920 A CN201910581920 A CN 201910581920A CN 112224215 B CN112224215 B CN 112224215B
- Authority
- CN
- China
- Prior art keywords
- node
- data stream
- control module
- coefficient
- operation 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
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60W—CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- B60W50/00—Details of control systems for road vehicle drive control not related to the control of a particular sub-unit, e.g. process diagnostic or vehicle driver interfaces
- B60W50/0098—Details of control systems ensuring comfort, safety or stability not otherwise provided for
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
- B60R16/023—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
- B60R16/0231—Circuits relating to the driving or the functioning of the vehicle
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Mechanical Engineering (AREA)
- Human Computer Interaction (AREA)
- Transportation (AREA)
- Feedback Control In General (AREA)
Abstract
The present disclosure relates to an integrated control chip and a control method thereof, a storage medium, and a vehicle. The integrated control chip is integrated with control modules corresponding to the vehicle-mounted components one by one and a main control module, node streams corresponding to the control modules one by one are formed in the integrated control chip, and a plurality of data streams corresponding to a plurality of events one by one are also formed in the integrated control chip; the main control module is used for determining the traversal time parameter of each node flow according to the execution duration limit information of each data flow; the main control module is further configured to sequentially call each control module according to the traversal time parameter cycle of each node flow, and traverse each operation node in the node flow corresponding to the target control module for each called target control module.
Description
Technical Field
The disclosure relates to the field of vehicles, in particular to an integrated control chip and a control method thereof, a storage medium and a vehicle.
Background
With the development of vehicle technology, the number of vehicle-mounted components which can be selectively configured and installed on a vehicle is increased, and the vehicle-mounted components are configured and installed on different vehicle types or different vehicles of the same vehicle type.
In the related art, a controller is separately configured for each vehicle-mounted component on a vehicle, the controller corresponding to each vehicle-mounted component controls the operation of the vehicle-mounted component, and different vehicle-mounted components communicate through a can (controller Area network) network on the vehicle.
Disclosure of Invention
The disclosure aims to provide an integrated control chip, a control method thereof, a storage medium and a vehicle, which are used for solving the technical problem that the development cost of the vehicle is high in the related art.
In order to achieve the above object, a first aspect of the present disclosure provides an integrated control chip, in which a plurality of control modules corresponding to a plurality of vehicle-mounted components one to one and a main control module are integrated, where the control modules are used to be called by the main control module to implement a plurality of operations associated with the corresponding vehicle-mounted components;
a plurality of node flows which are in one-to-one correspondence with the plurality of control modules are formed in the integrated control chip, each node flow is formed by connecting operations executed by the corresponding control module in series, and each operation is respectively used as an operation node in the node flows;
the integrated control chip is also provided with a plurality of data streams corresponding to a plurality of events one by one, each data stream is formed by connecting a plurality of operation nodes in series, and each data stream comprises operation nodes in different node streams;
the main control module is used for determining the traversal time parameter of each node flow according to the execution duration limit information of each data flow;
the main control module is further used for sequentially calling each control module according to the traversal time parameter cycle of each node flow, and traversing each operation node in the node flow corresponding to the target control module for each called target control module;
for each traversed operation node, judging whether the operation node is in a data stream, if the operation node is in the data stream and a previous operation node of the operation node in the data stream is in a finished state, executing an operation corresponding to the operation node; and if the operation node is not in the data stream, or the operation node is in the data stream and the previous operation node of the operation node in the data stream is in an unfinished state, traversing the next operation node of the operation node in the node stream corresponding to the target control module.
Optionally, the main control module is further configured to:
determining resource allocation priorities of a plurality of data streams according to a particle swarm algorithm, and sequentially determining target data streams according to the resource allocation priorities;
and aiming at each target data stream, adjusting the traversal time parameter of the node stream of each operation node in the target data stream according to the remaining resources of the main control module and the execution duration limit information corresponding to the target data stream.
Optionally, the main control module is configured to:
generating a plurality of groups of priority allocation information, wherein the priority allocation information is used for setting the resource allocation priority of each data flow;
determining a running good coefficient of the integrated control chip according to the waiting times of the operation node in each data stream under the resource allocation priority indicated by each group of priority allocation information, wherein the waiting times refer to the times that the node stream to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data stream is marked as a finished state;
and if the operation good coefficient in the preset range exists, setting resource distribution priority for the plurality of data streams according to the priority distribution information corresponding to the operation good coefficient.
Optionally, the main control module is configured to:
if the operation good coefficients in the preset range do not exist, updating the multiple groups of priority distribution information according to the particle swarm algorithm, and returning to execute the step of determining the operation good coefficients of the integrated control chip according to the waiting times of the operation nodes in each data stream under the resource distribution priority represented by each group of priority distribution information according to the updated multiple groups of priority distribution information until the operation good coefficients in the preset range exist.
Optionally, the velocity update formula of the single data stream particle in the particle swarm optimization is expressed as:
one data stream particle represents a group of priority allocation information, d is a dimension index of the data stream particle, and d is 1,2, 3.. n; omega is an inertia factor; c. C1,c2Is an acceleration constant; r is1,r2A random number from 0 to 1; p is a radical ofiIs the optimal solution on all the routes traversed by the ith data stream particle, an pgFor the optimal solution on the path traversed by all data stream particles, andViis the flight velocity of the ith data stream particle, and
and, the position update formula of the single data stream particle is expressed as:
alpha is a constraint factor.
Optionally, the main control module is further configured to:
and for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, wherein the operation good coefficient comprises each control good coefficient.
Optionally, the main control module is configured to:
for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow;
taking an average value of each of the control goodness coefficients as a system goodness coefficient, the run goodness coefficient comprising the system goodness coefficient.
Optionally, the operation goodness coefficient includes a system goodness coefficient and a control goodness coefficient corresponding to each of the control modules, where the main control module is specifically configured to:
judging whether each control good coefficient is in a first reasonable coefficient range or not and whether the system good coefficient is in a second reasonable coefficient range or not;
setting resource distribution priority for a plurality of data streams according to priority distribution information which enables each control good coefficient to be in the first reasonable coefficient range and enables the system good coefficient to be in the second reasonable coefficient range;
and taking the ratio of the sum of the waiting times of each operation node in each node flow to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, and taking the average value of each control good coefficient as a system good coefficient.
Optionally, the traversal time parameter includes an execution duration and an execution period of the node flow, and the main control module is configured to:
and trial running the plurality of node streams and the plurality of data streams according to the execution duration and the execution period, acquiring the waiting times of the operation nodes in each data stream in the trial running process, and determining the operation excellent coefficient of the integrated control chip according to the waiting times of the operation nodes in each data stream.
Optionally, the main control module is further configured to:
when an event for triggering a vehicle function is detected, if a data stream corresponding to the function is in an inactivated state, the data stream is changed into an activated state, and the data stream in the activated state is used as a data stream of resources to be allocated to execute a step of determining a traversal time parameter of each node stream according to execution duration limiting information of the data stream of each resource to be allocated;
the main control module is specifically configured to: for each traversed operation node, judging whether the operation node is in an activated data stream or not, and if the operation node is in the activated data stream and a previous operation node of the operation node in the activated data stream is in a finished state, executing an operation corresponding to the operation node; and traversing a next operation node of the operation node in the node flow corresponding to the target control module if the operation node is not in the activated data flow or the operation node is in the data flow and a previous operation node of the operation node in the activated data flow is in an unfinished state.
Optionally, the main control module is configured to:
and after the activated data flow is allocated with resources, executing the operation corresponding to the head node of the data flow.
Optionally, the integrated control chip further comprises a storage module for storing a computer program, wherein the main control module implements the operation of the main control module in the integrated control chip by executing the computer program in the storage module.
A second aspect of the present disclosure provides a control method of an integrated control chip, the method including:
according to the determined traversal time parameter of each node flow, circularly and sequentially calling each control module in the integrated control chip, and traversing each operation node in the node flow corresponding to the target control module aiming at the called target control module each time, wherein the node flow corresponding to each control module is formed by serially connecting operations executed by the control module, and each operation is respectively used as one operation node in the node flow;
for each traversed operation node, judging whether the operation node is in a data stream, wherein one data stream in the integrated control chip corresponds to an event, each data stream is formed by connecting a plurality of operation nodes in series, and each data stream comprises operation nodes in different node streams;
if the operation node is in a data stream and a previous operation node of the operation node in the data stream is in a finished state, executing an operation corresponding to the operation node;
if the operation node is not in the data stream, or the operation node is in the data stream and the previous operation node of the operation node in the data stream is in an unfinished state, traversing the next operation node of the operation node in the node stream corresponding to the target control module;
wherein the traversal time parameter of each node flow is determined by: and determining the traversal time parameter of each node flow according to the execution time limit information of each data flow.
Optionally, the determining, according to the execution duration limitation information of each data stream, a traversal time parameter of each node stream includes:
determining resource allocation priorities of a plurality of data streams according to a particle swarm algorithm, and sequentially determining target data streams according to the resource allocation priorities;
and aiming at each target data stream, adjusting the traversal time parameter of the node stream of each operation node in the target data stream according to the remaining resources of the integrated control chip and the execution duration limit information corresponding to the target data stream.
Optionally, the method further comprises:
generating a plurality of groups of priority allocation information, wherein the priority allocation information is used for setting the resource allocation priority of each data flow;
determining a running good coefficient of the integrated control chip according to the waiting times of the operation node in each data stream under the resource allocation priority indicated by each group of priority allocation information, wherein the waiting times refer to the times that the node stream to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data stream is marked as a finished state;
and if the operation good coefficient in the preset range exists, setting resource distribution priority for the plurality of data streams according to the priority distribution information corresponding to the operation good coefficient.
Optionally, the determining resource allocation priorities of the plurality of data streams according to the particle swarm algorithm includes:
if the operation good coefficients in the preset range do not exist, updating the multiple groups of priority distribution information according to the particle swarm algorithm, and returning to execute the step of determining the operation good coefficients of the integrated control chip according to the waiting times of the operation nodes in each data stream under the resource distribution priority represented by each group of priority distribution information according to the updated multiple groups of priority distribution information until the operation good coefficients in the preset range exist.
Optionally, the velocity update formula of the single data stream particle in the particle swarm optimization is expressed as:
one data stream particle represents a group of priority allocation information, d is a dimension index of the data stream particle, and d is 1,2, 3.. n; omega is an inertia factor; c. C1,c2Is an acceleration constant; r is1,r2A random number from 0 to 1; p is a radical ofiIs the optimal solution on all the routes traversed by the ith data stream particle, an pgFor the optimal solution on the path traversed by all data stream particles, andViis the flight velocity of the ith data stream particle, and
and, the position update formula of the single data stream particle is expressed as:
alpha is a constraint factor.
Optionally, the determining a running goodness coefficient of the integrated control chip according to the number of waiting times of the operation node in each data stream includes:
and for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, wherein the operation good coefficient comprises each control good coefficient.
Optionally, the determining a running goodness coefficient of the integrated control chip according to the number of waiting times of the operation node in each data stream includes:
for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow;
taking an average value of each of the control goodness coefficients as a system goodness coefficient, the run goodness coefficient comprising the system goodness coefficient.
Optionally, the operation goodness coefficient includes a system goodness coefficient and a control goodness coefficient corresponding to each control module, and if there is an operation goodness coefficient within a preset range, setting a resource allocation priority for the multiple data streams according to priority allocation information corresponding to the operation goodness coefficient includes:
judging whether each control good coefficient is in a first reasonable coefficient range or not and whether the system good coefficient is in a second reasonable coefficient range or not;
setting resource distribution priority for a plurality of data streams according to priority distribution information which enables each control good coefficient to be in the first reasonable coefficient range and enables the system good coefficient to be in the second reasonable coefficient range;
wherein the control goodness coefficient is a ratio of a sum of the wait times of each operation node in each node flow to a sum of a preset time threshold of each operation node, and the system goodness coefficient is an average value of each control goodness coefficient.
Optionally, the traversal time parameter includes an execution duration and an execution period of the node flow, and the method further includes:
and trial running the plurality of node flows and the plurality of data flows according to the execution duration and the execution period, and acquiring the waiting times of the operation nodes in each data flow in the trial running process.
Optionally, the determining, according to the execution duration limitation information of each data stream, a traversal time parameter of each node stream includes:
when an event for triggering a vehicle function is detected, if a data stream corresponding to the function is in an inactivated state, the data stream is changed into an activated state, and the data stream in the activated state is used as a data stream of resources to be allocated to execute a step of determining a traversal time parameter of each node stream according to execution duration limiting information of the data stream of each resource to be allocated;
the traversing process of the target control module by the method specifically comprises the following steps:
for each traversed operation node, judging whether the operation node is in an activated data stream or not, and if the operation node is in the activated data stream and a previous operation node of the operation node in the activated data stream is in a finished state, executing an operation corresponding to the operation node; and traversing a next operation node of the operation node in the node flow corresponding to the target control module if the operation node is not in the activated data flow or the operation node is in the data flow and a previous operation node of the operation node in the activated data flow is in an unfinished state.
Optionally, the method further comprises:
and after the activated data flow is allocated with resources, executing the operation corresponding to the head node of the data flow.
A third aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a master control module in an integrated control chip, implements the steps of the method of any one of the second aspects.
A fourth aspect of the present disclosure provides a vehicle including the integrated control chip of the first aspect.
According to the technical scheme, when a certain event needs to be realized by using the vehicle-mounted component, a data stream capable of realizing the event is formed by configuring operation nodes on the node stream corresponding to the control module in the integrated control chip, and when each control module is called in sequence and circularly according to the traversal time parameter of each node stream, the operation node in the data stream traverses along with each operation node in the called control module, so that whether the operation node in the data stream is executed or not is judged, and when the operation node in the data stream is determined to be executed, the corresponding event is realized. Because the cyclic calling of the control module and the traversal of the operation nodes in the control module are sequentially carried out, corresponding events can be realized by configuring operation points in the data stream, a controller is not required to be independently configured for each vehicle-mounted component on the vehicle, and the development cost of the vehicle is reduced. And the traversal time parameter of each node flow is determined according to the execution time limit information of each data flow, so that the setting of the traversal time parameter of each node flow can meet the execution time limit requirements of all data flows, and the normal response of the vehicle event is ensured.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a block diagram illustrating an integrated control chip in accordance with an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating data flow and node flow in an integrated control chip according to an example embodiment.
Fig. 3 is a flowchart illustrating a control method of an integrated control chip according to an exemplary embodiment.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
FIG. 1 is a block diagram illustrating an integrated control chip in accordance with an exemplary embodiment. As shown in fig. 1, a plurality of control modules 121 to 126 corresponding to a plurality of vehicle-mounted components one to one and a main control module 110 are integrated in the integrated control chip 100, wherein the control modules 121 to 126 are used for being called by the main control module 110 to implement a plurality of operations associated with the corresponding vehicle-mounted components;
a plurality of node flows which are in one-to-one correspondence with the plurality of control modules are formed in the integrated control chip, each node flow is formed by connecting operations executed by the corresponding control module in series, and each operation is respectively used as an operation node in the node flows;
the integrated control chip is also provided with at least one data stream corresponding to at least one event one by one, each data stream is formed by connecting a plurality of operation nodes in series, and each data stream comprises operation nodes in different node streams;
the main control module is used for determining the traversal time parameter of each node flow according to the execution duration limit information of each data flow;
the main control module is further used for sequentially calling each control module according to the traversal time parameter cycle of each node flow, and traversing each operation node in the node flow corresponding to the target control module for each called target control module;
for each traversed operation node, judging whether the operation node is in a data stream, if the operation node is in the data stream and a previous operation node of the operation node in the data stream is in a finished state, executing an operation corresponding to the operation node; and if the operation node is not in the data stream, or the operation node is in the data stream and the previous operation node of the operation node in the data stream is in an unfinished state, traversing the next operation node of the operation node in the node stream corresponding to the target control module.
In an exemplary embodiment, the main control module 110 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components. In another exemplary embodiment, the control modules 121-126 may be implemented in the form of hardware, or may be implemented in the form of software functional units. The software functional unit is stored in a storage medium and includes a plurality of functional functions for executing the functional functions when the main control module 110 calls the control module. And the aforementioned storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), and other various media capable of storing program codes.
With regard to the relationship of the control modules and the in-vehicle components, in particular, a single in-vehicle component corresponds to one of the plurality of control modules in the integrated control chip. When some vehicle-mounted components need to be used, control modules corresponding to the vehicle-mounted components can be called through the main control module, and relevant operations of the vehicle-mounted components corresponding to the control modules are realized through the control modules, and a single operation can be a specific action executed by the vehicle-mounted components, such as sending information, processing information or outputting information.
For example, the single vehicle-mounted component may be any one of a radar, a buzzer, a meter, a vehicle-mounted air conditioner, a vehicle lamp system and a smart key, and in one possible embodiment, as shown in fig. 1, the control module 121 is a control module corresponding to a radar, and when it is required to perform some operations using the radar, such as transmitting a radar wave for detecting an obstacle, the main control module 110 calls the control module 121 and then controls the radar to transmit the radar wave.
For node flow, a schematic diagram of data flow and node flow in an integrated control chip is exemplarily shown with reference to fig. 2. As shown in fig. 2, the control module 121 is a control module corresponding to a radar, the operation node 1211 corresponds to an operation of transmitting a radar wave for detecting an obstacle, the operation node 1212 corresponds to an operation of receiving the transmitted radar wave, and the operation node 1213 corresponds to an operation of resolving the received radar wave, so that the operation node 1211, the operation node 1212, and the operation node 1213 form a node flow corresponding to the control module 121, and the operation nodes 1211 to 1213 are arranged in the node flow in an order of executing the operation node 1211, then executing the operation node 1212, and finally executing the operation node 1213. Similarly, referring to FIG. 2, the node flows formed by the operation nodes 1221-1223 correspond to the control module 122, and the node flows formed by the operation nodes 1231-1233 correspond to the control module 123.
Still taking fig. 2 as an example, for the data flow, the control module 121 is a control module corresponding to a radar, the control module 122 is a control module corresponding to a buzzer, the control module 123 is a control module corresponding to a meter, the operation node 1211 of the control module 121 is operated to obtain data information, for example, an obstacle monitored by the radar may be located in one of 5 distance ranges, such as 0 to 0.5m, 0.5m to 1m, 1m to 1.5m, 1.5m to 2m, 2m to 6m, and the obtained data information is data information indicating that the obstacle is located in one of the 5 distance ranges. The operation node 1222 of the control module 122 is configured to control the buzzer to beep at a frequency corresponding to the distance range based on the data information obtained by the operation node 1211, for example, the buzzer may beep at a frequency of 2kHz, 1kHz, 500Hz, 250Hz, and 125Hz, and 2kHz corresponds to 0-0.5 m, 1kHz corresponds to 0.5 m-1 m, 500Hz corresponds to 1 m-1.5 m, 250Hz corresponds to 1.5 m-2 m, and 125Hz corresponds to 2 m-6 m, that is, when the obtained data information indicates that the obstacle is located at 0-0.5 m, the buzzer beeps at a frequency of 2kHz, and the rest is the same. The operation node 1233 of the control module 123 corresponds to an operation of displaying the distance of the obstacle with respect to the vehicle on the meter based on the acquired data information.
Referring to the above description of the operation corresponding to the operation node, the event is completed by a data stream, and the data stream is formed by connecting a plurality of operation nodes in series, and each data stream includes operation nodes in different node streams. Specifically, the vehicle event may be composed of a plurality of operations in a certain order, and a data stream is formed by configuring a plurality of operation nodes in one-to-one correspondence with the plurality of operations, thereby completing a specific event. For example, for an event in which an obstacle distance is monitored by radar, a buzzer is controlled to beep according to information about the distance, and information about the distance is displayed on a meter, a data stream may be formed by configuring the operation node 1211, the operation node 1222, and the operation node 1233 in series in this order.
In one possible embodiment, the main control module 110 first calls the control module 121 to perform an operation corresponding to the operation node 1211, the data information obtained by the radar indicates that the obstacle is located in the range of 0.5m to 1m, then the main control module 110 calls the control module 122 to perform an operation corresponding to the operation node 1222, the buzzer is controlled to buzz at the frequency of 1kHz, and finally the main control module 110 calls the control module 123 to perform an operation corresponding to the operation node 1233, and the distance of the obstacle from the vehicle is displayed on the meter in the range of 0.5m to 1 m. Of course, the data information acquired by the radar may also include the direction of the obstacle relative to the vehicle, for example, the left front direction, and thus a buzzer located at the left front direction on the vehicle may be controlled to beep, and the obstacle located at the left front direction on the vehicle may be displayed on the meter.
Regarding the calling of the control module by the main control module, for example, for the control modules 121 to 126 in fig. 1, the control modules 121, 122, 123, 124, 125 and 126 may be called in sequence, when the control module 121 is called, as shown in fig. 2, each operation node is traversed in sequence according to the sequence of the operation node 1211, the operation node 1212 and the operation node 1213, and when the control module 122 is called, each operation node is traversed in sequence according to the sequence of the operation node 1221, the operation node 1222 and the operation node 1223.
With respect to whether the main control module performs corresponding operations on the traversed operation nodes, following the above example, as shown in fig. 2, for the operation nodes 1221 to 1223 in the control module 122, when traversing to the operation node 1221, since the operation node 1221 is not located in any data stream, the operation corresponding to the operation node 1221 is not performed, and the data stream is transferred to the traversal operation node 1222, since the operation node 1222 is located in the data stream formed by the operation node 1211, the operation node 1222 and the operation node 1233, it can be detected whether the operation node 1211, which is the previous operation node of the operation node 1222 in the data stream, is in a complete state, the operation corresponding to the operation node 1222 is performed if the operation node 1211 is in the complete state, and the operation corresponding to the operation node 1222 is not performed if the operation node 1211 is in the incomplete state. It should be noted that, when traversing to an operation node, no matter whether the operation corresponding to the operation node is executed, after traversing the operation node, the next operation node in the node flow where the operation node is located is traversed. In addition, if the operation node is located in the data stream and the operation node is the first node in the data stream, the operation corresponding to the operation node is directly executed without detecting whether the previous operation node in the data stream is in the completed state.
That is, the main control module may sequentially invoke each control module in a certain order, and the invoking process may be performed in a loop, and the loop may be started when the vehicle is started. For the control module being called, that is, the target control module, the main control module may traverse each operation node in the node stream corresponding to the control module according to the serial order of the operation nodes in the node stream corresponding to the control module, and determine whether to execute the operation corresponding to the operation node this time.
It is noted that, in implementation, there may be a certain control module that can independently perform certain events independently of the data of other control modules. In this case, when the master control module traverses to an operation node in a node flow corresponding to the control module, even if the operation node does not belong to any data flow, the operation corresponding to the operation node is still executed.
The adoption of the integrated control chip can comprise the following technical effects:
when a certain event needs to be realized by using the vehicle-mounted component, a data stream capable of realizing the event is formed by configuring operation nodes on a node stream corresponding to a control module in an integrated control chip, and when each control module is called in turn and circularly according to the traversal time parameter of each node stream, the operation node in the data stream judges whether to execute the operation node in the data stream along with the traversal of each operation node in the called control module, and when the operation node in the data stream is determined to be executed, the corresponding event is realized. Because the cyclic calling of the control module and the traversal of the operation nodes in the control module are sequentially carried out, corresponding events can be realized by configuring operation points in the data stream, a controller is not required to be independently configured for each vehicle-mounted component on the vehicle, and the development cost of the vehicle is reduced.
Further, for a vehicle event, the system is typically required to respond within a certain time frame after the event is triggered, which causes the data stream corresponding to the vehicle event to have an execution duration limit. The operation of the data stream depends on the cyclic traversal of the node stream, so the time of the cyclic traversal of the node stream directly influences the execution duration of the data stream. In this case, it is necessary to reasonably plan the traversal time parameter of each node flow to ensure that the execution of each data flow meets the execution time requirement (response time of the event corresponding to the data flow). Therefore, the main control module is further configured to determine a traversal time parameter of each node flow according to the execution duration limitation information of each data flow.
That is, in the vehicle operation, the traversal time parameter of each node flow associated with each data flow may be determined according to the execution duration limit information of the data flow. In this way, the main control module cyclically and sequentially calls each control module according to the determined traversal time parameter, and traverses each operation node in the node flow corresponding to the target control module aiming at the target control module called each time, so that the operation of each data flow can be ensured to meet the corresponding execution time requirement.
The traversal time parameter may include an execution period and/or an execution duration of the node flow, where the execution period is used to indicate how often the node flow needs to be executed, and the execution duration is used to indicate a duration taken by each execution of the node flow.
In a possible implementation manner, the main control module is further configured to:
determining resource allocation priorities of a plurality of data streams according to a particle swarm algorithm, and sequentially determining target data streams according to the resource allocation priorities;
and aiming at each target data stream, adjusting the traversal time parameter of the node stream of each operation node in the target data stream according to the remaining resources of the main control module and the execution duration limit information corresponding to the target data stream.
It should be noted that, for a specific resource allocation priority order of multiple data flows, when the master control module sequentially adjusts the traversal time parameters of the node flows related to each data flow according to the priority order, the master control module preferentially adjusts the traversal time parameters of the node flows related to the data flows with high priority to meet the execution duration requirement of the data flow (the requirement is indicated by the execution duration limitation information) until the traversal time parameters of each node flow corresponding to each data flow are adjusted, so as to obtain the final traversal time parameters of each node flow.
That is to say, by adopting the particle swarm algorithm, the master control module can continuously optimize the resource allocation priorities of the multiple data streams, and continuously adjust the traversal time parameters of the node streams corresponding to the data streams from the data stream with high priority until the final traversal time parameters of the node streams are obtained according to the finally obtained resource allocation priorities of the data streams. In this way, the main control module cyclically and sequentially calls each control module according to the determined traversal time parameter, and traverses each operation node in the node flow corresponding to the target control module aiming at the target control module called each time, so that the operation of each data flow can be ensured to meet the corresponding execution time requirement.
In a possible implementation manner, the main control module is configured to:
generating a plurality of groups of priority allocation information, wherein the priority allocation information is used for setting the resource allocation priority of each data flow;
determining a running good coefficient of the integrated control chip according to the waiting times of the operation node in each data stream under the resource allocation priority indicated by each group of priority allocation information, wherein the waiting times refer to the times that the node stream to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data stream is marked as a finished state;
and if the operation good coefficient in the preset range exists, setting resource distribution priority for the plurality of data streams according to the priority distribution information corresponding to the operation good coefficient.
In this way, by setting the parameter of the waiting time for each operation node, for each generated set of priority assignment information, the operation goodness coefficient of the integrated control chip under the priority assignment information can be determined by the waiting time of each operation node under the priority assignment information, so that the priority assignment information meeting the requirement can be selected according to the operation goodness coefficient. And finally, setting resource allocation priorities for the plurality of data streams according to the priority allocation information meeting the requirements so as to meet the execution duration requirements of the data streams.
In another possible implementation manner, the main control module is configured to:
if the operation good coefficients in the preset range do not exist, updating the multiple groups of priority distribution information according to the particle swarm algorithm, and returning to execute the step of determining the operation good coefficients of the integrated control chip according to the waiting times of the operation nodes in each data stream under the resource distribution priority represented by each group of priority distribution information according to the updated multiple groups of priority distribution information until the operation good coefficients in the preset range exist.
That is to say, when the operation quality coefficients corresponding to the multiple sets of priority allocation information generated by the main control module do not meet the execution duration requirement of the node stream, the main control module can also update the multiple sets of priority allocation information according to the particle swarm algorithm, and finally find the priority allocation information which can meet the execution duration requirement of each node stream by continuously optimizing the priority allocation information through the particle swarm algorithm.
Optionally, the speed update formula of a single data stream particle in the particle swarm optimization is represented as:
one data stream particle represents a group of priority allocation information, d is a dimension index of the data stream particle, and d is 1,2, 3.. n; omega is an inertia factor; c. C1,c2Is an acceleration constant; r is1,r2A random number from 0 to 1; p is a radical ofiIs the optimal solution on all the routes traversed by the ith data stream particle, an pgFor the optimal solution on the path traversed by all data stream particles, andViis the flight velocity of the ith data stream particle, and
and, the position update formula of the single data stream particle is expressed as:
alpha is a constraint factor.
By adopting the integrated control chip, the execution of the data stream can be ensured to meet the requirement of time limit by planning the resources of the data stream (namely adjusting the traversal time parameter of the node stream related to the data stream), and a controller is not required to be independently configured for each vehicle-mounted component on the vehicle, thereby reducing the development cost of the vehicle.
Optionally, the main control module is further configured to:
and for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, wherein the operation good coefficient comprises each control good coefficient.
Wherein, the following node parameters can be set for each operation node:
and whether a data information flag bit DRF is needed or not is used for representing whether the execution of the operation node needs to wait for the data information of the previous data flow node or not. If DRF is 1, it indicates that the operation node needs to wait for the data information of the previous data flow node, and the operation node cannot execute the data information in the absence of the data information. DRF-0 means that the operating node does not need to wait for data information.
And the waiting time DWT is used for recording the time that the operation node has waited for the data information, and the waiting time refers to the time that the node flow to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data flow is marked as the completed state.
Reasonable waiting time DWToptAnd the operation node is used for representing the reasonable waiting times of the operation node, and the execution state of the operation node is considered to be good under the reasonable waiting times.
Illustratively, each of the reasonable wait times may be DWT for each operational nodeoptAs a preset number threshold for the operational node. The air conditioner control module isFor example, if there are 5 operation nodes needing to wait for data information in the node stream corresponding to the air conditioning control module, the control good coefficient of the air conditioning control modulei is the number of an operation node needing to wait for data information in the same node flow, and each control good coefficient can be used as a running good coefficient in specific implementation.
In this way, the operation index of the waiting times is set for each operation node, and the main control module can determine the operation state of each control module by comparing the waiting times with the corresponding preset time threshold value by setting the preset time threshold value for each operation node. And then determining the operation good coefficient of the integrated control chip according to the operation state of each control module, and finally judging whether the current resource allocation information accords with the expectation according to the operation good coefficient, thereby being beneficial to searching the traversal time parameter meeting the execution time limit information of each data stream.
Optionally, the main control module is configured to:
for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow;
taking an average value of each of the control goodness coefficients as a system goodness coefficient, the run goodness coefficient comprising the system goodness coefficient.
That is, the control goodness coefficient may also be represented as an average value of each control goodness coefficient, i.e., a system goodness coefficient. The states of the control modules under the specific resource allocation information are integrally evaluated through the system good coefficient, the screening efficiency of the resource allocation information is further improved, and the traversal time parameters meeting the execution time limit information of each data stream are searched.
Optionally, the operation goodness coefficient includes a system goodness coefficient and a control goodness coefficient corresponding to each of the control modules, where the main control module is specifically configured to:
judging whether each control good coefficient is in a first reasonable coefficient range or not and whether the system good coefficient is in a second reasonable coefficient range or not;
setting resource distribution priority for a plurality of data streams according to priority distribution information which enables each control good coefficient to be in the first reasonable coefficient range and enables the system good coefficient to be in the second reasonable coefficient range;
and taking the ratio of the sum of the waiting times of each operation node in each node flow to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, and taking the average value of each control good coefficient as a system good coefficient.
Illustratively, whether a data information flag bit DRF is needed or not and a reasonable waiting time DWT are set for each operation nodeoptOn the basis of the waiting time DWT, the following parameters can be set for the operation node:
maximum wait time DWTmaxAnd the function module is used for representing the maximum waiting times of the operation node, and if the waiting times of the operation node is greater than the maximum waiting times, the function of the operation node is invalid.
In particular, the sum of the wait times of each operation node in each node flow and the reasonable wait time DWT of each operation node can be implementedoptAs a control merit coefficient of the control module corresponding to the node flow:i is the number of the operation node needing to wait for the data information in the same node flow. The first reasonable coefficient range may be set toWherein, each operation node is subjected to DWT with maximum waiting timesmaxWith reasonable wait times DWToptThe ratio of (A) is recorded as Noefmax. Specifically, for a certain control module, when the nodf value is less than 1, the control module is in a superior state, and the state of the control module is superior as the nodf value is smaller. Noef maximum value is NoefmaxThe closer the Noef value is to the NoefmaxThe worse the operating state of the control module. The optimal state of the control module isThat is, all the operation nodes do not wait, and the Nodef value is 0 at this time; the worst state Noef value of the control module is NoefmaxAt this time, the waiting times of all the operation nodes in the node flow corresponding to the control module all exceed the maximum waiting time of the operation node, and in this case, the data flow to which the operation node in the node flow belongs is in a failure state, and the functional event corresponding to the data flow cannot be realized.
Further, an average value of each of the control merit coefficients may be taken as a system merit coefficient:wherein i is the number of the control module, and n is the number of the control modules in the system. When Sysf value is at(i.e., the second reasonable coefficient range), the system is considered to be in good operation, where
Therefore, by adopting the integrated control chip, the main control module can monitor the running states of each control module and the operation node corresponding to each control module in real time by setting two indexes of the good control coefficient and the good system coefficient and setting intervals for the good control coefficient and the good system coefficient respectively. That is, the main control module can determine the traversal time parameter of each node flow associated with each data flow according to the execution duration limitation information of the data flow by using the control goodness coefficient and the system goodness coefficient as indexes. In this way, the main control module cyclically and sequentially calls each control module according to the determined traversal time parameter, and traverses each operation node in the node flow corresponding to the target control module aiming at the target control module called each time, so that the operation of each data flow can be ensured to meet the corresponding execution time requirement.
In a possible implementation manner, the traversal time parameter includes an execution duration and an execution period of the node flow, and the main control module is configured to:
and trial running the plurality of node streams and the plurality of data streams according to the execution duration and the execution period, acquiring the waiting times of the operation nodes in each data stream in the trial running process, and determining the operation excellent coefficient of the integrated control chip according to the waiting times of the operation nodes in each data stream.
For example, in a specific implementation, the section range may be set for each operation node, and the operation goodness coefficient of the integrated control chip is determined by obtaining a waiting number section in which the waiting number of the operation node in each data stream in the commissioning process is located.
In this way, by setting the operation index of the waiting times for each operation node, the main control module can determine the operation quality coefficient of the integrated control chip through the operation index, and further judge whether the resource allocation priority and the traversal time parameter of the current data stream meet expectations according to the operation quality coefficient, which is beneficial to screening the resource allocation priority of the data stream.
Optionally, the main control module is further configured to:
when an event for triggering a vehicle function is detected, if a data stream corresponding to the function is in an inactivated state, the data stream is changed into an activated state, and the data stream in the activated state is used as a data stream of resources to be allocated to execute a step of determining a traversal time parameter of each node stream according to execution duration limiting information of the data stream of each resource to be allocated;
the main control module is specifically configured to: for each traversed operation node, judging whether the operation node is in an activated data stream or not, and if the operation node is in the activated data stream and a previous operation node of the operation node in the activated data stream is in a finished state, executing an operation corresponding to the operation node; and traversing a next operation node of the operation node in the node flow corresponding to the target control module if the operation node is not in the activated data flow or the operation node is in the data flow and a previous operation node of the operation node in the activated data flow is in an unfinished state.
It should be noted that the data streams may be configured in the integrated control chip before the vehicle leaves the factory, each data stream may include an activation flag, and when the activation condition corresponding to the data stream is satisfied, the activation flag is modified to represent the activation state.
That is to say, after the data stream corresponding to the functional event is activated for a new functional event generated during the vehicle operation process, the traversal time parameter of each node stream may be determined according to the newly activated data stream and the execution duration limitation information of each remaining data stream of resources to be allocated, so as to ensure that the operation of each data stream meets the corresponding execution duration requirement.
In a possible implementation manner, the main control module is configured to:
and after the activated data flow is allocated with resources, executing the operation corresponding to the head node of the data flow.
That is to say, after a certain data stream is activated (for example, after a vehicle-mounted component corresponding to a node stream where any operation node of the data stream is located is started), the data stream may be added to a thread in which the integrated control chip operates, an operation corresponding to a head node in the data stream is executed, the head node is marked as a completed state, and then traversal of each operation node in the data stream is activated, so as to complete a corresponding vehicle event. After the activation state of the data stream is cancelled (for example, after the vehicle-mounted component corresponding to the data stream is closed), the data stream may be removed from the thread.
Optionally, the integrated control chip further includes a storage module for storing a computer program, wherein the main control module implements the operation of the main control module in the integrated control chip by executing the computer program in the storage module.
The storage module may be various media that can store program codes, such as a read-only memory, a random access memory, and the like. The control modules 121 to 126 shown in fig. 2 may also be implemented in the form of software functional units, for example, each control module may be stored in the storage module in the form of a plurality of functional functions, so that the main control module may implement the corresponding operation of the main control module in the integrated control chip by executing the functional functions in the storage module.
Fig. 3 is a flowchart illustrating a control method of an integrated control chip according to an exemplary embodiment, where the method includes:
and S31, circularly and sequentially calling each control module in the integrated control chip according to the determined traversal time parameter of each node flow, and traversing each operation node in the node flow corresponding to the target control module for each called target control module.
The node flow corresponding to each control module is formed by serially connecting operations executed by the control module, and each operation is respectively used as an operation node in the node flow.
S32, for each operation node traversed, determining whether the operation node is in the data stream. The integrated control chip comprises a plurality of operation nodes, wherein one data stream in the integrated control chip corresponds to one event, each data stream is formed by connecting a plurality of operation nodes in series, and each data stream comprises operation nodes in different node streams.
S33, if the operation node is in a data stream and a previous operation node of the operation node in the data stream is in a completed state, executing an operation corresponding to the operation node;
s34, if the operation node is not in the data stream, or the operation node is in the data stream and the previous operation node of the operation node in the data stream is in an unfinished state, traversing the next operation node of the operation node in the node stream corresponding to the target control module;
wherein the traversal time parameter of each node flow is determined by: and determining the traversal time parameter of each node flow according to the execution time limit information of each data flow.
By adopting the control method of the integrated control chip, when a certain event needs to be realized by utilizing the vehicle-mounted component, a data stream capable of realizing the event is formed by configuring the operation nodes on the node stream corresponding to the control module in the integrated control chip, and when each control module is sequentially and circularly called according to the traversal time parameter of each node stream, the operation nodes in the data stream traverse along with each operation node in the called control module, so as to judge whether to execute the operation nodes in the data stream, and when the operation nodes in the data stream are determined to be executed, the corresponding event is realized. Because the cyclic calling of the control module and the traversal of the operation nodes in the control module are sequentially carried out, corresponding events can be realized by configuring operation points in the data stream, a controller is not required to be independently configured for each vehicle-mounted component on the vehicle, and the development cost of the vehicle is reduced. And the traversal time parameter of each node flow is determined according to the execution time limit information of each data flow, so that the setting of the traversal time parameter of each node flow can meet the execution time limit requirements of all data flows, and the normal response of the vehicle event is ensured.
Optionally, the determining, according to the execution duration limitation information of each data stream, a traversal time parameter of each node stream includes:
determining resource allocation priorities of a plurality of data streams according to a particle swarm algorithm, and sequentially determining target data streams according to the resource allocation priorities;
and aiming at each target data stream, adjusting the traversal time parameter of the node stream of each operation node in the target data stream according to the remaining resources of the integrated control chip and the execution duration limit information corresponding to the target data stream.
That is to say, by adopting the particle swarm algorithm, the master control module can continuously optimize the resource allocation priorities of the multiple data streams, and continuously adjust the traversal time parameters of the node streams corresponding to the data streams from the data stream with high priority until the final traversal time parameters of the node streams are obtained according to the finally obtained resource allocation priorities of the data streams. In this way, the main control module cyclically and sequentially calls each control module according to the determined traversal time parameter, and traverses each operation node in the node flow corresponding to the target control module aiming at the target control module called each time, so that the operation of each data flow can be ensured to meet the corresponding execution time requirement.
Optionally, the method further comprises:
generating a plurality of groups of priority allocation information, wherein the priority allocation information is used for setting the resource allocation priority of each data flow;
determining a running good coefficient of the integrated control chip according to the waiting times of the operation node in each data stream under the resource allocation priority indicated by each group of priority allocation information, wherein the waiting times refer to the times that the node stream to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data stream is marked as a finished state;
and if the operation good coefficient in the preset range exists, setting resource distribution priority for the plurality of data streams according to the priority distribution information corresponding to the operation good coefficient.
In this way, by setting the parameter of the waiting times for each operation node, for each generated set of priority assignment information, the operation quality factor of the integrated control chip can be determined by the waiting times of each operation node under the priority assignment information, so that priority assignment information meeting the requirements can be selected according to the operation quality factor. And finally, setting resource allocation priorities for the plurality of data streams according to the priority allocation information meeting the requirements so as to meet the execution duration requirements of the data streams.
Optionally, the determining resource allocation priorities of the plurality of data streams according to the particle swarm algorithm includes:
if the operation good coefficients in the preset range do not exist, updating the multiple groups of priority distribution information according to the particle swarm algorithm, and returning to execute the step of determining the operation good coefficients of the integrated control chip according to the waiting times of the operation nodes in each data stream under the resource distribution priority represented by each group of priority distribution information according to the updated multiple groups of priority distribution information until the operation good coefficients in the preset range exist.
That is to say, when the operation quality coefficients corresponding to the multiple sets of priority allocation information generated by the main control module do not meet the execution duration requirement of the node stream, the main control module can also update the multiple sets of priority allocation information according to the particle swarm algorithm, and finally find the priority allocation information which can meet the execution duration requirement of each node stream by continuously optimizing the priority allocation information through the particle swarm algorithm.
Optionally, the velocity update formula of the single data stream particle in the particle swarm optimization is expressed as:
one data stream particle represents a group of priority allocation information, d is a dimension index of the data stream particle, and d is 1,2, 3.. n; omega is an inertia factor; c. C1,c2Is an acceleration constant; r is1,r2A random number from 0 to 1; p is a radical ofiIs the optimal solution on all the routes traversed by the ith data stream particle, an pgFor the optimal solution on the path traversed by all data stream particles, andViis the flight velocity of the ith data stream particle, and
and, the position update formula of the single data stream particle is expressed as:
alpha is a constraint factor.
By adopting the control method of the integrated control chip, the execution of the data stream can be ensured to meet the requirement of time limit by planning the resources of the data stream (namely adjusting the traversal time parameter of the node stream related to the data stream), and a controller is not required to be independently configured for each vehicle-mounted component on the vehicle, thereby reducing the development cost of the vehicle.
Optionally, the determining a running goodness coefficient of the integrated control chip according to the number of waiting times of the operation node in each data stream includes:
and for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, wherein the operation good coefficient comprises each control good coefficient.
In this way, the operation index of the waiting times is set for each operation node, and the main control module can determine the operation state of each control module by comparing the waiting times with the corresponding preset time threshold value by setting the preset time threshold value for each operation node. And then determining the operation good coefficient of the integrated control chip according to the operation state of each control module, and finally judging whether the current resource allocation information accords with the expectation according to the operation good coefficient, thereby being beneficial to searching the traversal time parameter meeting the execution time limit information of each data stream.
Optionally, the determining a running goodness coefficient of the integrated control chip according to the number of waiting times of the operation node in each data stream includes:
for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow;
taking an average value of each of the control goodness coefficients as a system goodness coefficient, the run goodness coefficient comprising the system goodness coefficient.
That is to say, the control goodness coefficient can also be represented by an average value of each control goodness coefficient, that is, the system goodness coefficient, so that the screening efficiency of the resource allocation information is further improved, and the search for the traversal time parameter satisfying the execution time limit information of each data stream is facilitated.
Optionally, the operation goodness coefficient includes a system goodness coefficient and a control goodness coefficient corresponding to each control module, and if there is an operation goodness coefficient within a preset range, setting a resource allocation priority for the multiple data streams according to priority allocation information corresponding to the operation goodness coefficient includes:
judging whether each control good coefficient is in a first reasonable coefficient range or not and whether the system good coefficient is in a second reasonable coefficient range or not;
setting resource distribution priority for a plurality of data streams according to priority distribution information which enables each control good coefficient to be in the first reasonable coefficient range and enables the system good coefficient to be in the second reasonable coefficient range;
wherein the control goodness coefficient is a ratio of a sum of the wait times of each operation node in each node flow to a sum of a preset time threshold of each operation node, and the system goodness coefficient is an average value of each control goodness coefficient.
Therefore, by adopting the control method of the integrated control chip, the main control module can monitor the running states of each control module and the operation node corresponding to each control module in real time by setting two control indexes and setting intervals for the good control coefficient and the good system coefficient respectively. That is, the main control module can determine the traversal time parameter of each node flow associated with each data flow according to the execution duration limitation information of the data flow by using the system goodness coefficient and the system goodness coefficient as indexes. In this way, the main control module cyclically and sequentially calls each control module according to the determined traversal time parameter, and traverses each operation node in the node flow corresponding to the target control module aiming at the target control module called each time, so that the operation of each data flow can be ensured to meet the corresponding execution time requirement.
Optionally, the traversal time parameter includes an execution duration and an execution period of the node flow, and the method further includes:
and trial running the plurality of node flows and the plurality of data flows according to the execution duration and the execution period, and acquiring the waiting times of the operation nodes in each data flow in the trial running process.
In this way, by setting the operation index of the waiting times for each operation node, the main control module can determine the operation quality coefficient of the integrated control chip through the operation index, and further judge whether the resource allocation priority of the current data stream meets the expectation according to the operation quality coefficient, thereby being beneficial to screening the resource allocation priority of the data stream.
Optionally, the determining, according to the execution duration limitation information of each data stream, a traversal time parameter of each node stream includes:
when an event for triggering a vehicle function is detected, if a data stream corresponding to the function is in an inactivated state, the data stream is changed into an activated state, and the data stream in the activated state is used as a data stream of resources to be allocated to execute a step of determining a traversal time parameter of each node stream according to execution duration limiting information of the data stream of each resource to be allocated;
the traversing process of the target control module by the method specifically comprises the following steps:
for each traversed operation node, judging whether the operation node is in an activated data stream or not, and if the operation node is in the activated data stream and a previous operation node of the operation node in the activated data stream is in a finished state, executing an operation corresponding to the operation node; and traversing a next operation node of the operation node in the node flow corresponding to the target control module if the operation node is not in the activated data flow or the operation node is in the data flow and a previous operation node of the operation node in the activated data flow is in an unfinished state.
That is to say, after the data stream corresponding to the functional event is activated for a new functional event generated during the vehicle operation process, the traversal time parameter of each node stream may be determined according to the newly activated data stream and the execution duration limitation information of each remaining data stream of resources to be allocated, so as to ensure that the operation of each data stream meets the corresponding execution duration requirement.
Optionally, the method further comprises:
and after the activated data flow is allocated with resources, executing the operation corresponding to the head node of the data flow.
That is to say, after a certain data stream is activated (for example, after a vehicle-mounted component corresponding to a node stream where any operation node of the data stream is located is started), the data stream may be added to a thread in which the integrated control chip operates, an operation corresponding to a head node in the data stream is executed, the head node is marked as a completed state, and then traversal of each operation node in the data stream is activated, so as to complete a corresponding vehicle event. After the activation state of the data stream is cancelled (for example, after the vehicle-mounted component corresponding to the data stream is closed), the data stream may be removed from the thread.
In another aspect of the embodiments of the present disclosure, a computer-readable storage medium is further provided, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a main control module in an integrated control chip, the steps of the control method of any integrated control chip provided in the foregoing method embodiments are implemented.
On the other hand, the embodiment of the present disclosure further provides a vehicle, where the vehicle includes the above integrated control chip, and the integrated control chip may specifically refer to the description of the integrated control chip described in fig. 1 above, and is not described herein again.
When a certain event needs to be realized by using a vehicle-mounted component, a data stream capable of realizing the event is formed by configuring operation nodes on a node stream corresponding to a control module in an integrated control chip, and when each control module is called in sequence and circularly according to the traversal time parameter of each node stream, the operation nodes in the data stream traverse along with each operation node in the called control module, so as to judge whether to execute the operation nodes in the data stream, and when the operation nodes in the data stream are determined to be executed, the corresponding event is realized. Because the cyclic calling of the control module and the traversal of the operation nodes in the control module are sequentially carried out, corresponding events can be realized by configuring operation points in the data stream, a controller is not required to be independently configured for each vehicle-mounted component on the vehicle, and the development cost of the vehicle is reduced. And the traversal time parameter of each node flow is determined according to the execution time limit information of each data flow, so that the setting of the traversal time parameter of each node flow can meet the execution time limit requirements of all data flows, and the normal response of the vehicle event is ensured.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.
Claims (25)
1. An integrated control chip is characterized in that a plurality of control modules corresponding to a plurality of vehicle-mounted components one to one and a main control module are integrated in the integrated control chip, wherein the control modules are used for being called by the main control module to realize a plurality of operations associated with the corresponding vehicle-mounted components;
a plurality of node flows which are in one-to-one correspondence with the plurality of control modules are formed in the integrated control chip, each node flow is formed by connecting operations executed by the corresponding control module in series, and each operation is respectively used as an operation node in the node flows;
the integrated control chip is also provided with a plurality of data streams corresponding to a plurality of events one by one, each data stream is formed by connecting a plurality of operation nodes in series, and each data stream comprises operation nodes in different node streams;
the main control module is used for determining the traversal time parameter of each node flow according to the execution duration limit information of each data flow;
the main control module is further used for sequentially calling each control module according to the traversal time parameter cycle of each node flow, and traversing each operation node in the node flow corresponding to the target control module for each called target control module;
for each traversed operation node, judging whether the operation node is in a data stream, if the operation node is in the data stream and a previous operation node of the operation node in the data stream is in a finished state, executing an operation corresponding to the operation node; and if the operation node is not in the data stream, or the operation node is in the data stream and the previous operation node of the operation node in the data stream is in an unfinished state, traversing the next operation node of the operation node in the node stream corresponding to the target control module.
2. The integrated control chip of claim 1, wherein the master control module is further configured to:
determining resource allocation priorities of a plurality of data streams according to a particle swarm algorithm, and sequentially determining target data streams according to the resource allocation priorities;
and aiming at each target data stream, adjusting the traversal time parameter of the node stream of each operation node in the target data stream according to the remaining resources of the main control module and the execution duration limit information corresponding to the target data stream.
3. The integrated control chip of claim 2, wherein the master control module is configured to:
generating a plurality of groups of priority allocation information, wherein the priority allocation information is used for setting the resource allocation priority of each data flow;
determining a running good coefficient of the integrated control chip according to the waiting times of the operation node in each data stream under the resource allocation priority indicated by each group of priority allocation information, wherein the waiting times refer to the times that the node stream to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data stream is marked as a finished state;
and if the operation good coefficient in the preset range exists, setting resource distribution priority for the plurality of data streams according to the priority distribution information corresponding to the operation good coefficient.
4. The integrated control chip of claim 3, wherein the master control module is configured to:
if the operation good coefficients in the preset range do not exist, updating the multiple groups of priority distribution information according to the particle swarm algorithm, and returning to execute the step of determining the operation good coefficients of the integrated control chip according to the waiting times of the operation nodes in each data stream under the resource distribution priority represented by each group of priority distribution information according to the updated multiple groups of priority distribution information until the operation good coefficients in the preset range exist.
5. The integrated control chip according to claim 4, wherein the velocity update formula of the single data stream particle in the particle swarm optimization is expressed as:
one data stream particle represents a group of priority distribution information, d is a dimension label of the data stream particle, and d is 1,2,3 … n; omega is an inertia factor; c. C1,c2Is an acceleration constant; r is1,r2A random number from 0 to 1; p is a radical ofiIs the optimal solution on all the routes traversed by the ith data stream particle, an pgFor the optimal solution on the path traversed by all data stream particles, andViis the flight velocity of the ith data stream particle, and
and, the position update formula of the single data stream particle is expressed as:
alpha is a constraint factor.
6. The integrated control chip according to any one of claims 3 to 5, wherein the main control module is further configured to:
and for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, wherein the operation good coefficient comprises each control good coefficient.
7. The integrated control chip according to any one of claims 3 to 5, wherein the main control module is configured to:
for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow;
taking an average value of each of the control goodness coefficients as a system goodness coefficient, the run goodness coefficient comprising the system goodness coefficient.
8. The integrated control chip according to any one of claims 3 to 5, wherein the operation goodness coefficient includes a system goodness coefficient and a control goodness coefficient corresponding to each of the control modules, and the main control module is specifically configured to:
judging whether each control good coefficient is in a first reasonable coefficient range or not and whether the system good coefficient is in a second reasonable coefficient range or not;
setting resource distribution priority for a plurality of data streams according to priority distribution information which enables each control good coefficient to be in the first reasonable coefficient range and enables the system good coefficient to be in the second reasonable coefficient range;
and taking the ratio of the sum of the waiting times of each operation node in each node flow to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, and taking the average value of each control good coefficient as a system good coefficient.
9. The integrated control chip according to any one of claims 3 to 5, wherein the traversal time parameter includes an execution duration and an execution period of the node flow, and the main control module is configured to:
and trial running the plurality of node streams and the plurality of data streams according to the execution duration and the execution period, acquiring the waiting times of the operation nodes in each data stream in the trial running process, and determining the operation excellent coefficient of the integrated control chip according to the waiting times of the operation nodes in each data stream.
10. The integrated control chip according to any one of claims 1 to 5, wherein the main control module is further configured to:
when an event for triggering a vehicle function is detected, if a data stream corresponding to the function is in an inactivated state, the data stream is changed into an activated state, and the data stream in the activated state is used as a data stream of resources to be allocated to execute a step of determining a traversal time parameter of each node stream according to execution duration limiting information of the data stream of each resource to be allocated;
the main control module is specifically configured to: for each traversed operation node, judging whether the operation node is in an activated data stream or not, and if the operation node is in the activated data stream and a previous operation node of the operation node in the activated data stream is in a finished state, executing an operation corresponding to the operation node; and traversing a next operation node of the operation node in the node flow corresponding to the target control module if the operation node is not in the activated data flow or the operation node is in the data flow and a previous operation node of the operation node in the activated data flow is in an unfinished state.
11. The integrated control chip of claim 10, wherein the master control module is configured to:
and after the activated data flow is allocated with resources, executing the operation corresponding to the head node of the data flow.
12. The integrated control chip according to any one of claims 1 to 5, further comprising a storage module for storing a computer program, wherein the main control module implements the operation of the main control module in the integrated control chip by executing the computer program in the storage module.
13. A control method of an integrated control chip is characterized by comprising the following steps:
according to the determined traversal time parameter of each node flow, circularly and sequentially calling each control module in the integrated control chip, and traversing each operation node in the node flow corresponding to the target control module aiming at the called target control module each time, wherein the node flow corresponding to each control module is formed by serially connecting operations executed by the control module, and each operation is respectively used as one operation node in the node flow;
for each traversed operation node, judging whether the operation node is in a data stream, wherein one data stream in the integrated control chip corresponds to an event, each data stream is formed by connecting a plurality of operation nodes in series, and each data stream comprises operation nodes in different node streams;
if the operation node is in a data stream and a previous operation node of the operation node in the data stream is in a finished state, executing an operation corresponding to the operation node;
if the operation node is not in the data stream, or the operation node is in the data stream and the previous operation node of the operation node in the data stream is in an unfinished state, traversing the next operation node of the operation node in the node stream corresponding to the target control module;
wherein the traversal time parameter of each node flow is determined by: and determining the traversal time parameter of each node flow according to the execution time limit information of each data flow.
14. The method of claim 13, wherein determining the traversal time parameter for each of the node flows according to the execution duration constraint information for each of the data flows comprises:
determining resource allocation priorities of a plurality of data streams according to a particle swarm algorithm, and sequentially determining target data streams according to the resource allocation priorities;
and aiming at each target data stream, adjusting the traversal time parameter of the node stream of each operation node in the target data stream according to the remaining resources of the integrated control chip and the execution duration limit information corresponding to the target data stream.
15. The method of claim 14, further comprising:
generating a plurality of groups of priority allocation information, wherein the priority allocation information is used for setting the resource allocation priority of each data flow;
determining a running good coefficient of the integrated control chip according to the waiting times of the operation node in each data stream under the resource allocation priority indicated by each group of priority allocation information, wherein the waiting times refer to the times that the node stream to which the operation node belongs is traversed before the operation corresponding to the operation node is executed after the first node in the data stream is marked as a finished state;
and if the operation good coefficient in the preset range exists, setting resource distribution priority for the plurality of data streams according to the priority distribution information corresponding to the operation good coefficient.
16. The method of claim 15, wherein the determining resource allocation priorities for the plurality of data streams according to a particle swarm algorithm comprises:
if the operation good coefficients in the preset range do not exist, updating the multiple groups of priority distribution information according to the particle swarm algorithm, and returning to execute the step of determining the operation good coefficients of the integrated control chip according to the waiting times of the operation nodes in each data stream under the resource distribution priority represented by each group of priority distribution information according to the updated multiple groups of priority distribution information until the operation good coefficients in the preset range exist.
17. The method of claim 16, wherein the velocity update formula of the single data stream particle in the particle swarm optimization is expressed as:
one data stream particle represents a group of priority distribution information, d is a dimension label of the data stream particle, and d is 1,2,3 … n; omega is an inertia factor; c. C1,c2Is an acceleration constant; r is1,r2A random number from 0 to 1; p is a radical ofiIs the optimal solution on all the routes traversed by the ith data stream particle, an pgFor the most distance traveled by all data stream particlesExcel in and solve the problems ofViIs the flight velocity of the ith data stream particle, and
and, the position update formula of the single data stream particle is expressed as:
alpha is a constraint factor.
18. The method according to any one of claims 15 to 17, wherein the determining a running goodness coefficient of the integrated control chip according to the waiting times of the operation nodes in each data stream comprises:
and for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow, wherein the operation good coefficient comprises each control good coefficient.
19. The method according to any one of claims 15 to 17, wherein the determining a running goodness coefficient of the integrated control chip according to the waiting times of the operation nodes in each data stream comprises:
for each operation node in each node flow, taking the ratio of the sum of the waiting times of each operation node to the sum of a preset time threshold of each operation node as a control good coefficient of a control module corresponding to the node flow;
taking an average value of each of the control goodness coefficients as a system goodness coefficient, the run goodness coefficient comprising the system goodness coefficient.
20. The method according to any one of claims 15 to 17, wherein the operation goodness coefficient includes a system goodness coefficient and a control goodness coefficient corresponding to each control module, and if there is an operation goodness coefficient within a preset range, setting resource allocation priorities for a plurality of data streams according to priority allocation information corresponding to the operation goodness coefficient comprises:
judging whether each control good coefficient is in a first reasonable coefficient range or not and whether the system good coefficient is in a second reasonable coefficient range or not;
setting resource distribution priority for a plurality of data streams according to priority distribution information which enables each control good coefficient to be in the first reasonable coefficient range and enables the system good coefficient to be in the second reasonable coefficient range;
wherein the control goodness coefficient is a ratio of a sum of the wait times of each operation node in each node flow to a sum of a preset time threshold of each operation node, and the system goodness coefficient is an average value of each control goodness coefficient.
21. The method of any of claims 15 to 17, wherein the traversal time parameters include an execution duration and an execution period of the node flow, the method further comprising:
and trial running the plurality of node flows and the plurality of data flows according to the execution duration and the execution period, and acquiring the waiting times of the operation nodes in each data flow in the trial running process.
22. The method according to any one of claims 13 to 17, wherein determining the traversal time parameter of each node flow according to the execution duration limitation information of each data flow comprises:
when an event for triggering a vehicle function is detected, if a data stream corresponding to the function is in an inactivated state, the data stream is changed into an activated state, and the data stream in the activated state is used as a data stream of resources to be allocated to execute a step of determining a traversal time parameter of each node stream according to execution duration limiting information of the data stream of each resource to be allocated;
the traversing process of the target control module by the method specifically comprises the following steps:
for each traversed operation node, judging whether the operation node is in an activated data stream or not, and if the operation node is in the activated data stream and a previous operation node of the operation node in the activated data stream is in a finished state, executing an operation corresponding to the operation node; and traversing a next operation node of the operation node in the node flow corresponding to the target control module if the operation node is not in the activated data flow or the operation node is in the data flow and a previous operation node of the operation node in the activated data flow is in an unfinished state.
23. The method of claim 22, further comprising:
and after the activated data flow is allocated with resources, executing the operation corresponding to the head node of the data flow.
24. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a main control module in an integrated control chip, carries out the method steps of any one of claims 13 to 17.
25. A vehicle, characterized in that it comprises an integrated control chip according to any one of claims 1 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910581920.XA CN112224215B (en) | 2019-06-30 | 2019-06-30 | Integrated control chip, control method thereof, storage medium, and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910581920.XA CN112224215B (en) | 2019-06-30 | 2019-06-30 | Integrated control chip, control method thereof, storage medium, and vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112224215A CN112224215A (en) | 2021-01-15 |
CN112224215B true CN112224215B (en) | 2021-09-03 |
Family
ID=74111057
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910581920.XA Active CN112224215B (en) | 2019-06-30 | 2019-06-30 | Integrated control chip, control method thereof, storage medium, and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112224215B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119302A (en) * | 2007-09-06 | 2008-02-06 | 华中科技大学 | Method for digging frequency mode in the lately time window of affair data flow |
WO2008080317A1 (en) * | 2006-12-29 | 2008-07-10 | Huawei Technologies Co., Ltd. | A method and apparatus of calculating whole network unreserved bandwidth in rpr |
CN101606426A (en) * | 2007-02-05 | 2009-12-16 | 高通股份有限公司 | Flexible DTX in the wireless communication system and DRX |
CN101635654A (en) * | 2008-07-23 | 2010-01-27 | 华为技术有限公司 | Method, device and system for measuring network traffic |
CN107145320A (en) * | 2017-04-26 | 2017-09-08 | 北京汽车集团有限公司 | Display control method, system and vehicle |
CN108616565A (en) * | 2018-03-13 | 2018-10-02 | 北京邮电大学 | A kind of vehicle data communication means and system |
-
2019
- 2019-06-30 CN CN201910581920.XA patent/CN112224215B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2008080317A1 (en) * | 2006-12-29 | 2008-07-10 | Huawei Technologies Co., Ltd. | A method and apparatus of calculating whole network unreserved bandwidth in rpr |
CN101606426A (en) * | 2007-02-05 | 2009-12-16 | 高通股份有限公司 | Flexible DTX in the wireless communication system and DRX |
CN101119302A (en) * | 2007-09-06 | 2008-02-06 | 华中科技大学 | Method for digging frequency mode in the lately time window of affair data flow |
CN101635654A (en) * | 2008-07-23 | 2010-01-27 | 华为技术有限公司 | Method, device and system for measuring network traffic |
CN107145320A (en) * | 2017-04-26 | 2017-09-08 | 北京汽车集团有限公司 | Display control method, system and vehicle |
CN108616565A (en) * | 2018-03-13 | 2018-10-02 | 北京邮电大学 | A kind of vehicle data communication means and system |
Also Published As
Publication number | Publication date |
---|---|
CN112224215A (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE112018001596T5 (en) | ELECTRONIC VEHICLE CONTROL | |
US9694765B2 (en) | Control system for an automotive vehicle | |
TWI796017B (en) | Automated guided vehicle scheduling method, electronic device and computer-readable storage medium | |
CN111314420A (en) | Flexible vehicle-mounted network system and vehicle for intelligent driving | |
CN106197442A (en) | Air navigation aid and equipment | |
WO2022179531A1 (en) | Self-driving control, and unmanned device | |
DE112019005243T5 (en) | VEHICLE CONTROL DEVICE AND VEHICLE CONTROL PROCEDURE | |
KR20220088791A (en) | A method of providing a driving manipulation message for coordinating driving manipulations between a road user and at least one other road user in a communication network | |
CN111190610B (en) | Vehicle-mounted system | |
CN112224215B (en) | Integrated control chip, control method thereof, storage medium, and vehicle | |
CN111897304A (en) | Method, apparatus and system for real-time diagnostics and fault monitoring in a machine system | |
US6313757B1 (en) | Method and apparatus for controlling motor vehicle traffic | |
CN112230571B (en) | Integrated control chip, control method thereof, storage medium, and vehicle | |
CN114726726B (en) | Method for improving CAN bus communication efficiency | |
CN112224216B (en) | Integrated control chip, control method thereof, storage medium, and vehicle | |
CN114077253B (en) | Scheduling system integrating multiple AGVs of different types and application method thereof | |
CN111402571A (en) | Service fleet conflict abnormity early warning and adjustment scheme generation method and device | |
CN112258860B (en) | Crossing vehicle scheduling method, device, equipment and computer readable storage medium | |
CN114312824B (en) | Behavior planning in autonomous vehicles | |
US9495182B2 (en) | Apparatus of reconfigurable software mode management using runtime execution engine | |
US8046457B2 (en) | Apparatus, methods, and computer program products for managing network elements and associated network element resources by multiple management systems | |
KR20210152394A (en) | Vehicle, method, computer program and apparatus for merging object information about one or more objects in the surroundings of a vehicle | |
Salvato et al. | Control of a mixed autonomy signalised urban intersection: An action-delayed reinforcement learning approach | |
CN117034840B (en) | Control signal generation method and circuit | |
Zeller et al. | A multi-layered control architecture for self-management in adaptive automotive systems |
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 |