ZSD2023-Tutorial_ZBus the lightweight and flexible Zephyr bus.pdf

編號:144864 PDF 24頁 321.33KB 下載積分:VIP專享
下載報告請您先登錄!

ZSD2023-Tutorial_ZBus the lightweight and flexible Zephyr bus.pdf

1、Tutorial:ZBus-the lightweight and flexible Zephyr message busRodrigo Peixoto,Edge-UFAL/Citriniorodrigopex1Thread AThread BThread CCallback DCallback ESubscribersListenersAsynchronousSynchronousTimeSpaceSynchronizationDecoupledCoupled ZBusChan 1Chan 2Chan 3Chan N2Bus topologies3ONE-TO-ONEONE-TO-MANYM

2、ANY-TO-MANYExample of use4 ZBUSProposed solution5 APP INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore threadTRANSMISSION DONELoRa threadTimerWQ ZBUSStep 016Main thread ZBUSStep 027PROJECT INFOMain thread ZBUSStep 038PROJECT INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMock

3、 ZBUSStep 049PROJECT INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore thread ZBUSStep 0510PROJECT INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore threadTRANSMISSION DONELoRa thread ZBUSStep 0611PROJECT INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAY

4、LOADCore threadTRANSMISSION DONELoRa threadTimerWQ ZBUSStep 0712PROJECT INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore threadTRANSMISSION DONELoRa threadTimerWQ ZBUSStep 0813 APP INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore threadTRANSMISSION DONELoRa thre

5、adTimerWQ ZBUSStep 0914 APP INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore threadTRANSMISSION DONELoRa threadTimerWQFix execution sequence!ZBUSStep 1015 APP INFOSTART TRIGGERSensor threadMain threadSENSOR DATAMockPAYLOADCore threadTRANSMISSION DONELoRa threadTimerWQTips and tric

6、ks16 Avoid excessive use of them,they are running during the publishing processListeners17 Think of them as an ISR.They must run as quickly as possible Do not sleep inside listeners.It will increase the publishing latencyListeners18 Use zbus_chan_const_msg inside listeners.The channels are already l

7、ocked!Use a work queue or separated thread instead of executing something heavy inside a listener Do not use subscribers when losses and duplications cannot be toleratedSubscribers19 PR with confirmed channels sample submitted Use listeners in conjunction with message queues Take care with publishin

8、g loopsUndesired loops20 Avoid loops on the bus diagram Observer 1Chan AObserver 2Chan BUndesired loops21 Take care with chained publishing loops Observer 1Chan AObserver 3Chan BObserver 2Observer 4Chan CChan D Do not use ZBus functions inside an ISRISR22 Postpone that by using work queues insteadExtras23 The channels can be used as a concurrent property system Isolate the hardware code using channels Use channels as modules interface in/outQuestions&Answers24Thank you!

友情提示

1、下載報告失敗解決辦法
2、PDF文件下載后,可能會被瀏覽器默認打開,此種情況可以點擊瀏覽器菜單,保存網頁到桌面,就可以正常下載了。
3、本站不支持迅雷下載,請使用電腦自帶的IE瀏覽器,或者360瀏覽器、谷歌瀏覽器下載即可。
4、本站報告下載后的文檔和圖紙-無水印,預覽文檔經過壓縮,下載后原文更清晰。

本文(ZSD2023-Tutorial_ZBus the lightweight and flexible Zephyr bus.pdf)為本站 (2200) 主動上傳,三個皮匠報告文庫僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對上載內容本身不做任何修改或編輯。 若此文所含內容侵犯了您的版權或隱私,請立即通知三個皮匠報告文庫(點擊聯系客服),我們立即給予刪除!

溫馨提示:如果因為網速或其他原因下載失敗請重新下載,重復下載不扣分。
客服
商務合作
小程序
服務號
折疊
午夜网日韩中文字幕,日韩Av中文字幕久久,亚洲中文字幕在线一区二区,最新中文字幕在线视频网站