CN102385530B - Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation - Google Patents

Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation Download PDF

Info

Publication number
CN102385530B
CN102385530B CN 201110229808 CN201110229808A CN102385530B CN 102385530 B CN102385530 B CN 102385530B CN 201110229808 CN201110229808 CN 201110229808 CN 201110229808 A CN201110229808 A CN 201110229808A CN 102385530 B CN102385530 B CN 102385530B
Authority
CN
China
Prior art keywords
rte
autosar
event
code
model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN 201110229808
Other languages
Chinese (zh)
Other versions
CN102385530A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN 201110229808 priority Critical patent/CN102385530B/en
Publication of CN102385530A publication Critical patent/CN102385530A/en
Application granted granted Critical
Publication of CN102385530B publication Critical patent/CN102385530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to an operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation, which comprises the following steps: (a) extracting the element information of an automotive open system architecture (AUTOSAR) object, and unloading into a self-defined model of an RTE code automatic generation tool; (b) extracting a communication requirement and OS module information configured by a user, calculating a new OS object which needs to be required by RTE for realizing a communication application program interface (API), and applying theresources from the OS; and (c) converting a self-defined OS object model of the RTE code automatic generation tool into a standard AUTOSAR object model. The OS resource distribution conflict solutionhas the beneficial effect that the model is analyzed again every time when the method is invoked, and the user is permitted to repeatedly configure the OS during an electronic control unit (ECU) configuration stage without affecting the automatic generation of the RTE code. In addition, the RTE code automatic generation tool can convert the new requirement of the OS object into the requirement ofthe standard AUTOSAR object model, and the requirement of the standard AUTOSAR object model is transferred to the ECU configuration tool, which is convenient for the requirement to be represented to the user in the configuration interface of the OS module.

Description

