High Bandwidth Sensors.pdf

编号:144797 PDF 41页 1.39MB 下载积分:VIP专享
下载报告请您先登录!

High Bandwidth Sensors.pdf

1、#EMBEDDEDOSSUMMITHigh Bandwidth SensorsYuval Peress,GoogleEmail:Discord:yuval#5515GitHub:yperessAgendaWhat are high bandwidth sensors and why should you care?The evolution of sensors in ZephyrNew feature:streaming sensor dataWhat are high bandwidth sensors?Sensors that provide more than X samples/se

2、cond?Sensors that provide more than X bytes/second?Any sensor whos data pipeline is a bottleneck.1.Application calls fetch1.Application calls fetch2.Driver performs bus transactions to get the data1.Application calls fetch2.Driver performs bus transactions to get the data3.Application reads channels

3、 from driver cacheProblems:Application blocks during I/OData processing assumes driver is lockedFixed memory owned by driverNo blocking during bus I/OData processing does not require driver owned cacheFlexible memory use via mempool#Add these to your prj.confCONFIG_SENSOR=yCONFIG_SENSOR_ASYNC_API=yE

4、nabling the async API#EMBEDDEDOSSUMMITOne-shot dataSENSOR_DT_READ_IODEV(my_reader,/IODev name DT_CHOSEN(lid_accel),/Sensor node to read SENSOR_CHAN_ACCEL_XYZ/One or more channels to read);RTIO_DEFINE_WITH_MEMPOOL(sensor_read_rtio,/RTIO name 8,/Submit queue size 8,/Completion queue size 32,/Number of

5、 memory blocks 64,/Block size(bytes)4 /Block alignment(bytes);Setting up the readerSENSOR_DT_READ_IODEV(my_reader,/IODev name DT_CHOSEN(lid_accel),/Sensor node to read SENSOR_CHAN_ACCEL_XYZ/One or more channels to read);RTIO_DEFINE_WITH_MEMPOOL(sensor_read_rtio,/RTIO name 8,/Submit queue size 8,/Com

6、pletion queue size 32,/Number of memory blocks 64,/Block size(bytes)4 /Block alignment(bytes);Setting up the readerAllows us to delay processingAllows us to control how memory is managedSmall blocks for one-shot readingLarge blocks for streaming fast sensorsLots of small blocks for mixed useWhy use

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(High Bandwidth Sensors.pdf)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