Affiliation:
1. University at Buffalo, Buffalo, USA
2. Queen Mary University of London, London, United Kingdom
Abstract
We develop a session types based framework for implementing and validating rate-based message passing systems in Internet of Things (IoT) domains. To model the indefinite repetition present in many embedded and IoT systems, we introduce a timed process calculus with a periodic recursion primitive. This allows us to model rate-based computations and communications inherent to these application domains. We introduce a definition of rate based session types in a binary session types setting and a new compatibility relationship, which we call rate compatibility. Programs which type check enjoy the standard session types guarantees as well as rate error freedom --- meaning processes which exchanges messages do so at the same rate. Rate compatibility is defined through a new notion of type expansion, a relation that allows communication between processes of differing periods by synthesizing and checking a common superperiod type. We prove type preservation and rate error freedom for our system, and show a decidable method for type checking based on computing superperiods for a collection of processes. We implement a prototype of our type system including rate compatibility via an embedding into the native type system of Rust. We apply this framework to a range of examples from our target domain such as Android software sensors, wearable devices, and sound processing.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference39 articles.
1. C2PS: A Digital Twin Architecture Reference Model for the Cloud-Based Cyber-Physical Systems
2. Android. 2009. Motion Sensors. https://developer.android.com/guide/topics/sensors/sensors_motion Android. 2009. Motion Sensors. https://developer.android.com/guide/topics/sensors/sensors_motion
3. Manifest sharing with session types
4. Global Progress in Dynamically Interleaved Multiparty Sessions
5. 2023. Bluetooth Core Specification. 5.4 2023. Bluetooth Core Specification. 5.4
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献