A kind of OS resource allocation conflict solution that is applied to the generation of RTE code
Technical field
The present invention relates to the automotive electronics software development technique, especially a kind of OS resource allocation conflict solution that is applied to the generation of RTE code.
Background technology
AUTOSAR (AUTomotive Open System ARchitecture) is automotive electronics open system framework, and RTE (Run-Time Environment) is the core of this framework.RTE is the C code that is generated by the automatic Core Generator of RTE code, and the AUTOSAR object that the latter receives ECU (Electronic Control Unit) configuration tool transmission is input, generates the C code that meets the AUTOSAR standard.The automatic RTE code that generates, add component software source code, basic module code and basic module configuration code (being generated by the ECU configuration tool) together compiling link just become the executable file that finally may operate on the ECU, wherein basic module refers to OS (Operating System) and COM (Communication), i.e. operating system module and communication module.
RTE need be mutual with AUTOSAR COM and OS, for the latter, RTE had both needed to use the OS object that has existed, and (user uses the OS object of ECU configuration tool configuration, as task or alarm), may need new OS object again, the visit that is used for the monitoring run entity such as an aperiodic alarm is overtime.
The OS object of the new application of the automatic Core Generator of RTE code can not conflict with the OS object that the user has disposed, can not apply for the event that had been used among the OS such as the former.For making things convenient for the automatic Core Generator of RTE code and ECU configuration tool to carry out alternately with regard to the use of OS object, AUTOSAR standard-required both sides use identical OS object storage format.
Yet according to AUTOSAR standard method opinion, it is repeatedly to the layoutprocedure of OS that the user uses the ECU configuration tool, and this keeps consistency with regard to the use of OS object with regard to requiring ECU configuration tool and RTE code Core Generator.In addition, the automatic Core Generator of RTE code itself does not have the interface, and it is integrated in the ECU configuration tool as a plug-in unit.That is to say that RTE code Core Generator will be according to the demand of user's config update to the OS object, and this demand is pass on the configuration tool to ECU, presented at its OS block configuration interface by the ECU configuration tool.
Therefore, face the automatic Core Generator of RTE code to the new demand of OS object and the coherence request of user configured OS object, need a kind of OS resource allocation conflict solution that the RTE code generates that be applied to.
Summary of the invention
In order to solve the automatic Core Generator of above-mentioned RTE code and ECU configuration tool with regard to the coherence request of the use problem of OS object, the OS resource allocation conflict solution that the object of the present invention is to provide a kind of RTE of being applied to code to generate.
The present invention solves the technical scheme that its technical matters adopts: the OS resource allocation conflict solution that this RTE of being applied to code generates, and step is as follows:
(1), extract the element information of AUTOSAR object, and dump in the self-defining model of the automatic Core Generator of RTE code; Because the element institutional framework of AUTOSAR object is absorbed in the description of each module that constitutes total system, with the model of C speech level very big-difference is arranged, therefore a set of model that the automatic Core Generator of RTE code is self-defined generates based on the exploitation of the template instruction of the maker of template and final C code automatically with convenience.
(2), extract the OS module information that communication requirement and user have disposed, calculate the new OS object (as OS event, OS alarm) of RTE for realizing the required dependence of communication API, apply for these resources to OS then;
(3), the self-defining OS object model of the automatic Core Generator of RTE code is converted to the AUTOSAR object model of standard.
As preferably, the step that described step (2) operation is handled comprises:
(2.1) run entity in the traversal task, if server end run entity and provide service with the method for synchronization, the automatic Core Generator of RTE code is its application OS event, is used for the communication synchronization of client run entity and server end run entity;
(2.2) run entity in the traversal task, if client run entity and its access services have overtime requirement, the automatic Core Generator of RTE code is used for RTE and monitors the overtime of this run entity for its application OS alarm;
(2.3) the OS alarm of mentioning for step (2.2) will be associated with it suitable OS event.
As preferably, the step that described step (3) operation is handled comprises:
(3.1) all OS resources of the automatic Core Generator application of RTE code in the removing AUTOSAR object, comprise OS event, OS alarm and relevant OS counter thereof, and the reference parameter that comprises in the task, what these parameters were quoted is by the OS event automatic Core Generator application of RTE code and that be used for activating this task;
(3.2) the OS alarm of the automatic Core Generator application of traversal RTE code changes into the object model of AUTOSAR type with each alarm, and adds in the Module model of AUTOSAR object;
(3.3) the OS event of the automatic Core Generator application of traversal RTE code, each event is changed into the object model of AUTOSAR type, upgrade the reference parameter that task that this event activates comprises, and this event is added in the Module model of AUTOSAR object.
As preferably, in the described step (2.3), to corresponding OS event, its treatment step comprises with the OS alarm association of the automatic Core Generator application of RTE code:
(2.3.1) if with the client in the ECU-communication for service mode, directly find the synchronous event of server end run entity association, and quoting this event under in alarm, preserving;
(2.3.2) if stride client-communication for service mode of ECU, then in the Ergodic Theory by the list of thing of the automatic Core Generator application of RTE code, if the run entity of event correlation is the run entity of this alarm association simultaneously, quoting the event of finding under then in alarm, preserving.
The beneficial effect that the present invention has is:
All extract the AUTOSAR object model at every turn when 1) the present invention calls again and reanalyse new demand, can allow the user to dispose the OS module repeatedly at the ECU configuration phase, do not influence the automatic generation of RTE code simultaneously.
2) the present invention changes into the AUTOSAR object model of standard with the automatic Core Generator of RTE code to the new demand of OS object, and passes to the ECU configuration tool, presents to the user by it in OS modules configured interface.
3) analytical model of the present invention and calculate can the existing function of multiplexing RTE code Core Generator to these two steps of new demand of OS object improves the software repeated usage degree.
Description of drawings
Fig. 1 is the AUTOSAR object component model figure of back generation by analysis.
Fig. 2 is the AUTOSAR object task model figure of back generation by analysis.
Fig. 3 is that the automatic Core Generator of RTE code calculates OS object process flow diagram.
Fig. 4 is OS event application process figure.
Fig. 5 is OS alarm application process figure.
Fig. 6 is the OS resource model figure that the user has disposed in the example system.
Fig. 7 is that the self-defined object model of conversion is the process flow diagram of AUTOSAR type object.
Fig. 8 is example system completing steps 3) back OS resource model figure.
Fig. 9 is example system change user's configuration and calls this method gained OS resource model figure again.
Embodiment
The invention will be further described below in conjunction with drawings and Examples:
Embodiments of the invention:
One, extracts the element information of AUTOSAR object, and dump in the self-defining model of the automatic Core Generator of RTE code.
Have 2 assemblies in the example system as shown in Figure 1, each self-contained run entity.Wherein assembly Comp1 comprises run entity Runnable_Client, the latter by Port_Client to server end run entity Runnable_Server request service, and this services request be have synchronously overtime.
Have 2 tasks in the example system as shown in Figure 2, each self-contained run entity.Wherein task task _ Client comprises run entity Runnable_Client, and by periodically alarming Alarm_Cyc periodically activates operation; Task task _ Server comprises run entity Runnable_Server.
Two, extract the OS module information that communication requirement and user have disposed, calculate the new OS object (as OS event, OS alarm) of RTE for realizing the required dependence of communication API, apply for these resources to OS then.
Flowchart text as shown in Figure 3 step 2) overall process handled.
If server end run entity and provide service with the method for synchronization, the automatic Core Generator of RTE code is its application OS event.By OS event application process figure shown in Figure 4, the run entity Runnable_Server in the example system meets the requirements, so OS event: Event_Server of RTE code Core Generator application.
If client run entity and its access services have overtime requirement, the automatic Core Generator of RTE code is its application OS alarm.By OS alarm application process figure as shown in Figure 5, run entity Runnable_Client meets the requirements in the example system, so OS alarm: Alarm_Cyc of RTE code Core Generator application, and is associated with Event_Server.
Three, the self-defining OS object model of the automatic Core Generator of RTE code is converted to the AUTOSAR object model of standard.
According to the analysis to step 3) example system is carried out following processing:
Remove all OS resources of the automatic Core Generator application of RTE code in the AUTOSAR object, comprise OS event, OS alarm and relevant OS counter thereof, and the reference parameter that comprises in the task, what these parameters were quoted is by the OS event automatic Core Generator application of RTE code and that be used for activating this task;
The OS alarm of the automatic Core Generator application of traversal RTE code changes into the object model of AUTOSAR standard with each alarm, and adds in the Module model of AUTOSAR object;
The OS event of traversal RTE code automatic Core Generator application changes into the object model of AUTOSAR standard with each event, upgrades the reference parameter that task that this event activates comprises, and this event is added in the Module model of AUTOSAR object;
In this example system, the user has been configured two events and Event_Custom_1 and Event_Custom_2, as shown in Figure 6, takies mask 0x1 and 0x2 respectively; Also have two alarm Alarm_Custom_1 and Alarm_Custom_2 in the simultaneity factor, wherein Alarm_Custom_2 is used for arranging event Event_Custom_2.
Through two steps in front, this example system has newly been applied for an OS event (Event_Server) and OS alarm (Alarm_Cyc) respectively, more set by step 3) convert thereof into AUTOSAR type object, and flow path switch figure is as shown in Figure 7.
After example system as shown in Figure 8 converts AUTOSAR type object to, for new OS event Event_Server distributes mask 0x3, and be associated with new alarm Alarm_Cyc.
Yet if at this moment the user changes the OS block configuration, deletion event Event_Custom_1 calls after this method converting objects as shown in Figure 9 again, and at this moment new events Event_Server is assigned to idle mask 0x1.This switch process has taken into full account analysis and the result of calculation of first two steps as can be seen, saves the consumption to the OS object.
Though describe the present invention by above-mentioned instantiation; but the present invention is not limited to above-mentioned example; related personnel for this area; can be according to technical scheme of the present invention and thought; make other various changes and distortion, and all these should belong in the protection domain of claim of the present invention.

