当前位置:网站首页>Similarities and differences between commonAPI and AUTOSAR AP communication management

Similarities and differences between commonAPI and AUTOSAR AP communication management

2022-06-13 11:04:00 AUTOSAR technical support and training

Portal ==>> AutoSAR Practical series 300 speak 「 candy Autosar」 General catalogue

1 CommonAPI Introduction to

CommonAPI By GENIVI Developed C++ frame , Used to follow SOA Inter process and network communication . Its goal is to provide a unified application program interface for different communication frameworks or protocols (API). Use CommonAPI The foundation of the project is the existence of service definitions shared by developers . So ,CommonAPI Used Franca Interface definition language (Franca IDL). This language allows the use of methods 、 Events and fields define Services , And project specific data type specifications , For example, structures or enumerations , Then there will be a specific online representation . This is similar to SOA Message format specifications exist in , Because it contains all the information that the service or client needs to encode and decrypt the message . From this Franca In file ,core-tools , For service provider ( be called Skeletons ) And consumers ( be called Proxies ) The generated code . The former contains the default implementation of the specified method , The latter has methods to internally handle calls to service providers and the entire network process . then , The developer will pass C++ Code generated by inheritance extension , Without actually modifying the generated code file . This generated code uses code from CommonAPI Runtime Methods , This is from the bottom

原网站

版权声明
本文为[AUTOSAR technical support and training]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/164/202206131056151638.html