CN116627104A - Method, device, equipment and medium for calculating bus load in ECU (electronic control unit) observation process - Google Patents
Method, device, equipment and medium for calculating bus load in ECU (electronic control unit) observation process Download PDFInfo
- Publication number
- CN116627104A CN116627104A CN202310360695.3A CN202310360695A CN116627104A CN 116627104 A CN116627104 A CN 116627104A CN 202310360695 A CN202310360695 A CN 202310360695A CN 116627104 A CN116627104 A CN 116627104A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- calibration
- determining
- data
- bus
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000008569 process Effects 0.000 title claims abstract description 25
- 230000005540 biological transmission Effects 0.000 claims abstract description 74
- 238000004364 calculation method Methods 0.000 claims abstract description 26
- 230000006870 function Effects 0.000 claims description 35
- 238000004590 computer program Methods 0.000 claims description 18
- 238000005070 sampling Methods 0.000 claims description 17
- 238000004458 analytical method Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 15
- 238000012216 screening Methods 0.000 claims description 8
- 238000007405 data analysis Methods 0.000 claims description 7
- 238000012546 transfer Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 18
- 230000018109 developmental process Effects 0.000 description 17
- 238000004891 communication Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
The invention discloses a method, a device, equipment and a medium for calculating bus load in an ECU (electronic control unit) observation process. The method is characterized by comprising the following steps: importing a vehicle calibration file for calibrating a vehicle to be observed; determining the data quantity to be transmitted of the calibrated vehicle according to the vehicle calibration file; determining the data transmission rate of the calibration vehicle according to the vehicle bus type of the calibration vehicle; and determining the bus load of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted. The vehicle bus load automatic calculation method has the advantages that the vehicle bus load automatic calculation is realized, when the vehicle bus load is determined, the vehicle development model can be adjusted according to the bus load, the work load of vehicle developers is reduced, and the efficiency of whole vehicle calibration is improved.
Description
Technical Field
The invention relates to the field of vehicle development engineering, in particular to a method, a device, equipment and a medium for calculating bus load in an ECU (electronic control unit) observation process.
Background
The intelligent running of the automobile is an important direction of the current development of the automobile, the intelligent operation of the automobile depends on an electronic control system of the automobile, and the system development of the electronic control system of the automobile influences the intelligent level of the automobile. Therefore, the development efficiency and stability of the vehicle electronic control system are very important, when the vehicle electronic control system is developed, a bottom layer developer can generate codes through a configuration tool, then the upper machine tool is calibrated to carry out upper machine engineering establishment and configuration, and release the codes to an application professional engineer, after the application professional obtains the released base code engineering, a logic model of an application function can be realized, and observed quantity is mounted in a corresponding SWC (Software Component) -period task, so that observation of model states or parameters is realized. The application professional engineer will generate an A2L (ASAP 2 ECU Description File) file using the matlab tool, the application developer will combine the A2L released by the bottom developer with the A2L generated by the application developer using the calibration upper computer tool to form a complete A2L file, and the low-level professional developer will perform observed periodic task configuration in the calibration upper computer engineering. However, in calibrating the upper machine tool, the load rate of the CAN (Controller Area Network ) is strictly limited during observation, and when the load rate of the CAN is too high, the situation of prohibiting the observation or the situation of losing the frame of the CAN message CAN occur. In the prior art, for the problem of too high CAN load rate, a professional engineer needs to be applied to reform an observation strategy, corresponding adjustment is carried out in a model, and reform the observation classification is too redundant and complicated, so that the development progress of a vehicle electronic control system is influenced, and the development efficiency of the vehicle electronic control system is quite low.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for calculating bus load in an ECU (electronic control unit) observation process, so as to improve the development efficiency of a vehicle electronic control system.
According to one aspect of the present invention, there is provided a method for calculating a bus load in an ECU observation process, including:
importing a vehicle calibration file for calibrating a vehicle to be observed;
determining the data quantity to be transmitted of the calibrated vehicle according to the vehicle calibration file;
determining the data transmission rate of the calibration vehicle according to the vehicle bus type of the calibration vehicle;
and determining the bus load of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted.
According to another aspect of the present invention, there is provided a calculation device of bus load in an ECU observation process, including:
the data acquisition module is used for importing a vehicle calibration file for calibrating a vehicle to be observed;
the data analysis module is used for determining the data quantity to be transmitted of the calibration vehicle according to the vehicle calibration file;
the vehicle analysis module is used for determining the data transmission rate of the calibration vehicle according to the type of the vehicle bus of the calibration vehicle;
and the load calculation module is used for determining the bus load of the calibration vehicle according to the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method for calculating bus load during ECU observation according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a method for calculating a bus load during an ECU observation according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the vehicle calibration file for calibrating the vehicle to be observed is imported; determining the data quantity to be transmitted of the calibration vehicle according to the vehicle calibration file, calculating the data quantity to be transmitted of the observed quantity through the calibration file, calculating the data quantity to be transmitted before observation, adjusting the observation strategy, preventing the situation of overhigh load and improving the observation efficiency; the data transmission rate of the calibration vehicle is determined according to the type of the vehicle bus of the calibration vehicle, and the data transmission rate of the channel is determined, so that the bus transmission load can be effectively controlled during observation, and the situation of higher load during observation is prevented; according to the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle, the bus load of the calibration vehicle is determined, the load of the bus during observation is calculated in advance before observation, whether the bus meets the observation requirement is determined, a model can be directly adjusted and optimized according to the bus load, the problem that the load is checked only when the load is too high is prevented, the calculation problem that the development efficiency of the vehicle electronic control system is low in the prior art is solved, the workload of developers is reduced, the flow of developing the vehicle electronic control system is simplified, and the development efficiency of the vehicle electronic control system is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for calculating a bus load in an ECU observation process according to the first embodiment of the present invention;
fig. 2 is a flowchart of another method for calculating bus load in the ECU observation process according to the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computing device for bus load in an ECU observation process according to a fourth embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a method for calculating a bus load during an ECU observation process according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
Example 1
Fig. 1 is a flowchart of a method for calculating a bus load in an ECU observation process according to an embodiment of the present invention, where the method may be performed by a device for calculating a bus load in an ECU observation process, and the device for calculating a bus load in an ECU observation process may be implemented in hardware and/or software, and the device for calculating a bus load in an ECU observation process may be configured in an electronic device. As shown in fig. 1, the method includes:
s110, importing a vehicle calibration file for calibrating the vehicle to be observed;
the calibration vehicle can be a vehicle developed in vehicle development engineering; the calibration vehicle may be a vehicle that can actually run, or may be a test vehicle that is located in a rack, which is not limited by the embodiment of the present invention.
The vehicle calibration file can be an A2l file, and is used for defining information communicated with the ECU by the upper computer in the vehicle calibration process.
Optionally, the vehicle calibration file is an A2L file, and the A2L file includes: device parameter information, interface data information, and ECU parameter information. Wherein the parameter information describes basic information of the ECU and some common properties of the ECU data units, the interface data information describes interface information of the configuration required for the calibration system to communicate with the ECU, and the ECU parameter information describes the details of the internal data units. Illustratively, the A2L file is made up of four parts, respectively: A2L file header, calibration variable description, observation variable description, and other auxiliary information (e.g., conversion formulas).
Specifically, in the vehicle calibration engineering, a bottom layer developer generates an A2L file, the A2L file is sent to an application developer, and the application developer can combine the A2L file released by the bottom layer developer with the A2L file generated by the application developer by using a calibration upper machine tool to form a complete vehicle calibration file. The application developer imports a vehicle calibration file to be observed.
S120, determining the data quantity to be transmitted of the calibration vehicle according to the vehicle calibration file.
The data size to be transmitted can be the size of data bytes occupied by all observables in the vehicle calibration file. In the vehicle calibration file, there is a description of the observed quantity defined by the vehicle calibration tool. And storing signals, states and parameters of vehicle calibration in the observed quantity, acquiring all the observed quantity in the vehicle calibration file, and determining the data bytes occupied by the observed quantity as the data quantity to be transmitted.
Specifically, after the vehicle calibration file is imported, the vehicle calibration file is analyzed, the observed quantity in the vehicle calibration file is determined, and the data quantity to be transmitted occupied by all the observed quantities is calculated.
S130, determining the data transmission rate of the calibration vehicle according to the type of the vehicle bus of the calibration vehicle.
The vehicle bus type may be in different ways. By way of example, the vehicle bus types may be CAN channels and CANFD (CAN with Flexible Data rate) channels, the maximum transmission rates of the different channels being different, the transmission rate of the CAN channels being 1Mbps, the transmission rate of the CANFD channels being 8Mbps, the transmission rate of the CANFD channels being 64 bytes.
The vehicle data transfer rate may be, among other things, the number of data bytes that the vehicle bus is capable of transmitting per second.
Specifically, a vehicle bus arranged in vehicle calibration is obtained, the type of the vehicle bus of the calibration vehicle is determined, and the data transmission rate of the vehicle bus in the calibration vehicle is determined according to the type of the vehicle bus of the calibration vehicle.
Optionally, in another optional embodiment of the present invention, the determining the data transmission rate of the calibration vehicle according to the vehicle bus type of the calibration vehicle includes:
determining the baud rate and the sampling rate of the vehicle bus according to the type of the vehicle bus of the calibration vehicle;
and determining the data transmission rate of the calibration vehicle according to the baud rate and the sampling rate.
Where the baud rate may be the number of bits transmitted per second by the vehicle bus, and the sampling rate may refer to the number of times each bit is sampled. The baud rate and sample rate of the vehicle bus may be used to represent the rate and accuracy of the data transmitted by the bus.
Optionally, the transmission performance of the vehicle bus is affected by the baud rate and the sampling rate of the CAN channel, the baud rate and the sampling rate of the vehicle bus are determined by the configuration of the bottom layer of the vehicle channel, the type of the low-layer CAN channel and the corresponding baud rate and sampling rate are determined, and then the report Wen Zhenshu which CAN be sent by the vehicle bus is calculated, and then the data transmission rate of the vehicle bus is determined.
Optionally, in another optional embodiment of the present invention, the determining the data transmission rate of the calibration vehicle according to the baud rate and the sampling rate includes:
determining the message transmission rate of the vehicle bus according to the baud rate and the sampling rate;
and acquiring the message zone bit of the vehicle bus type, and determining the data transmission rate of the calibration vehicle according to the message zone bit and the message transmission rate.
The message transmission rate may be a number of message frames sent by the vehicle bus per second.
The message flag bit may be a field for identifying a data length in a vehicle bus of the calibration vehicle. The message flag bit may be used to indicate the length of the data segment. The message flag bit may be a DLC (DataLength Code) flag bit, and in different CAN buses, the DLC flag bit is different, in a CAN channel, the DLC flag bit is 4 bits, the value range is 0-15, and in a CANPD channel, the DLC is a mapping table, and the maximum is 64 bits.
Specifically, calculating the number of message frames which CAN be sent by the vehicle bus every second through the baud rate and the sampling rate of the CAN channel, and determining the message transmission rate of the vehicle bus; according to the message flag bit corresponding to the vehicle bus type, the number of data bytes contained in the message corresponding to each vehicle bus type can be determined, and then the data transmission rate of the vehicle bus is determined through the message transmission rate of the vehicle bus and the data byte data.
And S140, determining the bus load of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted.
Wherein the bus load may be a utilization of the vehicle bus transmissions; the bus load may be used to determine the transmission pressure of the vehicle bus.
Optionally, the data quantity to be transmitted of the calibration vehicle is obtained, calculation is performed according to the data transmission efficiency of the calibration vehicle, the percentage of the data quantity to be transmitted and the data transmission efficiency is obtained, and then the bus load of the calibration vehicle is determined.
Specifically, the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle are obtained, and calculation is performed according to the data transmission efficiency and the data to be transmitted, so that the bus load of the vehicle bus is obtained.
According to the technical scheme, the vehicle calibration file for calibrating the vehicle to be observed is imported; determining the data quantity to be transmitted of the calibration vehicle according to the vehicle calibration file, calculating the data quantity to be transmitted of the observed quantity through the calibration file, calculating the data quantity to be transmitted before observation, adjusting the observation strategy, preventing the situation of overhigh load and improving the observation efficiency; the data transmission rate of the calibration vehicle is determined according to the type of the vehicle bus of the calibration vehicle, and the data transmission rate of the channel is determined, so that the bus transmission load can be effectively controlled during observation, and the situation of higher load during observation is prevented; according to the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle, the bus load of the calibration vehicle is determined, the load of the bus during observation is calculated in advance before observation, whether the bus meets the observation requirement is determined, a model can be directly adjusted and optimized according to the bus load, the problem that the load is checked only when the load is too high is prevented, the calculation problem that the development efficiency of the vehicle electronic control system is low in the prior art is solved, the workload of developers is reduced, the flow of developing the vehicle electronic control system is simplified, and the development efficiency of the vehicle electronic control system is improved.
Example two
Fig. 2 is a flowchart of another method for calculating a bus load in an ECU observation process according to the second embodiment of the present invention, where the relationship between the present embodiment and the above embodiment is a specific method for determining the amount of data to be transmitted by a calibration vehicle. As shown in fig. 2, the method for calculating the bus load in the ECU observation process includes:
s210, importing a vehicle calibration file for calibrating the vehicle to be observed.
S220, screening and matching each observed quantity according to a preset channel collection function, and determining an observation channel corresponding to each observed quantity; and determining the data quantity to be transmitted of the calibration vehicle according to the observed quantity in each observation channel.
The channel collection function may be a function of an observation channel set in advance for screening the observed quantity. The number of the channel collection functions is at least one, and the channel collection function corresponding to each observation period is determined for each observation period corresponding to the observed quantity.
The observation channel may be an observation period set in advance for each observation amount.
Specifically, a plurality of channel collection functions for screening observables are established in advance, calibration files are traversed, screening and matching are carried out on each observables through the plurality of channel collection functions, the observation channel corresponding to each observables is determined, the observables are screened into the observation channel corresponding to each channel collection function, and the data quantity to be transmitted of the calibration vehicle is determined according to the observables in each observation channel.
Optionally, in another optional embodiment of the present invention, the determining, according to the observed quantity in each of the observation channels, an amount of data to be transmitted of the calibration vehicle includes:
and calculating the data quantity to be transmitted of the calibration vehicle according to the data type corresponding to each observed quantity in all the observed channels through a preset observed quantity calculation function.
The observed quantity calculation function may be a function preset to calculate the byte size of observed quantity data.
Wherein the data type may be a base data type of observables. By way of example, the observed data types may include at least one of integer, floating point, boolean, enumerated values. Optionally, the data types of different observables have different storage formats and value ranges.
Specifically, an observed quantity calculation function for calculating the size of observed quantity data bytes is established in advance, the data type corresponding to each observed quantity is determined, the size of the data bytes occupied by the observed quantity in all the observed channels is calculated according to the data type of the observed quantity through the observed quantity calculation function, and the size of the data bytes occupied by all the observed quantity is determined as the data quantity to be transmitted.
Optionally, in another optional embodiment of the present invention, before determining the data amount to be transmitted of the calibration vehicle according to the vehicle calibration file, the method further includes:
and analyzing and matching the vehicle calibration file according to a preset analysis processing function, and determining a plurality of observables of the calibration vehicle and the data type of each observables.
The analysis processing function may be a function preset to analyze a calibration file of the vehicle. The vehicle calibration file comprises various information such as bus information, calibration quantity, observance quantity, address information and the like of vehicle calibration, and after the vehicle calibration file is acquired, the vehicle calibration file can be analyzed through an analysis processing function to determine the observance quantity in the calibration file.
Specifically, an analysis processing function for analysis matching is established in advance, the analysis processing function is used for analyzing and matching the vehicle calibration file, data contained in the vehicle calibration file are analyzed, and each observed quantity in the vehicle calibration file and a data type corresponding to the observed quantity are determined.
S230, determining the data transmission rate of the calibration vehicle according to the type of the vehicle bus of the calibration vehicle.
S240, determining the bus load rate of the calibration vehicle according to the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle; and determining the bus load of the calibration vehicle according to the bus load rate.
The bus load rate may be a load percentage of the vehicle bus transmission data; the bus load factor may be a load condition for determining a vehicle bus.
Specifically, the data transmission efficiency of the calibration vehicle is calculated according to the data transmission efficiency of the vehicle bus to be transmitted, the percentage of the data transmission efficiency and the data transmission quantity to be transmitted is obtained, the bus load rate of the calibration vehicle is obtained, and the bus load of the calibration vehicle is determined according to the bus load rate.
According to the technical scheme, the vehicle calibration file for calibrating the vehicle to be observed is imported; screening and matching each observed quantity according to a preset channel collection function, and determining an observed channel corresponding to each observed quantity; according to the observed quantity in each observation channel, determining the data quantity to be transmitted of the calibration vehicle, determining the observed quantity in a vehicle calibration file, determining the corresponding observation period of each observed quantity through a channel collection function, and determining the corresponding observation period for different observed quantities, thereby being beneficial to improving the calculation efficiency of calculating the data to be transmitted and simplifying the flow of vehicle calibration; determining the data transmission rate of the calibration vehicle according to the vehicle bus type of the calibration vehicle; determining the bus load rate of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted; the bus load of the calibration vehicle is determined according to the bus load rate, the bus load rate of the bus during observation is calculated in advance before observation is performed, the load condition of the bus is determined, and the model can be directly adjusted and optimized according to the bus load, so that the problem of load checking is prevented when the load is too high, the calculation problem of low development efficiency of the vehicle electronic control system in the prior art is solved, the workload of a developer is reduced, the flow of developing the vehicle electronic control system is simplified, and the development efficiency of the vehicle electronic control system is improved.
Optionally, the embodiment of the invention discloses another method for calculating bus load in the process of observing by an ECU, wherein the method comprises the following steps:
s1, importing python to a three-party library for processing the A2L file, establishing an analysis processing function for receiving the A2L file, and realizing regular expressions for matching observed quantity, observed quantity basic data types and observed periodic channels.
S2, establishing a XCP (Universal Calibration Protocol) module all daq event (Data acquisition) channel collection function, and screening observed quantity into the daq event channel collection function of a corresponding observation period when traversing the A2L file.
S3, establishing an observed quantity calculation function for calculating the total observed quantity, and calculating the data quantity to be transmitted of all the observed quantities according to the observed quantity of all the observed channels and the data base types corresponding to the observed quantity.
S4, establishing a current configuration data byte function of the CAN channel. Firstly, determining channel types of a low-layer CAN bus, determining the configured baud rate and sampling rate corresponding to each channel type to determine how many frames of messages CAN be sent within 1 second, and determining how many data bytes CAN be contained in one frame of messages according to DLC (digital control loop) flag bits of the CAN channel and the CANFD channel, thereby calculating the data transmission rate of the CAN bus.
S5, calculating the percentage of the data quantity to be transmitted obtained in the S3 and the data transmission rate of the current CAN bus obtained in the S4 to obtain the bus load of the current observed CAN bus.
S6, an application professional worker reformulates an observation strategy according to the bus load of the CAN bus, and optimizes and adjusts a model corresponding to the observation strategy.
According to the technical scheme provided by the embodiment of the invention, the bus load rate of the bus during observation can be calculated in advance before the observation is carried out, the load condition of the bus can be determined, the load problem can be prevented from being checked only when the load is too high by directly adjusting and optimizing the model according to the bus load, the calculation problem of low development efficiency of the vehicle electronic control system in the prior art is solved, the workload of a developer is reduced, the flow of developing the vehicle electronic control system is simplified, and the development efficiency of the vehicle electronic control system is improved.
Example III
Fig. 3 is a schematic structural diagram of a computing device for bus load in an ECU observation process according to a fourth embodiment of the present invention. As shown in fig. 3, the apparatus includes: a data acquisition module 310, a data analysis module 320, a vehicle analysis module 330, and a load calculation module 340, wherein,
a data acquisition module 310, configured to import a vehicle calibration file for calibrating a vehicle to be observed;
the data analysis module 320 is configured to determine an amount of data to be transmitted of the calibration vehicle according to the vehicle calibration file;
a vehicle analysis module 330, configured to determine a data transmission rate of the calibration vehicle according to a vehicle bus type of the calibration vehicle;
the load calculation module 340 is configured to determine a bus load of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data amount to be transmitted.
According to the technical scheme, the vehicle calibration file for calibrating the vehicle to be observed is imported; determining the data quantity to be transmitted of the calibration vehicle according to the vehicle calibration file, calculating the data quantity to be transmitted of the observed quantity through the calibration file, calculating the data quantity to be transmitted before observation, adjusting the observation strategy, preventing the situation of overhigh load and improving the observation efficiency; the data transmission rate of the calibration vehicle is determined according to the type of the vehicle bus of the calibration vehicle, and the data transmission rate of the channel is determined, so that the bus transmission load can be effectively controlled during observation, and the situation of higher load during observation is prevented; according to the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle, the bus load of the calibration vehicle is determined, the load of the bus during observation is calculated in advance before observation, whether the bus meets the observation requirement is determined, a model can be directly adjusted and optimized according to the bus load, the problem that the load is checked only when the load is too high is prevented, the calculation problem that the development efficiency of the vehicle electronic control system is low in the prior art is solved, the workload of developers is reduced, the flow of developing the vehicle electronic control system is simplified, and the development efficiency of the vehicle electronic control system is improved.
Optionally, the vehicle analysis module is specifically configured to:
determining the baud rate and the sampling rate of the vehicle bus according to the type of the vehicle bus of the calibration vehicle;
and determining the data transmission rate of the calibration vehicle according to the baud rate and the sampling rate.
Optionally, the vehicle analysis module is specifically further configured to:
determining the message transmission rate of the vehicle bus according to the baud rate and the sampling rate;
and acquiring the message zone bit of the vehicle bus type, and determining the data transmission rate of the calibration vehicle according to the message zone bit and the message transmission rate.
Optionally, the data analysis module is specifically configured to:
screening and matching each observed quantity according to a preset channel collection function, and determining an observed channel corresponding to each observed quantity;
and determining the data quantity to be transmitted of the calibration vehicle according to the observed quantity in each observation channel.
Optionally, the data analysis module is specifically further configured to:
and calculating the data quantity to be transmitted of the calibration vehicle according to the data type corresponding to each observed quantity in all the observed channels through a preset observed quantity calculation function.
Optionally, the data analysis module is specifically further configured to:
and analyzing and matching the vehicle calibration file according to a preset analysis processing function, and determining a plurality of observables of the calibration vehicle and the data type of each observables.
Optionally, the load calculation module is specifically configured to:
determining the bus load rate of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted;
and determining the bus load of the calibration vehicle according to the bus load rate.
The calculation device for the bus load in the ECU observation process provided by the embodiment of the invention can execute the calculation method for the bus load in the ECU observation process provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, such as a calculation method of the bus load during the ECU observation.
In some embodiments, the method of calculating the bus load during the ECU observation may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above-described method of calculating bus load during ECU observation may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of calculating the bus load during ECU observation in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
Example five
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a method for calculating a bus load during an ECU observation process as provided in any embodiment of the present invention, the method comprising:
importing a vehicle calibration file for calibrating a vehicle to be observed;
determining the data quantity to be transmitted of the calibrated vehicle according to the vehicle calibration file;
determining the data transmission rate of the calibration vehicle according to the vehicle bus type of the calibration vehicle;
and determining the bus load of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.
Claims (10)
1. The method for calculating the bus load in the ECU observation process is characterized by comprising the following steps of:
importing a vehicle calibration file for calibrating a vehicle to be observed;
determining the data quantity to be transmitted of the calibrated vehicle according to the vehicle calibration file;
determining the data transmission rate of the calibration vehicle according to the vehicle bus type of the calibration vehicle;
and determining the bus load of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted.
2. The method of claim 1, wherein said determining a data transfer rate of the calibration vehicle based on a vehicle bus type of the calibration vehicle comprises:
determining the baud rate and the sampling rate of the vehicle bus according to the type of the vehicle bus of the calibration vehicle;
and determining the data transmission rate of the calibration vehicle according to the baud rate and the sampling rate.
3. The method of claim 2, wherein said determining the data transmission rate of the calibration vehicle based on the baud rate and the sampling rate comprises:
determining the message transmission rate of the vehicle bus according to the baud rate and the sampling rate;
and acquiring the message zone bit of the vehicle bus type, and determining the data transmission rate of the calibration vehicle according to the message zone bit and the message transmission rate.
4. The method of claim 1, wherein said determining the amount of data to be transmitted for the calibration vehicle from the vehicle calibration file comprises:
screening and matching each observed quantity according to a preset channel collection function, and determining an observed channel corresponding to each observed quantity;
and determining the data quantity to be transmitted of the calibration vehicle according to the observed quantity in each observation channel.
5. The method of claim 4, wherein said determining the amount of data to be transmitted for the calibration vehicle based on the observed quantity in each of the observation channels comprises:
and calculating the data quantity to be transmitted of the calibration vehicle according to the data type corresponding to each observed quantity in all the observed channels through a preset observed quantity calculation function.
6. The method of claim 5, wherein prior to determining the amount of data to be transmitted for the calibration vehicle from the vehicle calibration file, further comprising:
and analyzing and matching the vehicle calibration file according to a preset analysis processing function, and determining a plurality of observables of the calibration vehicle and the data type of each observables.
7. The method of claim 1, wherein said determining the bus load of the calibration vehicle based on the data transmission efficiency of the calibration vehicle and the amount of data to be transmitted comprises:
determining the bus load rate of the calibration vehicle according to the data transmission efficiency of the calibration vehicle and the data quantity to be transmitted;
and determining the bus load of the calibration vehicle according to the bus load rate.
8. A computing device for bus load during ECU observation, comprising:
the data acquisition module is used for importing a vehicle calibration file for calibrating a vehicle to be observed;
the data analysis module is used for determining the data quantity to be transmitted of the calibration vehicle according to the vehicle calibration file;
the vehicle analysis module is used for determining the data transmission rate of the calibration vehicle according to the type of the vehicle bus of the calibration vehicle;
and the load calculation module is used for determining the bus load of the calibration vehicle according to the data transmission efficiency and the data quantity to be transmitted of the calibration vehicle.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of calculating bus load during ECU observation as claimed in any one of claims 1 to 7.
10. A computer readable storage medium, wherein the computer readable storage medium stores computer instructions for causing a processor to implement the method for calculating bus load during ECU observation according to any one of claims 1 to 7 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310360695.3A CN116627104A (en) | 2023-04-06 | 2023-04-06 | Method, device, equipment and medium for calculating bus load in ECU (electronic control unit) observation process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310360695.3A CN116627104A (en) | 2023-04-06 | 2023-04-06 | Method, device, equipment and medium for calculating bus load in ECU (electronic control unit) observation process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116627104A true CN116627104A (en) | 2023-08-22 |
Family
ID=87620072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310360695.3A Pending CN116627104A (en) | 2023-04-06 | 2023-04-06 | Method, device, equipment and medium for calculating bus load in ECU (electronic control unit) observation process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116627104A (en) |
-
2023
- 2023-04-06 CN CN202310360695.3A patent/CN116627104A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021259013A1 (en) | Data processing method and apparatus, electronic device, and computer-readable medium | |
WO2023125272A1 (en) | Full-link stress testing method and apparatus in radius environment, computer device and storage medium | |
CN111966289A (en) | Partition optimization method and system based on Kafka cluster | |
CN112367384B (en) | Kafka cluster-based dynamic speed limiting method and device and computer equipment | |
KR20210105315A (en) | Method and apparatus for annotating data, device, storage medium and computer program | |
CN117319529B (en) | Message analysis method and device applied to vehicle end, electronic equipment and storage medium | |
CN114928574A (en) | Information sending method, information sending device, electronic equipment and computer readable medium | |
WO2021073413A1 (en) | Method and apparatus for sending system performance parameters, management device, and storage medium | |
CN116627104A (en) | Method, device, equipment and medium for calculating bus load in ECU (electronic control unit) observation process | |
CN116938953A (en) | Block chain-based data processing method and device, electronic equipment and storage medium | |
CN114465919B (en) | Network service testing method, system, electronic equipment and storage medium | |
CN115509880A (en) | Service system safety condition prediction method, device, equipment and medium | |
CN112019406A (en) | Flow monitoring method and device, electronic equipment and computer readable medium | |
CN113778844A (en) | Automatic performance testing method and device | |
WO2021203741A1 (en) | Benchmark test method and system, and terminal device | |
CN115906982B (en) | Distributed training method, gradient communication device and electronic equipment | |
CN115174693B (en) | Hierarchical blockchain cross-chain interaction method | |
CN117472589B (en) | Park network service management method and system | |
CN116882724B (en) | Method, device, equipment and medium for generating business process optimization scheme | |
CN116382699A (en) | Method, device, equipment and medium for processing mapping file in vehicle calibration engineering | |
CN113037597B (en) | Flow monitoring method and device, electronic equipment and computer readable medium | |
CN117950703B (en) | Self-adaptive updating method and device for dimension data, electronic equipment and storage medium | |
WO2022001257A1 (en) | Data analysis method, electronic device, and storage medium | |
CN117979210A (en) | Audio transmission method, device, electronic equipment and storage medium | |
CN116691341A (en) | Vehicle speed adjusting method, device, equipment and storage medium based on vehicle accelerator |
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 |