Abstract
An infrared sensor is modeled and analyzed in Uppaal. The sensor typifies the sort of component that engineers regularly integrate into larger systems by writing interface hardware and software.
In all, three main models are developed. In the first model, the timing diagram of the sensor is interpreted and modeled as a timed safety automaton. This model serves as a specification for the complete system. A second model that emphasizes the separate roles of driver and sensor is then developed. It is validated against the timing diagram model using an existing construction that permits the verification of timed trace inclusion, for certain models, by reachability analysis (i.e., model checking). A transmission correctness property is also stated by means of an auxiliary automaton and shown to be satisfied by the model.
A third model is created from an assembly language driver program, using a direct translation from the instruction set of a processor with simple timing behavior. This model is validated against the driver component of the second timing diagram model using the timed trace inclusion validation technique. The approach and its limitations offer insight into the nature and challenges of programming in real time.
- Abadi, M. and Lamport, L. 1994. An old-fashioned recipe for real time. ACM Trans. Program Lang. Syst. (TOPLAS) 16, 5, 1543--1571. Google Scholar
Digital Library
- Alur, R. and Dill, D. L. 1994. A theory of timed automata. Theoretical Comput. Sci. 126, 2, 183--235. Google Scholar
Digital Library
- Bourke, T. 2009. Modelling and programming embedded controllers with timed automata and synchronous languages. Ph.D. Dissertation, University of New South Wales.Google Scholar
- Bourke, T., David, A., Larsen, K. G., Legay, A., Lime, D., Nyman, U., and Wasowski, A. 2011. New results on timed specifications. In Proceedings of the 20th International Workshop on Recent Trends in Algebraic Development Techniques (WADT'10). Revised Selected Papers, T. Mossakowski and H.-J. Kreowski, Eds., Lecture Notes in Computer Science Series, vol. 7137, Springer-Verlag, Berlin, 175--192. Google Scholar
Digital Library
- Bourke, T. and Sowmya, A. 2008. Automatically transforming and relating Uppaal models of embedded systems. In Proceedings of the 8th ACM International Conference on Embedded Software (EMSOFT'08). ACM, Press, 59--68. Google Scholar
Digital Library
- Griebling, E. T. 1999. GP2D02 assembly language driver for 68HC12B32 microcontroller. http://home.earthlink.net/∼tdickens/68hc11/code/sharpirhc12.asm.Google Scholar
- Henzinger, T. A., Nicollin, X., Sifakis, J., and Yovine, S. 1994. Symbolic model checking for real-time systems. Inf. Comput. 111, 2, 192--244. Google Scholar
Digital Library
- Intel Corporation. 1994. MCS®51 microcontroller family user's manual.Google Scholar
- Jensen, H. E., Larsen, K. G., and Skou, A. 2000. Scaling up Uppaal: Automatic verification of real-time systems using compositionality and abstraction. In Proceedings of the 6th International Symposium on Formal Techniques for Real-Time and Fault-Tolerance (FTRTFT'00). M. Joseph, Ed., Lecture Notes in Computer Science Series, vol. 1926, Springer-Verlag, Berlin, 19--30. Google Scholar
Digital Library
- Kaynar, D. K., Lynch, N., Segala, R., and Vaandrager, F. 2006. The Theory of Timed I/O Automata. Synthesis Lectures on Computer Science. Morgan & Claypool Publishers, San Rafael, CA. Google Scholar
Digital Library
- Larsen, K. G., Pettersson, P., and Wang, Y. 1997. Uppaal in a nutshell. Int. J. Soft. Tools Technol. Transfer 1, 1--2, 134--152.Google Scholar
Digital Library
- Lynch, N. and Vaandrager, F. 1996. Forward and backward simulations. Part II: Timing-based systems. Inf. Comput. 128, 1, 1--25. Google Scholar
Digital Library
- Ramsey, A. 2001. Interfacing the GP2D02 to a Microchip PIC. Encoder: Newslet. Seattle Robotics Soc.Google Scholar
- Schlich, B. 2008. Model checking of software for microcontrollers. Ph.D. Dissertation, RWTH Aachen University.Google Scholar
- Sharp Corporation. 1997. GP2D02: Compact, high sensitive distance measuring sensor.Google Scholar
- Stoelinga, M. I. 2002. Alea jacta est: Verification of probabilistic, real-time and parametric systems. Ph.D. Dissertation, Katholieke Universiteit Nijmegen, The Netherlands.Google Scholar
- Vaandrager, F. and de Groot, A. 2006. Analysis of a biphase mark protocol with Uppaal and PVS. Formal Aspects Comput. 18, 4, 433--458. Google Scholar
Cross Ref
Index Terms
Analyzing an embedded sensor with timed automata in uppaal
Recommendations
Interrupt Timed Automata: verification and expressiveness
We introduce the class of Interrupt Timed Automata (ITA), a subclass of hybrid automata well suited to the description of timed multi-task systems with interruptions in a single processor environment.
While the reachability problem is undecidable for ...
Efficient detection of Zeno runs in timed automata
FORMATS'07: Proceedings of the 5th international conference on Formal modeling and analysis of timed systemsZeno runs, where infinitely many actions occur in finite time, may inadvertently arise in timed automata specifications. Zeno runs may compromise the reliability of formal verification, and few model-checkers provide the means to deal with them: this ...
Alternating timed automata
A notion of alternating timed automata is proposed. It is shown that such automata with only one clock have decidable emptiness problem over finite words. This gives a new class of timed languages that is closed under boolean operations and which has an ...






Comments