Claims (1)

1. one kind is applied to the OS resource allocation conflict solution that the RTE code generates, and it is characterized in that: step is as follows:
(1), extract the element information of AUTOSAR object, and dump in the self-defining model of the automatic Core Generator of RTE code;
(2), extract the OS module information that communication requirement and user have disposed, calculate RTE for realizing the new OS object of the required dependence of communication API, apply for these resources to OS then;
The step that described step (2) operation is handled comprises:
(2.1) run entity in the traversal task, if server end run entity and provide service with the method for synchronization, the automatic Core Generator of RTE code is its application OS event, is used for the communication synchronization of client run entity and server end run entity;
(2.2) run entity in the traversal task, if client run entity and its access services have overtime requirement, the automatic Core Generator of RTE code is used for RTE and monitors the overtime of this run entity for its application OS alarm;
(2.3) the OS alarm of mentioning for step (2.2) will be associated with it corresponding OS event;
(3), the self-defining OS object model of the automatic Core Generator of RTE code is converted to the AUTOSAR object model of standard;
The step that described step (3) operation is handled comprises:
(3.1) all OS resources of the automatic Core Generator application of RTE code in the removing AUTOSAR object, comprise OS event, OS alarm and relevant OS counter thereof, and the reference parameter that comprises in the task, what these parameters were quoted is by the OS event automatic Core Generator application of RTE code and that be used for activating this task;
(3.2) the OS alarm of the automatic Core Generator application of traversal RTE code changes into the object model of AUTOSAR type with each alarm, and adds in the Module model of AUTOSAR object;
(3.3) the OS event of the automatic Core Generator application of traversal RTE code, each event is changed into the object model of AUTOSAR type, upgrade the reference parameter that task that this event activates comprises, and this event is added in the Module model of AUTOSAR object.
CN 201110229808 2011-08-11 2011-08-11 Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation Active CN102385530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110229808 CN102385530B (en) 2011-08-11 2011-08-11 Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110229808 CN102385530B (en) 2011-08-11 2011-08-11 Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation

Publications (2)

Publication Number Publication Date
CN102385530A CN102385530A (en) 2012-03-21
CN102385530B true CN102385530B (en) 2013-09-25

Family

ID=45824967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110229808 Active CN102385530B (en) 2011-08-11 2011-08-11 Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation

