当前位置:网站首页>【AutoSAR 九 C/S原理架构】
【AutoSAR 九 C/S原理架构】
2022-07-02 23:49:00 【柯宇谦】
AutoSAR 九 C/S原理架构
1 同步调用
- 同步调用Server是可以设置时限(Timeout)的,一旦超过时限就Return(timeout)。
- 同步是在Rte_Call的时候开始计时
2 异步调用
2.1 带时限 Timeout
- 异步调用的时限和同步调用的时限是不同的,同步是在Rte_Call的时候开始计时,异步是在RequestResult的时候开始计时。
2.2 循环等待 Polling
- 隔一段时间去索取一下结果,如果没有就继续执行下面的代码,直到下一个间隔再去索取一遍,最后直到索取到结果为止。
2.3 触发 Trigger
- 触发的方式有点像是ADC中断,一旦ADC转换完成会产生一个中断,在中断中将ADC数据做一些初步处理。
- 一旦Server执行完成后,就触发一个回调的Runnable2函数执行,将Server的数据Return到这个Runnable2中做一些初步处理(比如放入某个全局变量中供其他代码使用)
边栏推荐
猜你喜欢
Linux软件:如何安装Redis服务
详解用OpenCV的轮廓检测函数findContours()得到的轮廓拓扑结构(hiararchy)矩阵的意义、以及怎样用轮廓拓扑结构矩阵绘制轮廓拓扑结构图
Vulkan-性能及精细化
MySQL 23道经典面试吊打面试官
pod生命周期详解
Introduction of UART, RS232, RS485, I2C and SPI
Rust所有权(非常重要)
Hundreds of continuous innovation to create free low code office tools
Multiprocess programming (I): basic concepts
Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
随机推荐
多进程编程(五):信号量
[MCU project training] eight way answering machine
Install docker and use docker to install MySQL
使用jenkins之二Job
[shutter] image component (the placeholder | transparent_image transparent image plug-in is loaded into the memory)
Briefly talk about other uses of operation and maintenance monitoring
Automated defect analysis in electron microscopic images-论文阅读笔记
Multiprocess programming (V): semaphores
关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
【JetCache】JetCache的配置说明和注解属性说明
LeedCode1480.一维数组的动态和
【单片机项目实训】八路抢答器
[shutter] image component (image component introduction | image constructor | image.network constructor | image.asset constructor)
Multi process programming (III): message queue
Automated defect analysis in electronic microscopic images
1.12 - 指令
v8
Free we media essential tools sharing
Attributeerror: 'tuple' object has no attribute 'layer' problem solving
[pulsar document] concepts and architecture