Managing Concurrent Queues for Efficient In- Vehicle Gateways

Miltos D. Grammatikakis, S. Ninidakis, Georgios Kornaros, Dimitris Bakoyiannis, N. Mouzakitis, Alexis Staridas
{"title":"Managing Concurrent Queues for Efficient In- Vehicle Gateways","authors":"Miltos D. Grammatikakis, S. Ninidakis, Georgios Kornaros, Dimitris Bakoyiannis, N. Mouzakitis, Alexis Staridas","doi":"10.12720/jcm.18.5.333-339","DOIUrl":null,"url":null,"abstract":"In modern vehicles, electrical control units communicate over multiple in-vehicle networks via domainor zone-oriented gateway architectures. This work examines efficient frame transfer across incoming and outgoing Controller Area Network (CAN) interfaces at a gateway. In our embedded platform prototype, each CAN interface of a CAN-to-CAN gateway is controlled independently by a corresponding Portable Operating System Interface (POSIX) thread. Inter-thread communication and synchronization are implemented using shared data structures, either lock-free concurrent queues or traditional lock-based circular queues that embody single-producer single-consumer (SPSC) principles. Our experimental framework provides a realistic open automotive platform that integrates multiple CAN interfaces. An Odroid XU3 device acts as a gateway, providing two Universal Asynchronous Receiver- Transmitter (UART) to CAN interfaces that lead to Raspberry Pi 3B nodes (connected to CAN via Serial Peripheral Interface (SPI)). To increase communication reliability and performance by minimizing frame loss and improving the egress CAN frame rate, low-level parameters at the gateway are optimized, especially the inter-character delay of the UART-to-CAN interfaces. Our experiments show that the frame waiting time in the queue is shorter for the concurrent queue, while relaying messages is equally fast, reaching a maximum output rate of ~380 frames/s for large enqueue rates near saturation. Power consumption is almost four times higher for the concurrent queue implementation.","PeriodicalId":14832,"journal":{"name":"J. Comput. Mediat. Commun.","volume":"306 1","pages":"333-339"},"PeriodicalIF":0.0000,"publicationDate":"2023-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Comput. Mediat. Commun.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.12720/jcm.18.5.333-339","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In modern vehicles, electrical control units communicate over multiple in-vehicle networks via domainor zone-oriented gateway architectures. This work examines efficient frame transfer across incoming and outgoing Controller Area Network (CAN) interfaces at a gateway. In our embedded platform prototype, each CAN interface of a CAN-to-CAN gateway is controlled independently by a corresponding Portable Operating System Interface (POSIX) thread. Inter-thread communication and synchronization are implemented using shared data structures, either lock-free concurrent queues or traditional lock-based circular queues that embody single-producer single-consumer (SPSC) principles. Our experimental framework provides a realistic open automotive platform that integrates multiple CAN interfaces. An Odroid XU3 device acts as a gateway, providing two Universal Asynchronous Receiver- Transmitter (UART) to CAN interfaces that lead to Raspberry Pi 3B nodes (connected to CAN via Serial Peripheral Interface (SPI)). To increase communication reliability and performance by minimizing frame loss and improving the egress CAN frame rate, low-level parameters at the gateway are optimized, especially the inter-character delay of the UART-to-CAN interfaces. Our experiments show that the frame waiting time in the queue is shorter for the concurrent queue, while relaying messages is equally fast, reaching a maximum output rate of ~380 frames/s for large enqueue rates near saturation. Power consumption is almost four times higher for the concurrent queue implementation.
为高效车载网关管理并发队列
在现代车辆中,电气控制单元通过面向域或区域的网关架构在多个车载网络上进行通信。这项工作检查了在网关的传入和传出控制器局域网(CAN)接口上有效的帧传输。在我们的嵌入式平台原型中,CAN-to-CAN网关的每个CAN接口都由相应的可移植操作系统接口(POSIX)线程独立控制。线程间通信和同步是使用共享数据结构实现的,要么是无锁并发队列,要么是传统的基于锁的循环队列,后者体现了单生产者单消费者(SPSC)原则。我们的实验框架提供了一个现实的开放汽车平台,集成了多个CAN接口。Odroid XU3设备充当网关,提供两个通用异步接收-发送器(UART)到CAN接口,这些接口连接到树莓派3B节点(通过串行外设接口(SPI)连接到CAN)。为了通过减少帧丢失和提高出口CAN帧速率来提高通信可靠性和性能,对网关的底层参数进行了优化,特别是对UART-to-CAN接口的字符间延迟进行了优化。我们的实验表明,并发队列中的帧等待时间更短,而中继消息同样快,在接近饱和的大队列速率下达到最大输出速率~380帧/秒。并发队列实现的功耗几乎高出四倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信