Alarm deviation optimization device for automotive open system architecture operating system
By designing an alarm offset optimization device in the automotive open system architecture and optimizing the alarm offset using preset offset tables and CPU load measurements, the problem of software resource shortage is solved and fast task execution time measurement in the actual operating environment is achieved. and improve resource management efficiency.
Patent Information
- Application Number
- CN202011401113.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-09
- Filing Date
- 2020-12-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2040-12-04
AI Technical Summary
In the automotive open system architecture, due to the shortage of software resources, overload, task delays or omissions may occur on the vehicle controller. The existing technology lacks standardized methods for alarm offset optimization, affecting resource management efficiency.
An alarm offset optimization device for an automotive open system architecture operating system is designed, including a startup module and an execution module. By presetting the offset table and measuring the CPU load, the alarm offset parameters are optimized and execution for alarm offset optimization is generated. As a result, task execution times are quickly measured under actual operating conditions.
It realizes the optimization of alarm offset according to the specifications of each vehicle controller, solves the problem of resource shortage, improves task execution efficiency, and avoids resource overload and task delay.
Smart Images

Figure CN113032204B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an alarm deviation optimization device for an automobile open system architecture operating system. Background Art
[0002] As more and more electronic devices are used in vehicles, the demand for standardization of the software used in them is also increasing. In response to this, in order to improve the reusability of modules and improve the compatibility of parts between vehicles, an Embedded Software Open Platform based on the Automotive Open System Architecture (AUTOSAR) is being developed.
[0003] The AUTOSAR (AUTomotive Open System Architecture) platform is an operating system in the field of vehicle electronic devices, which is provided with a mechanism for operating control of vehicle controllers.
[0004] The automotive open system architecture platform is being used in more and more places, and the available functions are also becoming more diverse. This automotive open system architecture platform is being extensively applied to the global vehicle market.
[0005] In addition, in the case of controllers for various vehicles, it is a trend to integrate the functions of each other. That is, in the past, various vehicle control functions were performed by controllers for various vehicles, but recently it is changing to allow various vehicle control functions to be used in one vehicle controller. For example, as traditional vehicle controllers, there are integrated body control units (IBU) and integrated control units (ICU), etc., but this integrated form of controller is also being integrated into a communication control unit (CCU).
[0006] As a result, as the number of functions used in a single vehicle controller increases, software resource shortage occurs. In the case of software resource shortage, an overload may occur on the vehicle controller. In addition, a reset or a task to be actually executed may be delayed or omitted. This is not only a problem of the vehicle controller, but also leads to a fatal vehicle defect.
[0007] In order to solve this problem, the current automotive open system architecture platform provides an alarm offset function in the operating system environment.
[0008] Alarm offsets prevent multiple tasks from being executed at once by maximally dispersing the alarm positions used to notify task execution times, thereby avoiding many resources from being allocated. In this way, multiple tasks can be executed without problems.
[0009] However, the method for optimizing the alarm offset is not defined in any specification.
[0010] In the case of a general application software (ASW, Application SoftWare) developer, the alarm offset is set based on information accumulated through a lot of experience, and in the case of a basic software (BSW, Basic SoftWare) developer, the alarm offset is set based on general information.
[0011] Since the optimized value of the alarm offset may be different according to a specific vehicle controller or a specific MCU, when the optimization of the alarm offset is performed according to the specifications of each vehicle controller, the resource shortage phenomenon under the automotive open system architecture operating system can be solved.
[0012] Prior art literature
[0013] Patent Literature
[0014] (Patent Document 1) Korean Patent Publication No. 2012-0060435 Summary of the invention
[0015] Technical issues to be solved
[0016] In this regard, the present invention is created in view of the above situation, and its purpose is to provide the following alarm offset optimization device for an automotive open system architecture operating system, that is, the alarm offset optimization device for an automotive open system architecture operating system optimizes the alarm offset according to the specifications of each vehicle controller, thereby being able to quickly measure the task execution time in an actual running time (RUN Time) environment compared to measuring the task execution time one by one.
[0017] Means of solving the problem
[0018] An alarm offset optimization device for an automotive open system architecture operating system according to a preferred embodiment of the present invention for achieving the above-mentioned purpose may include a startup module and an execution module, wherein the startup module inputs an offset value of a predetermined offset table to an offset parameter value of each alarm information of an alarm setting test file, and the execution module executes the alarm setting test file based on the input offset value to output an execution result for alarm offset optimization.
[0019] The offset table may be configured to include a plurality of alarm information including an alarm number, an alarm name, and an alarm period, and index information connected to each of the alarm information through an offset value.
[0020] The startup module may input an offset value according to the index information as the offset parameter value.
[0021] The execution module may execute the alarm setting test file according to the order of the index information.
[0022] The device may further include an offset table storage unit storing the offset table.
[0023] A load measuring module for measuring a CPU load according to execution of the alarm setting test file may also be included.
[0024] The method may further include a reset module which, when the execution of the alarm setting test file according to the index information is completed, requests the execution module to reset so as to execute the alarm setting test file according to other index information.
[0025] When the execution of the alarm setting test file is completed according to the last index information, the execution module can transmit the execution result to the outside by using a preset communication method.
[0026] The execution result may include a minimum CPU load, a maximum CPU load, and a number of error hook calls.
[0027] The execution module may compare the CPU minimum load, the CPU maximum load, and the number of error hook calls with a predetermined reference value to determine whether the reference value is appropriate.
[0028] The method may further include a creation tool that receives alarm information connected to a task of the AOSA operating system and generates an alarm setting file using the alarm information.
[0029] The method may further include a correction unit for correcting an offset value of the alarm setting file using an offset parameter value to generate the alarm setting test file.
[0030] Effects of the Invention
[0031] According to the alarm offset optimization device of the automotive open system architecture operating system in the preferred embodiment of the present invention, the alarm offset is optimized according to the specifications of each vehicle controller, rather than relying solely on experience. Thus, compared with measuring the task execution time one by one, the effect of being able to quickly measure the task execution time in the actual running time (RUN Time) environment is achieved.
[0032] In addition, an effect capable of resolving resource shortage phenomena in an automotive open system architecture operating system is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a block diagram of an alarm deviation optimization device of an automotive open system architecture operating system according to a preferred embodiment of the present invention.
[0034] Figure 2 is a diagram showing a parameterization process of an alarm offset parameter value.
[0035] Figure 3 is a view showing an offset table.
[0036] Figure 4 is a view showing an alarm offset optimization value according to an offset table.
[0037] Figure 5 It is a sequence diagram of an alarm offset optimization method of an automotive open system architecture operating system according to a preferred embodiment of the present invention.
[0038] Description of Reference Numerals
[0039] 10: Automotive open system architecture operating system
[0040] 100: Production Tools
[0041] 200: Correction Department
[0042] 300: Alarm offset optimization department
[0043] 310: Offset table storage unit
[0044] 320: Start module
[0045] 330: Execution module
[0046] 340: Load measurement module
[0047] 350: Reset module DETAILED DESCRIPTION
[0048] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that when assigning reference numerals to the constituent elements of the various drawings, even if the same constituent elements are shown in different drawings, they may have reference numerals that are as identical as possible. It should also be understood that the preferred embodiments of the present invention will be described below, but the technical ideas of the present invention are not limited to or restricted thereto, and can be modified and implemented in various ways by a person skilled in the art of the present invention.
[0049] Figure 1 It is a block diagram of an alarm deviation optimization device of an automotive open system architecture operating system according to a preferred embodiment of the present invention.
[0050] Reference Figure 1 According to a preferred embodiment of the present invention, the automotive open system architecture operating system 10 may include a production tool 100, a correction unit 200 and an alarm offset optimization unit 300.
[0051] The authoring tool 100 may receive SWP (Software program) information and APP information (USER information) according to user needs. Here, the SWP information may include a tick value, the number of SWP alarms, the period of each SWP alarm, whether the offset of each SWP alarm is changed, and the fixed offset value of the SWP alarm with a fixed offset. Here, the tick value is the basic unit of the alarm.
[0052] APP information may include the number of ASW alarms, the period of each ASW alarm, whether the offset of each ASW alarm has been changed, the fixed offset value of ASW alarms with fixed offsets, the minimum and maximum CPU load, and the minimum number of ErrorHook calls. Error hooks refer to hook routines provided in the Automotive Open System Architecture operating system so that users can choose whether to use services that have errors.
[0053] The authoring tool 100 can combine the SWP information and the APP information according to user needs to generate combined information. Here, the combined information may include the total number of alarms that is a sum of the number of SWP alarms and ASW alarms, the offset value of each alarm, the fixed or changeable information about the offset of each alarm, and the reference value for judging whether the result value is a pass or a fail.
[0054] The offset value (maximum offset value) for each alarm can be set by dividing the maximum period of the task by the Tick value. In one embodiment, when the Tick value is 2.5ms and the alarm period is 10ms, the maximum offset value can be set to 4.
[0055] The fixed or changeable information about the offset of each alarm can make the alarm that should have a fixed offset fixed, and can make the alarm that can have a changeable offset changeable.
[0056] The benchmark value for judging whether the result is a pass or a fail can be judged by the minimum CPU load and the minimum number of error hook calls as APP information, etc.
[0057] The authoring tool 100 can use the combined information to generate an alarm setting file (Rte.c) for alarm setting. In addition, the authoring tool 100 can input the total number of alarms and the name of each alarm, whether the offset of each alarm is changeable, and the tick value into the offset table. In this way, an offset table (Offset Table) can be constructed.
[0058] In addition, each alarm information of the combined information is mapped to a task. When the alarm information about the alarm setting file (Rte.c) is executed, the alarm sounds as the count increases, and the task connected to the alarm is executed. The alarm offset is set so that multiple alarms do not sound at the same time. That is, the alarm offset avoids an increase in CPU load by preventing multiple alarms from sounding at the same time.
[0059] The correction unit 200 may correct the alarm setting file (Rte.c) to generate the alarm setting test file (Rte_Test.c). The correction unit 200 may parameterize the offset value of each alarm information (SetRelAlarm) existing in the alarm setting file (Rte.c). The correction unit 200 may generate an offset parameter setting function (SchM_Init) for parameterizing the offset value of the alarm setting file (Rte.c). The offset values of the offset table may be sequentially input to the offset parameter setting function (SchM_Init).
[0060] In one embodiment, the maximum offset parameter value can be set to the value obtained by dividing the maximum period of the task by the Tick value. The parameterization process of the offset value will be described below. Figure 2 Provide explanation.
[0061] The alarm offset optimization unit 300 may include an offset table storage unit 310 , a startup module 320 , an execution module 330 , a load measurement module 340 , and a reset module 350 .
[0062] The offset table storage unit 310 may store an offset table including index information, alarm information (number, name, cycle), whether the alarm offset is changeable, and an offset value.
[0063] The startup module 320 may input the offset value to the offset parameter setting function (SchM_Init) of the alarm setting test file (Rte_Test.c) in the index order of the offset table.
[0064] The execution module 330 may execute the alarm setting test file (Rte_Test.c) input with the offset value to calculate the CPU minimum load, the CPU maximum load and the number of calls of the error hook according to the offset of each alarm information.
[0065] The load measuring module 340 may measure the CPU load according to the execution of the executing module 330 and transmit the measured value to the executing module 330 .
[0066] The reset module 350 may reset the execution of the alarm setting test file (Rte_Test.c). That is, the reset module 350 may request a reset from the execution module 330 to execute the alarm setting test file (Rte_Test.c) according to other indexes of the offset table.
[0067] When the execution of the alarm setting test file (Rte_Test.c) is completed according to the last index of the offset table, the execution module 330 can store the execution result in the offset table or output the execution result through a separate communication method (Uart, CAN). The execution result of the execution module 330 can be output in the form of Excel or txt documents, and can be used as information for alarm offset optimization.
[0068] Figure 2 is a diagram showing a parameterization process of an alarm offset value.
[0069] Reference Figure 2 , it can be determined that the alarm offset value of the alarm setting file (Rte.c) in the alarm setting test file (Rte_Test.c) is set to the offset parameter value.
[0070] Each alarm information (SetRelAlarm) of the alarm setting file (Rte.c) may include an alarm type, a period, and an offset value.
[0071] In one embodiment, a certain alarm message (SetRelAlarm) may have an alarm type of OsAlarm_5ms, a period of 2, and an offset value of 1. Here, the period of the alarm may be 5ms by multiplying the period of 2 by the Tick value of 2.5ms.
[0072] Another alarm information (SetRelAlarm) may have an alarm type of OsAlarm_10ms_1, a period of 4, and an offset value of 2. Here, the period of the alarm may be 10 ms by multiplying the period of 4 by the Tick value of 2.5 ms.
[0073] Still another alarm information (SetRelAlarm) may have an alarm type of OsAlarm_10ms_2, a period of 4, and an offset value of 3. Here, the period of the alarm may be 10 ms by multiplying the period of 4 by the Tick value of 2.5 ms.
[0074] Another alarm message (SetRelAlarm) may have an alarm type of OsAlarm_20ms, a period of 8, and an offset value of 4. Here, the alarm period may be 20ms by multiplying the period of 8 by the Tick value of 2.5ms.
[0075] Another alarm message (SetRelAlarm) may have an alarm type of OsAlarm_100ms, a period of 40, and an offset value of 5. Here, the period of the alarm may be 100ms by multiplying the period of 40 by the Tick value of 2.5ms.
[0076] The alarm setting file (Rte.c) including such alarm information can be corrected by the correction unit 200 using the alarm setting test file (Rte_Test.c).
[0077] In one embodiment, the alarm information (SetRelAlarm) of one of the alarm setting test files (Rte_Test.c) may have an alarm type of OsAlarm_5ms, a period of 2, and an offset parameter value of OsAlarm_5ms_Offset.
[0078] Another alarm message (SetRelAlarm) may have an alarm type of OsAlarm_10ms_1, a period of 4, and an offset parameter value of OsAlarm_10ms_1_Offset.
[0079] Yet another alarm message (SetRelAlarm) may have an alarm type of OsAlarm_10ms2, a period of 4, and an offset parameter value of OsAlarm_10ms_2_Offset.
[0080] Yet another alarm message (SetRelAlarm) may have an alarm type of OsAlarm_20ms, a period of 8, and an offset parameter value of OsAlarm_2ms_Offset.
[0081] Yet another alarm message (SetRelAlarm) may have an alarm type of OsAlarm_100ms, a period of 40, and an offset parameter value of OsAlarm_100ms_Offset.
[0082] Figure 3 is a view showing an offset table.
[0083] Reference Figure 3 The offset table may include alarm information (alarm name, period), whether the offset has changed, offset parameter value and index information.
[0084] In one embodiment, when the alarm name is Alarm A, it may have a period of 5 ms, a changeable offset, and offset parameter values of 0, 0, 1, 1, 4, 4 (MAX) in the order of index 1, 2, 100, 101, 500, 100. Detailed description of alarm information other than this will be omitted.
[0085] Figure 4 is a view showing an alarm offset optimization value according to an offset table.
[0086] Reference Figure 4 , the offset table may include the execution result of the execution module 330. That is, the offset table may also include the number of error hook calls (reference value: 0), the minimum CPU load (reference value: 40%), the maximum CPU load (reference value: 60%), and whether the reference value is suitable.
[0087] In one embodiment, when the alarm name is Alarm A, the error hook call count may be represented as 56 (NG), 49 (NG), 0, 0, 0, 48 (NG) in the order of index 1, 2, 100, 101, 500, 100. Here, NG means not good.
[0088] Furthermore, in the case of Alarm A, the CPU minimum load may be represented in the order of indexes 1, 2, 100, 101, 500, 100 as 60% (NG), 55% (NG), 15%, 18%, 60% (NG), 70% (NG).
[0089] Furthermore, in the case of Alarm A, the CPU maximum load may be represented as 85% (NG), 81% (NG), 59%, 55%, 70% (NG), 70% (NG) in the order of indexes 1, 2, 100, 101, 500, 100.
[0090] In the case of Alarm A, whether the reference value is suitable can be represented as FAIL, FAIL, PASS, PASS, FAIL, FAIL in the order of index 1, 2, 100, 101, 500, 100. Detailed description of alarm information other than this will be omitted.
[0091] Figure 5 It is a sequence diagram of an alarm offset optimization method of an automotive open system architecture operating system according to a preferred embodiment of the present invention.
[0092] Reference Figure 5 According to a preferred embodiment of the present invention, the alarm offset optimization method of the automotive open system architecture operating system may include an alarm setting test file input step (S510), an offset table generation step (S520), an offset parameter value input step (S530), an alarm setting test file execution step (S540), a CPU load measurement step (S550), an index judgment step (S560), a reset step (S570) and an execution result output step (S580).
[0093] In the alarm setting test file input step (S510), an alarm setting test file for alarm setting may be input. The alarm setting test file may include an offset parameter setting function (SchM_Init) for parameterizing the offset value of each alarm information into an offset parameter value.
[0094] In the offset table generation step ( S520 ), an offset table consisting of index information, alarm information (number, name, cycle), whether the alarm offset is changeable, and an offset value may be generated. The offset table may be included in the offset table storage unit 310 .
[0095] In the offset parameter value input step (S530), the offset value may be input to the offset parameter setting function (SchM_Init) in the index order of the offset table.
[0096] In the alarm setting test file execution step (S540), the alarm setting test file (Rte_Test.c) input with the offset value may be executed in the index order of the offset table to calculate the CPU minimum load, CPU maximum load and error hook call count according to the offset of the alarm information.
[0097] In the CPU load measurement step (S550), the CPU load according to the execution of the alarm setting test file (Rte_Test.c) may be measured.
[0098] In the index determination step (S560), when the CPU minimum load, CPU maximum load and error hook call count according to the offset of the alarm information are calculated, it is determined whether it is the last index of the offset table.
[0099] In the resetting step (S570), the execution of the alarm setting test file (Rte_Test.c) is reset until the CPU minimum load, CPU maximum load, and error hook call count regarding the alarm information according to the last index of the offset table are calculated.
[0100] In the execution result output step (S580), the CPU minimum load, CPU maximum load and error hook call number as the execution result of the entire alarm information are output. The CPU minimum load, CPU maximum load and error hook call number can be stored in the offset table, or can be transmitted to the outside through a communication method such as Uart, CAN, etc. for alarm offset optimization.
[0101] The above description is merely a schematic illustration of the technical concept of the present invention, and a person skilled in the art of the present invention can make various modifications, changes and substitutions without departing from the essential characteristics of the present invention. Therefore, the embodiments and drawings disclosed in the present invention are not used to limit the technical concept of the present invention, but to illustrate it, and the scope of the technical concept of the present invention is not limited by such embodiments and drawings.
[0102] As can be understood by those skilled in the art, the steps and / or operations according to the present invention may occur in a different order, or in parallel, or simultaneously in other embodiments for different epochs, etc.
[0103] According to an embodiment, part or all of the steps and / or operations may be implemented or executed at least in part using one or more processors that drive commands, programs, interactive data structures, clients, and / or servers stored in one or more non-transitory computer-readable media. Exemplarily, one or more non-transitory computer-readable media may be software, firmware, hardware, and / or any combination thereof. In addition, the functions of the "modules" discussed in this specification may be implemented as software, firmware, hardware, and / or any combination thereof.
Claims
1. Alarm deviation optimization device for automotive open system architecture operating system, include: a start module, the start module inputting an offset value of a predetermined offset table into an offset parameter value of each alarm information of the alarm setting test file; as well as an execution module, wherein the execution module executes the alarm setting test file based on the input offset value to output an execution result for alarm offset optimization, The execution results include the minimum CPU load, the maximum CPU load and the number of error hook calls, The execution module compares the CPU minimum load, the CPU maximum load and the number of error hook calls with a predetermined reference value to determine whether the reference value is appropriate.
2. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 1, in, The offset table is configured to include a plurality of alarm information including an alarm number, an alarm name, and an alarm period, and index information connected to each of the alarm information through an offset value.
3. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 2, in, The startup module uses the offset value input according to the index information as the offset parameter value.
4. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 2, in, The execution module executes the alarm setting test file according to the order of the index information.
5. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 1, in, Also includes: An offset table storage unit stores the offset table.
6. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 4, in, Also includes: A load measurement module is provided to measure a CPU load according to the execution of the alarm setting test file.
7. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 4, in, Also includes: A reset module, when the execution of the alarm setting test file according to the index information is completed, the reset module requests the execution module to reset so as to execute the alarm setting test file according to other index information.
8. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 4, in, When the execution of the alarm setting test file is completed according to the last index information, the execution module transmits the execution result to the outside by using a preset communication method.
9. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 1, in, Also includes: A production tool receives alarm information connected to a task of an automotive open system architecture operating system and generates an alarm setting file using the alarm information.
10. The alarm deviation optimization device of the automotive open system architecture operating system as claimed in claim 9, in, Also includes: A correction unit is configured to correct an offset value of the alarm setting file using an offset parameter value to generate the alarm setting test file.
