CN116643998A - AUTOSAR RTM-based test method and device - Google Patents

AUTOSAR RTM-based test method and device Download PDF

Info

Publication number
CN116643998A
CN116643998A CN202310928586.7A CN202310928586A CN116643998A CN 116643998 A CN116643998 A CN 116643998A CN 202310928586 A CN202310928586 A CN 202310928586A CN 116643998 A CN116643998 A CN 116643998A
Authority
CN
China
Prior art keywords
rtm
measured
point
wrapper
module
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.)
Granted
Application number
CN202310928586.7A
Other languages
Chinese (zh)
Other versions
CN116643998B (en
Inventor
任东亮
黄伟
陈永杰
陈航
刘佳信
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jianzhi Qiji Technology Co ltd
Original Assignee
Shanghai Jianzhi Qiji Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Jianzhi Qiji Technology Co ltd filed Critical Shanghai Jianzhi Qiji Technology Co ltd
Priority to CN202310928586.7A priority Critical patent/CN116643998B/en
Publication of CN116643998A publication Critical patent/CN116643998A/en
Application granted granted Critical
Publication of CN116643998B publication Critical patent/CN116643998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a test method and device based on AUTOSAR RTM. The method comprises the following steps: decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and the RTM result of the point to be measured is obtained from the output module, so that the RTM measurement of the Task is realized, the personnel is not required to watch, the work of repeated adjustment is reduced, and the development efficiency is improved.

Description

AUTOSAR RTM-based test method and device
Technical Field
The invention relates to the technical field of automobiles, in particular to an AUTOSAR (automobile open system architecture) RTM (run-time measurement) based test method and an AUTOSAR RTM based test device.
Background
The automobile open system architecture (AUTomotive Open System Architecture, AUTOSAR) is a consortium that is dedicated to the development of automobile electronic software standards. AUTOSAR is built jointly by global automobile manufacturers, component suppliers and other electronic, semiconductor and software system companies, each member maintains a development partnership, each partnership is brought into hand-in-hand cooperation, and aims to develop an open and standardized software architecture for the automobile industry. The AUTOSAR architecture is beneficial to the exchange and update of vehicle electronic system software, and provides a foundation for efficiently managing more and more complex vehicle electronic and software systems.
In AUTOSAR, ECU software is abstracted into three layers: basic Software (BSW), runtime Environment (RTE), and application layer. The BSW contains four parts, a microcontroller abstraction layer (Micro Controller Abstraction Layer, MCAL), an electronic control unit (Electronic Control Unit, ECU) abstraction layer, a service layer, and complex drivers. The MCAL contains a driver related to hardware and can be used for directly accessing memory, communication, I/O and the like; the ECU abstract layer provides a unified access interface for an upper layer to realize access to communication, memory or I/O; the service layer provides various background services; the complex drive includes a driver associated with the sensor and the actuator.
The application layer is used for realizing specific functions of the ECU and comprises a plurality of AUTOSAR software components (SoftwareComponent, SWC). The behavior of the SWC is realized through one or more Runnable entities (Runnable), wherein Runnable is the smallest code segment in the SWC, and finally, the code segment is mapped to a specific task of an operating system, and the operating system performs scheduling to complete corresponding functions.
The RTE implements the execution of the AUTOSAR virtual function bus and the SWC and ensures consistency of data exchanges between the SWCs and between the SWC and the BSW.
To facilitate user determination of runtime information of code segments and CPU loads generated by code segments at runtime, AUTOSAR provides runtime measurement (Runtime Measurement, RTM) functionality. RTM is used to measure the runtime and CPU load of BSW module code, and also to measure the runtime and CPU load of user-defined code segments. RTM measurements currently have Count, max, min, average and Average CPU load. Wherein Count represents the occurrence frequency of the start function and the stop function, max represents the longest operation duration of the start-stop segment of the code segment, min represents the shortest operation duration of the start-stop segment of the code segment, average represents the Average operation duration of the start-stop segment of the code segment, and Average CPU load represents the Average CPU load of each start-stop segment operation. AUTOSAR RTM provides functions such as error report, current CPU load and software execution time measurement, and the like, and can greatly simplify the development and test process of ECU software.
Fig. 1 is a schematic diagram of an RTM measurement load based on an AUTOSAR in the prior art, and as shown in fig. 1, an RTM implementation manner based on an AUTOSAR architecture is as follows:
step A, configuring an AUTOSAR RTM function;
enabling an RTM function in the BSW module;
step C, adding a start function and a stop function of an RTM measurement start function for measuring SWC;
step D, obtaining the measurement result through XCP (Universal Measurement and Calibration Protocol ) protocol.
However, in implementing the present invention, the inventor has found that, in the current scheme based on runtime measurement of the AUTOSAR architecture, the scheme based on configuration tool chain has some problems, and is specifically described as follows:
when the measuring points are added, the macro functions of the start and stop generate codes for the RTM module, and the codes are not universal and are not beneficial to multiplexing of other engineering codes.
The configuration of the measurement points cannot be shut down at any time, the order is adjusted, and the presented result is not the most desired order for the user.
The measurement of the time of occurrence of abnormality can not be displayed as a result in operation, which is unfavorable for automatic test, and frequent observation is required by personnel, thus reducing development efficiency.
At present, no good method exists for supporting a Task (Task) level by measuring points, a measuring point starting code of the Task is manually added, and after the AUTOSAR tool chain regenerates the code, the code can be cleaned up, so that development and debugging are inconvenient.
In summary, the current run-time measurement based on the AUTOSAR architecture has the problems of insufficient requirement, low development efficiency and poor code reusability.
Disclosure of Invention
Aiming at the defects in the prior art, the embodiment of the invention provides a test method based on AUTOSAR RTM and a test device based on AUTOSAR RTM.
In a first aspect, an embodiment of the present invention provides a test method for measuring RTM in running based on an automotive open system architecture auto sar, including:
decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper;
adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured;
adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured;
adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement;
enabling the RTM Wrapper;
and acquiring the RTM result of the point to be measured from the output module.
The method optionally adds an interface function of the point to be measured in the RTM Wrapper, including:
If the point to be measured is a code segment, acquiring an interface function of the code segment from a software component SWC, wherein the interface function of the code segment comprises a code segment measurement start function and a code segment measurement end function;
adding the code segment measurement start function at the start position of the code segment;
and adding the code segment measurement ending function at the ending position of the code segment.
The method optionally adds an interface function of the point to be measured in the RTM Wrapper, including:
if the point to be measured is a Task, generating an interface function of the Task by using a run-time environment RTE of an AUTOSAR tool chain, wherein the interface function of the Task comprises a Task measurement start function and a Task measurement end function;
adding an interface function of the Task in a software component SWC of the RTM Wrapper;
associating the measurement start function to a start run position of the Task;
and associating the measurement ending function to the last execution position of the Task.
As above, optionally, the generating, by the runtime environment RTE using the AUTOSAR tool chain, the interface function of the Task includes:
for each core, determining the SWC corresponding to the core;
Determining a corresponding RTM starting interface function and a corresponding RTM ending interface function according to the Task corresponding to each SWC;
setting an RTM measuring switch of the Task;
generating the RTM start interface function and the RTM end interface function by using a runtime environment RTE of an AUTOSAR tool chain;
accordingly, before the enabling the RTM Wrapper, the method further includes:
and starting an RTM measuring switch of the Task.
In the above method, optionally, the adding a configuration module of the point to be measured in the RTM Wrapper, where the configuration module is used to input a test solution of the point to be measured, and includes:
determining a point to be measured currently required to be measured in the points to be measured recorded by the RTM Wrapper according to a test scheme;
determining the test sequence of each point to be measured in the points to be measured which are currently required to be measured according to the test scheme;
determining a running time threshold value of each point to be measured according to the test scheme;
accordingly, the enabling the RTM Wrapper includes:
enabling the RTM Wrapper to sequentially perform RTM measurement on the points to be measured which are currently required to be measured according to the test sequence.
The method optionally adds an output module of the point to be measured in the RTM Wrapper, including:
Determining an output list according to test requirements, and adding the output list in the RTM Wrapper, wherein the output list comprises at least one of RTM measured values, RTM measured value sequencing and abnormal measured points, and the abnormal measured points are measured points of which the RTM measured values are larger than a running time threshold.
The method, optionally, the obtaining, from the output module, the RTM result of the point to be measured includes:
obtaining RTM results of the points to be measured from the output module by using a universal measurement and calibration protocol XCP;
or obtaining the RTM result of the point to be measured from the output module by using a debugging program.
In a second aspect, an embodiment of the present invention provides a test apparatus for measuring RTM in running based on an automotive open system architecture auto sar, including:
the decoupling module is used for decoupling the RTM module of the AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper;
the first adding module is used for adding an interface function of a point to be measured in the RTM Wrapper, and the interface function is used for performing runtime measurement on the point to be measured;
the second adding module is used for adding a configuration module of the point to be measured in the RTM Wrapper, and the configuration module is used for inputting a test scheme of the point to be measured;
The third adding module is used for adding an output module of the point to be measured in the RTM Wrapper, and the output module is used for outputting an RTM result of the point to be measured according to the test requirement;
an enabling module, configured to enable the RTM Wrapper;
and the acquisition module is used for acquiring the RTM result of the point to be measured from the output module.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
the device comprises a memory and a processor, wherein the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing the method of: decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon a computer program which, when executed by a processor, performs a method of: decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module.
According to the test method based on AUTOSAR RTM, which is provided by the embodiment of the invention, an RTM module of an AUTOSAR tool chain is uncoupled into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module. According to the embodiment of the invention, the RTM module based on the AUTOSAR configuration tool chain develops the middle layer RTM Wrapper, the RTM module is configured once, and through the RTM Wrapper, which measurement points are enabled by a user in a customized way, the measurement point ordering configuration, the threshold configuration and the like can be realized, so that the running result of the measurement points can be seen after a period of automatic measurement, and the personnel are not required to be on duty. Under the condition that the software architecture is not changed, the measurement of all code segments can be met without adjusting the configuration of RTM and RTM Wrapper, the repeated adjustment work is reduced, and the development efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of an AUTOSAR-based RTM measurement load of the prior art;
FIG. 2 is a flow chart of steps of an embodiment of an AUTOSAR RTM-based testing method according to the present invention;
FIG. 3 is a flow chart of steps of another embodiment of an AUTOSAR RTM based test method according to the present invention;
FIG. 4 is a block diagram of an embodiment of an AUTOSAR RTM-based testing device of the present invention;
fig. 5 is a block diagram of an embodiment of an electronic device of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
Currently, the problems that requirements cannot be fully met, development efficiency is low and code reusability is poor in the running measurement based on an AUTOSRAR architecture are solved, and in order to solve the problems, an intermediate layer RTM Wrapper is developed based on an AUTOSAR configuration tool chain RTM module, task measurement points configured by RTM are isolated from the AUTOSAR tool chain RTE module, the function of measuring the Task is achieved, the measurement points are isolated from measurement point results, the RTM module is configured once, the user customizes which measurement points are enabled, the measurement point ordering configuration, the threshold configuration and the time corresponding to the measurement points exceeding the threshold are configured through the RTM Wrapper, so that the running result of the measurement points can be seen after a period of automatic measurement, no watch is needed, and development efficiency is improved.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a test method based on an AUTOSAR RTM according to the present invention may specifically include the following steps:
step S210, decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper;
specifically, when the RTM is required to be measured during running, the AUTOSAR RTM module is firstly subjected to generalized configuration, a code part for realizing the overall function of the RTM module is used as a static code library, and an intermediate layer of the AUTOSAR RTM module, namely an RTM Wrapper, is developed based on the AUTOSAR RTM module, and is used for realizing RTM measurement of a code segment or Task. Unlike the prior art that the measurement function is directly set in the RTM, the RTM module is decoupled into the static code library and the RTM Wrapper in the embodiment of the invention, the RTM measurement is realized in the RTM Wrapper, and the RTM Wrapper can be easily transplanted into other projects.
Step S220, adding an interface function of a point to be measured in an RTM Wrapper, wherein the interface function is used for performing runtime measurement on the point to be measured;
specifically, the SWC in the AUTOSAR may be imported into other projects, where the behavior of the SWC is implemented by one or more Runnable entities (Runnable), which is the smallest code segment in the SWC, and finally mapped to a specific task of the operating system, and scheduled by the operating system to complete a corresponding function.
In order to improve the reusability of RTM, in the embodiment of the invention, an SWC Runneable function is arranged in the RTM Wrapper, and the Runneable function mainly has a start measurement start function and an end measurement stop function. The Runneable is utilized to realize an interface function of a point to be measured, and the purpose is to decouple the start and stop functions of the point to be measured configured by an RTM module of an AUTOSAR tool chain.
Step S230, adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured;
specifically, the configuration module is used for realizing the function of associating the input of the points to be measured with the output of the RTM Wrapper, and aims at being decoupled with the ordering of the measurement points and the quantity of the measurement points configured by the RTM module of the AUTOSAR tool chain. The configuration module may be configured based on a test scheme set by a user, for example, a test sequence of each measurement point, a run time threshold of each measurement point, and so on.
Step S240, adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement;
specifically, the output module of the RTM Wrapper is a result of the RTM module based on the AUTOSAR tool chain, so that the associated RTM Wrapper configuration module is realized, and a measurement result is output. The occurrence time exceeding the threshold value can be increased in the result according to the test requirement set by the user, the result is output according to the measurement points configured by the RTM Wrapper user, and the CPU load rate of each measurement point is calculated based on each result.
Step S250, enabling the RTM Wrapper;
specifically, an AUTOSAR RTM is configured as a basic function, an enabling RTM module comprising a static code library and an RTM Wrapper correspondingly enables functions supporting RTM in the AUTOSAR BSW module. After the set program is brushed on a micro control unit (Microcontroller Unit, MCU) in the AUTOSAR to run, RTM measurement of each point to be measured can be started.
Step S260, obtaining the RTM result of the point to be measured from the output module.
Specifically, since the input module and the output module of the points to be measured are arranged in the RTM Wrapper, after the program is run, RTM measurement is performed on each point to be measured according to the test scheme set by the input module, and meanwhile, the test result is output according to the test requirement set by the output module, therefore, a user can obtain the measurement result of the RTM Wrapper from the output module, the results of each point to be measured in the RTM Wrapper are ordered according to the running result of the same CPU, ordering according to the maximum running time, ordering during average running time and the like can be customized, and the quick capture of the problems by a developer is facilitated.
In practical application, a user can acquire an RTM result of the point to be measured from the output module by using a universal measurement and calibration protocol XCP; or obtaining the RTM result of the point to be measured from the output module by using a debugging program debug.
According to the test method based on AUTOSAR RTM, which is provided by the embodiment of the invention, an RTM module of an AUTOSAR tool chain is uncoupled into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module. According to the embodiment of the invention, the RTM module based on the AUTOSAR configuration tool chain develops the middle layer RTM Wrapper, the RTM module is configured once, and through the RTM Wrapper, which measurement points are enabled by a user in a customized way, the measurement point ordering configuration, the threshold configuration and the like can be realized, so that the running result of the measurement points can be seen after a period of automatic measurement, and the personnel are not required to be on duty. Under the condition that the software architecture is not changed, the measurement of all code segments can be met without adjusting the configuration of RTM and RTM Wrapper, the repeated adjustment work is reduced, and the development efficiency is improved.
On the basis of the above embodiment, further adding an interface function of a point to be measured in the RTM Wrapper includes:
if the point to be measured is a code segment, acquiring an interface function of the code segment from a software component SWC, wherein the interface function of the code segment comprises a code segment measurement start function and a code segment measurement end function;
adding the code segment measurement start function at the start position of the code segment;
and adding the code segment measurement ending function at the ending position of the code segment.
Specifically, the interface function of the obtained code segment in the software component SWC is rtm_startxx and rtm_stopxx, rtm_startxx is a code segment measurement start function, rtm_stopxx is a code segment measurement end function, XX is an identification of the code segment, rtm_startxx is set at a start position of the code segment, rtm_stopxx is set at an end position of the code segment, and rtm_startxx and rtm_stopxx are used for measuring the running time of the code segment between the two.
For example, if the code segment to be measured is rtmpt_user_core0_0, it may be set as:
Rtm_StartMeasurementFct(RtmConf(RtmPt_User_Core0_0))
code segment to be measured
Rtm_StopMeasurementFct(RtmConf(RtmPt_User_Core0_0))。
In the embodiment of the invention, aiming at RTM measurement of a code segment, an interface function is acquired from a software component, a measurement starting function is added at the starting position of the code segment, a measurement ending function is added at the ending position of the code segment, the interface function in SWC is added into an RTM Wrapper, the function of an AUTOSAR RTM module is optimized through an intermediate layer RTM Wrapper, the RTM module of the AUTOSAR tool chain is uncoupled into a static code library and configuration codes of the RTM Wrapper, the static code library is not required to be updated, and the configuration codes can be easily transplanted to other projects according to the needs.
On the basis of the above embodiments, further, adding an interface function of a point to be measured in the RTM Wrapper includes:
if the point to be measured is a Task, generating an interface function of the Task by using a run-time environment RTE of an AUTOSAR tool chain, wherein the interface function of the Task comprises a Task measurement start function and a Task measurement end function;
adding an interface function of the Task in a software component SWC of the RTM Wrapper;
associating the measurement start function to a start run position of the Task;
and associating the measurement ending function to the last execution position of the Task.
Specifically, the Task is an object in the AUTOSAR, and in the real-time operating system, each action performed is placed in the Task. The code needs to be triggered in what way, the code is placed in the corresponding Task, which contains a plurality of Runnable. In the prior art, a measurement point initial code of a Task is manually added in an RTM module to perform Task operation time measurement, however, after the AUTOSAR tool chain regenerates the code, the code can be cleaned, and development and debugging are inconvenient. In order to solve the problem, in the embodiment of the present invention, if the point to be measured is a Task, firstly, an interface function of the Task is generated by using a runtime environment RTE of an auto sar tool chain, where the interface function includes a Task measurement Start function and a Task measurement end function, that is, a Start run and a Stop run, the Start run is an rtm_startxx function of the Task, and the Stop run is an rtm_stopxx function of the Rtm, where XX represents a Task identifier.
Then, adding the rtm_startxx function and the rtm_stopxx function in the RTM Wrapper SWC, associating the rtm_startxx function to the start running position of the Task, that is, before the first Runnable associated with the Task, and associating the rtm_stopxx function to the last execution position of the Task, that is, after the last Runnable associated with the Task. Thus, for each Task, the order of Runnable runs rtm_startxx within the Task is the first run function and rtm_stopxx is the last run function.
Because the RTM interface function of the Task is arranged in the RTE code, the RTE can be updated each time, and cannot be cleaned, the RTM measurement of the Task is realized, the decoupling is carried out with the RTM by using a Runneable mode, manual adjustment is not needed, the interface function of the Task is configured in the SWC, the SWC can be led into different tool chains, repeated development is not needed, and the development efficiency is improved.
On the basis of the foregoing embodiments, further, the generating, by the runtime environment RTE using the auto sar tool chain, the interface function of the Task includes:
for each core, determining the SWC corresponding to the core;
determining a corresponding RTM starting interface function and a corresponding RTM ending interface function according to the Task corresponding to each SWC;
Setting an RTM measuring switch of the Task;
generating the RTM start interface function and the RTM end interface function by using a runtime environment RTE of an AUTOSAR tool chain;
accordingly, before the enabling the RTM Wrapper, the method further includes:
and starting an RTM measuring switch of the Task.
Specifically, the Core is Core, and different MCU chips may have 1 Core,2 cores, etc., and one SWC is designed for each Core, for example, rtm_wrapper_core0, rtm_wrapper_core1, rtm_wrapper_core2, etc.
For each SWC, configuring the Task of the corresponding Core, determining a corresponding RTM Start interface function and RTM end interface function, i.e. determining an RTM Start interface function and an RTM Stop interface function of each Task, e.g. rtm_start_app_bsw_task_cork0_5 ms, rtm_stop_app_bsw_task_core0_5ms, etc. Masking the implementation functions of RTM in this way requires no adjustment in the design of SWC as BSW updates or other RTM modules change.
Then, the macro definition switch is used to set the RTM measurement switch of each Task, and because the RTM function is used for debugging, when the Debug version is used, the RTM measurement switch is turned on, and when the candidate Release version is used, the RTM function is turned off, so that the extra load is reduced.
In the embodiment of the invention, the intermediate layer RTM Wrapper is developed based on the AUTOSAR configuration tool chain RTM module, the Task measuring point configured by the RTM is isolated from the AUTOSAR tool chain RTE module, the function of measuring the Task is realized, the content of a test result is optimized through the logic processing of the intermediate layer RTM Wrapper, the problem analysis is convenient, the configuration is dynamically adjusted during running, and the development efficiency is improved.
On the basis of the above embodiments, further, the configuration module for adding the point to be measured in the RTM Wrapper, where the configuration module is configured to input a test solution of the point to be measured, and includes:
determining a point to be measured currently required to be measured in the points to be measured recorded by the RTM Wrapper according to a test scheme;
determining the test sequence of each point to be measured in the points to be measured which are currently required to be measured according to the test scheme;
determining a running time threshold value of each point to be measured according to the test scheme;
accordingly, the enabling the RTM Wrapper includes:
enabling the RTM Wrapper to sequentially perform RTM measurement on the points to be measured which are currently required to be measured according to the test sequence.
Specifically, in the embodiment of the present invention, the user may set the configuration module according to the own test requirement, where the test requirement may include information such as running time, average running time of each Runnable in the Task, and a running time threshold.
Firstly, according to a test scheme, determining points to be measured in the points to be measured recorded by an RTM Wrapper, namely starting the points to be measured, closing the points to be measured, if the number of the points to be measured is more, setting the test sequence of the points to be measured, and setting the running time threshold of each point to be measured. And then enabling the RTM Wrapper to sequentially carry out RTM measurement on the points to be measured which are currently required to be measured according to the test sequence.
In practical application, according to the adjustment of the project, the input RTM measurement point can be adjusted at any time, and the user can also use the debugger to adjust online.
In the embodiment of the invention, through the RTM Wrapper, a user can customize which measurement points are started, the measurement point ordering configuration, the threshold configuration, the time when the corresponding measurement points exceed the threshold value and the like, so that the running result of the measurement points can be seen after a period of automatic measurement, the unattended operation is not needed, and the development efficiency is improved.
On the basis of the above embodiments, further, adding the output module of the point to be measured in the RTM Wrapper includes:
determining an output list according to test requirements, and adding the output list in the RTM Wrapper, wherein the output list comprises at least one of RTM measured values, RTM measured value sequencing and abnormal measured points, and the abnormal measured points are measured points of which the RTM measured values are larger than a running time threshold.
Specifically, the user may determine an output list according to the test requirement, where the output list may include an actual value of RTM measurement, an order of RTM measurement values, an abnormal measurement point, and the like, and in an actual application, the output list may include a timestamp of an abnormal time, and determine an abnormal threshold value, so as to quickly retrieve the abnormal measurement point. In practical application, the output results of the RTM writers are ordered according to the running results of the same CPU, so that the ordering according to the maximum running time can be customized, the ordering according to the average running time can be customized, and the like, and a developer can conveniently and rapidly capture the problems.
In the embodiment of the invention, different test requirements are observed according to different output lists on the premise of not changing the version, and personnel are not required to be on duty, so that the test efficiency is improved.
Referring to fig. 3, a flowchart illustrating steps of another embodiment of an testing method based on an AUTOSAR RTM according to the present invention may specifically include the following steps:
step E1, configuring an AUTOSAR RTM module as a basic function
Specifically, the AUTOSAR RTM module is subjected to generalized configuration, and the whole function is used as a static module code library;
and E2, enabling an RTM function in the BSW module, wherein a plurality of modules in the AUTOSAR BSW module support the function of measurement in running and correspond to enabling.
Step E3, configuring Runneable of RTM Wrapper measurement points
Specifically, the RTM Wrapper module adds an RTM Wrapper SWC implementation, and the Runnable function when completing the running of the user code segment mainly has a start function and an end stop function, so as to be decoupled from the start function and the stop function of the measurement point configured by the RTM module of the AUTOSAR tool chain.
Step E4, RTM Wrapper measuring point configuration module
Specifically, the configuration module of the RTM Wrapper measurement points realizes the function of the input and the output of the RTM Wrapper measurement points, and aims to configure the measurement point ordering and the decoupling of the quantity with the RTM module of the AUTOSAR tool chain.
E5, RTM Wrapper measuring point output module
Specifically, the output of the RTM Wrapper measurement point is based on the results of the tool chain RTM module. The relevant RTM Wrapper user configuration module is realized, and the measurement result is output. And increasing the occurrence time exceeding the threshold value in the result, and outputting the result according to the measurement points configured by the RTM Wrapper user.
Step E6, support of TASK in RTM Wrapper
Specifically, this is done by the RTE module of the AUTOSAR toolchain. When the Task is measured, the start runnable and stop runnable need to be added, and specific function names are in the RTM Wrapper SWC. Because the Task code is updated in the RTE code every time RTE is generated, the rule is used for decoupling from the RTM, and manual adjustment is avoided.
Step E7, adding RTM Wrapper SWC
Specifically, to achieve decoupling of the RTM interface and the Task, the SWC configures start run and stop run therein, associated with a location of initial execution and a location of final execution of the corresponding Task.
Step E8, RTM Wrapper configuration content modification
Specifically, XCP or debug is used to fill out relevant parameters of the RTM Wrapper configuration module according to own test requirements.
Step E9, obtaining RTM Wrapper measurement results
Specifically, the measurement result of the RTM Wrapper is obtained by using XCP or debug, so that the sequencing can be customized according to the maximum runtime, and the sequencing can be performed at average runtime, thereby facilitating the rapid capture of the problems by the developer.
In the embodiment of the invention, an intermediate layer RTM Wrapper is developed based on an AUTOSAR configuration tool chain RTM module, task measuring points configured by RTM are isolated from the AUTOSAR tool chain RTE module, the function of measuring the Task is realized, the measuring points are isolated from measuring point results, the RTM module is configured once, a user can customize which measuring points are started, the measuring point ordering configuration and the threshold configuration are carried out through the RTM Wrapper, and the time when the measuring points exceed the threshold is corresponding. Therefore, the operation result of the measuring point can be seen after the automatic measurement is carried out for a period of time, and the unattended operation is not needed, so that the development efficiency is improved.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a block diagram of an embodiment of a testing device based on an AUTOSAR RTM according to the present invention is shown, which may specifically include the following modules:
a decoupling module 410, configured to decouple the RTM module of the AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper;
a first adding module 420, configured to add an interface function of a point to be measured in an RTM Wrapper, where the interface function is used to perform runtime measurement on the point to be measured;
a second adding module 430, configured to add a configuration module of the point to be measured to the RTM Wrapper, where the configuration module is configured to input a test scheme of the point to be measured;
A third adding module 440, configured to add an output module of the point to be measured to the RTM Wrapper, where the output module is configured to output an RTM result of the point to be measured according to a test requirement;
an enabling module 450 for enabling the RTM Wrapper;
and an obtaining module 460, configured to obtain the RTM result of the point to be measured from the output module.
As in the above apparatus, optionally, the first adding module 420 is specifically configured to:
if the point to be measured is a code segment, acquiring an interface function of the code segment from a software component SWC, wherein the interface function of the code segment comprises a code segment measurement start function and a code segment measurement end function;
adding the code segment measurement start function at the start position of the code segment;
and adding the code segment measurement ending function at the ending position of the code segment.
As in the above apparatus, optionally, the first adding module 420 is specifically configured to:
if the point to be measured is a Task, generating an interface function of the Task by using a run-time environment RTE of an AUTOSAR tool chain, wherein the interface function of the Task comprises a Task measurement start function and a Task measurement end function;
adding an interface function of the Task in a software component SWC of the RTM Wrapper;
Associating the measurement start function to a start run position of the Task;
and associating the measurement ending function to the last execution position of the Task.
As mentioned above, optionally, the first adding module 420 is configured to, when generating the interface function of the Task using the runtime environment RTE of the AUTOSAR tool chain, specifically:
for each core, determining the SWC corresponding to the core;
determining a corresponding RTM starting interface function and a corresponding RTM ending interface function according to the Task corresponding to each SWC;
setting an RTM measuring switch of the Task;
generating the RTM start interface function and the RTM end interface function by using a runtime environment RTE of an AUTOSAR tool chain;
accordingly, the enabling module 450 is further configured to:
and starting an RTM measuring switch of the Task.
As mentioned above, optionally, the second adding module 430 is specifically configured to:
determining a point to be measured currently required to be measured in the points to be measured recorded by the RTM Wrapper according to a test scheme;
determining the test sequence of each point to be measured in the points to be measured which are currently required to be measured according to the test scheme;
determining a running time threshold value of each point to be measured according to the test scheme;
Accordingly, the enabling module 450 is specifically configured to:
enabling the RTM Wrapper to sequentially perform RTM measurement on the points to be measured which are currently required to be measured according to the test sequence.
As in the above device, optionally, the third adding module 440 is specifically configured to:
determining an output list according to test requirements, and adding the output list in the RTM Wrapper, wherein the output list comprises at least one of RTM measured values, RTM measured value sequencing and abnormal measured points, and the abnormal measured points are measured points of which the RTM measured values are larger than a running time threshold.
As mentioned above, optionally, the obtaining module 460 is specifically configured to: obtaining RTM results of the points to be measured from the output module by using a universal measurement and calibration protocol XCP;
or obtaining the RTM result of the point to be measured from the output module by using a debugging program.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
Fig. 5 is a block diagram of an embodiment of an electronic device of the present invention, as shown in fig. 5, the device includes: a processor (processor) 510, a memory (memory) 520, and a bus 530;
Wherein processor 510 and memory 520 communicate with each other via bus 530;
the processor 510 is configured to invoke program instructions in the memory 520 to perform the methods provided by the method embodiments described above, including, for example: decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module.
Embodiments of the present invention disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the method embodiments described above, for example comprising: decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module.
Embodiments of the present invention provide a non-transitory computer readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above-described method embodiments, for example, including: decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper; adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured; adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured; adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement; enabling the RTM Wrapper; and acquiring the RTM result of the point to be measured from the output module.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing describes in detail a test method based on AUTOSAR RTM and a test device based on AUTOSAR RTM, and specific examples are applied to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. A test method for measuring RTM based on automotive open system architecture, AUTOSAR, runtime, comprising:
decoupling an RTM module of an AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper;
adding an interface function of a point to be measured in an RTM writer, wherein the interface function is used for performing runtime measurement on the point to be measured;
adding a configuration module of the point to be measured in the RTM Wrapper, wherein the configuration module is used for inputting a test scheme of the point to be measured;
adding an output module of the point to be measured in the RTM Wrapper, wherein the output module is used for outputting the RTM result of the point to be measured according to the test requirement;
enabling the RTM Wrapper;
obtaining an RTM result of the point to be measured from the output module;
wherein adding an interface function of a point to be measured in the RTM writer comprises:
and setting a SWC Runneable function in the RTM Wrapper, wherein the Runneable function has a start measurement start function and an end measurement stop function, and realizing an interface function of a point to be measured by using the Runneable.
2. The method of testing according to claim 1, wherein adding an interface function of a point to be measured in the RTM Wrapper comprises:
If the point to be measured is a code segment, acquiring an interface function of the code segment from a software component SWC, wherein the interface function of the code segment comprises a code segment measurement start function and a code segment measurement end function;
adding the code segment measurement start function at the start position of the code segment;
and adding the code segment measurement ending function at the ending position of the code segment.
3. The method of testing according to claim 1, wherein adding an interface function of a point to be measured in the RTM Wrapper comprises:
if the point to be measured is a Task, generating an interface function of the Task by using a run-time environment RTE of an AUTOSAR tool chain, wherein the interface function of the Task comprises a Task measurement start function and a Task measurement end function;
adding an interface function of the Task in a software component SWC of the RTM Wrapper;
associating the measurement start function to a start run position of the Task;
and associating the measurement ending function to the last execution position of the Task.
4. A test method according to claim 3, wherein the generating the Task's interface function using the run-time environment RTE of the AUTOSAR toolchain comprises:
For each core, determining the SWC corresponding to the core;
determining a corresponding RTM starting interface function and a corresponding RTM ending interface function according to the Task corresponding to each SWC;
setting an RTM measuring switch of the Task;
generating the RTM start interface function and the RTM end interface function by using a runtime environment RTE of an AUTOSAR tool chain;
accordingly, before the enabling the RTM Wrapper, the method further includes:
and starting an RTM measuring switch of the Task.
5. The test method according to any one of claims 1 to 4, wherein a configuration module of the point to be measured is added to the RTM Wrapper, and the configuration module is configured to input a test solution of the point to be measured, and includes:
determining a point to be measured currently required to be measured in the points to be measured recorded by the RTM Wrapper according to a test scheme;
determining the test sequence of each point to be measured in the points to be measured which are currently required to be measured according to the test scheme;
determining a running time threshold value of each point to be measured according to the test scheme;
accordingly, the enabling the RTM Wrapper includes:
enabling the RTM Wrapper to sequentially perform RTM measurement on the points to be measured which are currently required to be measured according to the test sequence.
6. The test method of claim 5, wherein adding the output module of the point to be measured to the RTM Wrapper comprises:
determining an output list according to test requirements, and adding the output list in the RTM Wrapper, wherein the output list comprises at least one of RTM measured values, RTM measured value sequencing and abnormal measured points, and the abnormal measured points are measured points of which the RTM measured values are larger than a running time threshold.
7. The method according to any one of claims 1-4, wherein the obtaining the RTM result of the point to be measured from the output module includes:
obtaining RTM results of the points to be measured from the output module by using a universal measurement and calibration protocol XCP;
or obtaining the RTM result of the point to be measured from the output module by using a debugging program.
8. A test device for measuring RTM based on automotive open system architecture, AUTOSAR, runtime, comprising:
the decoupling module is used for decoupling the RTM module of the AUTOSAR tool chain into a static code library and a Wrapper RTM Wrapper;
the first adding module is used for adding an interface function of a point to be measured in the RTM Wrapper, and the interface function is used for performing runtime measurement on the point to be measured;
The second adding module is used for adding a configuration module of the point to be measured in the RTM Wrapper, and the configuration module is used for inputting a test scheme of the point to be measured;
the third adding module is used for adding an output module of the point to be measured in the RTM Wrapper, and the output module is used for outputting an RTM result of the point to be measured according to the test requirement;
an enabling module, configured to enable the RTM Wrapper;
the acquisition module is used for acquiring the RTM result of the point to be measured from the output module;
the first adding module is specifically configured to:
and setting a SWC Runneable function in the RTM Wrapper, wherein the Runneable function has a start measurement start function and an end measurement stop function, and realizing an interface function of a point to be measured by using the Runneable.
9. An electronic device, comprising:
the device comprises a memory and a processor, wherein the processor and the memory are communicated with each other through a bus; the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 7.
CN202310928586.7A 2023-07-27 2023-07-27 AUTOSAR RTM-based test method and device Active CN116643998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310928586.7A CN116643998B (en) 2023-07-27 2023-07-27 AUTOSAR RTM-based test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310928586.7A CN116643998B (en) 2023-07-27 2023-07-27 AUTOSAR RTM-based test method and device

Publications (2)

Publication Number Publication Date
CN116643998A true CN116643998A (en) 2023-08-25
CN116643998B CN116643998B (en) 2023-09-22

Family

ID=87643808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310928586.7A Active CN116643998B (en) 2023-07-27 2023-07-27 AUTOSAR RTM-based test method and device

Country Status (1)

Country Link
CN (1) CN116643998B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3660678A1 (en) * 2018-11-28 2020-06-03 Siemens Aktiengesellschaft Canary release for static content
KR20200067474A (en) * 2018-12-04 2020-06-12 이화여자대학교 산학협력단 Fault injection test method and system for vehicle software based on autosar
US11003819B1 (en) * 2018-09-13 2021-05-11 Synopsys, Inc. Method to enable multiple users of embedded-software debug to share a single hardware resource
CN113505060A (en) * 2021-06-25 2021-10-15 北京控制工程研究所 Python automatic test script compiling method for spacecraft attitude and orbit control software
CN116069648A (en) * 2023-01-29 2023-05-05 浙江极氪智能科技有限公司 Software testing method, system, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11003819B1 (en) * 2018-09-13 2021-05-11 Synopsys, Inc. Method to enable multiple users of embedded-software debug to share a single hardware resource
EP3660678A1 (en) * 2018-11-28 2020-06-03 Siemens Aktiengesellschaft Canary release for static content
KR20200067474A (en) * 2018-12-04 2020-06-12 이화여자대학교 산학협력단 Fault injection test method and system for vehicle software based on autosar
CN113505060A (en) * 2021-06-25 2021-10-15 北京控制工程研究所 Python automatic test script compiling method for spacecraft attitude and orbit control software
CN116069648A (en) * 2023-01-29 2023-05-05 浙江极氪智能科技有限公司 Software testing method, system, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘玺斌;马建;宋青松;: "基于AUTOSAR规范的汽车ECU软件开发方法", 电子设计工程, no. 11 *
王磊: "基于AUTOSAR 标准的RTM 实现", 信息通信, no. 9 *

Also Published As

Publication number Publication date
CN116643998B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN107015842B (en) Server-side program compiling and publishing management method and system
US8701079B2 (en) Procedure and development environment for generation of an executable overall control program
CN108132876B (en) Embedded software object code unit testing method based on injection mode
US9342441B2 (en) Methodology and tool support for test organization and migration for embedded software
KR102141287B1 (en) Fault injection test method and system for vehicle software based on autosar
JP2010241231A (en) Testing device and testing method
CN106292647B (en) Method and device for testing operation condition of motor controller
CN109002397B (en) Controller smoking test system and test method
CN114675862A (en) OTA (over the air) upgrading method and device
US20050154949A1 (en) System for flexible embedded Boundary Scan testing
CN113133041B (en) Method and device for testing vehicle-to-vehicle communication function in dynamic interval train control vehicle
CN116643998B (en) AUTOSAR RTM-based test method and device
US20220138083A1 (en) Method for operating a control unit when testing software of the control unit, and method for operating a test computer when testing software of a control unit
Drenth et al. Consistent simulation environment with FMI based tool chain
CN115470100A (en) Signal scene testing method and device for automobile parts
CN115542878A (en) Simulation virtualization test method, system, equipment and medium based on controller
EP3076299B1 (en) Method to improve and extend the logics of a test rig for a vehicle component, in particular a battery or an alternator
Beringer et al. Consistency Analysis of AUTOSAR Timing Requirements.
CN111488264A (en) Deployment scheduling method for interface performance test cluster
JP6463445B1 (en) In-vehicle control device
Kanchana et al. Automated Development and Testing of ECUs in Automotive Industry with Jenkins
CN108170412B (en) Comprehensive calibration unit based on flow control
Schulze et al. Hardware-in-the-loop test process for modern E/E systems
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium
CN106919510B (en) SPECjbb-based avoidance method and avoidance system for OracleJDK version test operation error reporting

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