Country Status (1)

Country Link
CN (1) CN102385530B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981826B (en) * 2012-10-31 2015-10-21 浙江大学 A kind of method optimizing LTC resource utilization
CN105530288B (en) * 2015-11-26 2021-10-26 普华基础软件股份有限公司 Data interaction method
CN115242565B (en) * 2021-04-22 2023-12-15 华为技术有限公司 System architecture, communication method and equipment for realizing DDS communication based on AUTOSAR
CN115826938B (en) * 2022-01-29 2023-11-17 宁德时代新能源科技股份有限公司 Method and device for generating and using real-time operating system, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008138770A1 (en) * 2007-05-15 2008-11-20 Siemens Aktiengesellschaft Method for the computer-aided knowledge protection of a software system
CN102073549A (en) * 2011-01-18 2011-05-25 浙江大学 Communication method between assemblies on basis of resource sharing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008138770A1 (en) * 2007-05-15 2008-11-20 Siemens Aktiengesellschaft Method for the computer-aided knowledge protection of a software system
CN102073549A (en) * 2011-01-18 2011-05-25 浙江大学 Communication method between assemblies on basis of resource sharing

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
SmartC模型与代码一致性双向生成方法及开发平台;张莉苹等;《浙江大学学报》;20110131;第45卷(第1期);20-29 *
SmartSAR RTE——基于AUTOSAR的汽车电子软件运行时环境及其生成;彭威;《中国优秀硕士学位论文全文数据库》;20110715;138-188 *
刘凯.面向汽车电子嵌入式领域的运行时环境中间件——SmartRTE.《中国优秀硕士学位论文全文数据库》.2008,
张莉苹等.SmartC模型与代码一致性双向生成方法及开发平台.《浙江大学学报》.2011,第45卷(第1期),20-29.
彭威.SmartSAR RTE——基于AUTOSAR的汽车电子软件运行时环境及其生成.《中国优秀硕士学位论文全文数据库》.2011,138-188.
面向汽车电子嵌入式领域的运行时环境中间件——SmartRTE;刘凯;《中国优秀硕士学位论文全文数据库》;20080715;C035-11 *

Also Published As

Publication number Publication date
CN102385530A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
US9430294B2 (en) Elastic management framework
CN112583883A (en) Method and apparatus for aggregating telemetry data in a marginal environment
CN103077024B (en) A kind of device and method supporting the on-demand customization of SaaS application flow and operation
CN108400992B (en) System and method for realizing streaming communication data protocol analysis software framework
CN105183452B (en) Spring AOP-based remote protocol service system for monitoring power distribution equipment
CN102385530B (en) Operating system (OS) resource distribution conflict solution applied to run-time environment (RTE) code generation
US20130091491A1 (en) Self-Documentation of Development Systems
US20130191436A1 (en) Building large scale infrastructure using hybrid clusters
CN109117252B (en) Method and system for task processing based on container and container cluster management system
CN105893055B (en) Flow engine hardware and software platform triggering method
CN101834845A (en) SOAP client protocol encapsulating method based on TCP short connection
CN102043837A (en) Data integration system and method
da Rosa Righi et al. Enhancing performance of IoT applications with load prediction and cloud elasticity
Bergmayr et al. Cloud modeling languages by example
CN105404530B (en) It is a kind of to realize easy deployment and the system and method using private clound
US9836282B2 (en) Separation of concerns between information technology services models
CN102043836A (en) Data adapting device and method
CN104363303A (en) Method for synchronizing asynchronously cached data
Köhler et al. VCE-A versatile cloud environment for scientific applications
CN107453959B (en) Network card management method and device
CN105577807A (en) Cloud computing data resource scheduling WEB management platform
CN109614096A (en) A method of it is converted based on UML Requirements Modeling process use-case and activity
CN113110920B (en) Operation method, device, equipment and storage medium of block chain system
CN104484230A (en) Multiple satellite data centre workflow scheduling algorithm on basis of near data calculation principle
Chandakanna et al. A model view controller based Self-Adjusting Clustering Framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Gu Zonghua

Inventor after: Li Hong

Inventor after: Liu Min

Inventor after: Zhong Xiaofeng

Inventor after: Geng Lili

Inventor after: Wu Chaohui

Inventor before: Gu Zonghua

Inventor before: Li Hong

Inventor before: Liu Min

Inventor before: Zhong Xiaofeng

Inventor before: Geng Lili

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: GU ZONGHUA LI HONG LIU MIN ZHONG XIAOFENG GENG LILI TO: GU ZONGHUA LI HONGLIU MIN ZHONG XIAOFENG GENG LILI WU ZHAOHUI

C14 Grant of patent or utility model
GR01 Patent grant