skip to main content
research-article

Analyzing an embedded sensor with timed automata in uppaal

Published:24 December 2013Publication History
Skip Abstract Section

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.

References

  1. Abadi, M. and Lamport, L. 1994. An old-fashioned recipe for real time. ACM Trans. Program Lang. Syst. (TOPLAS) 16, 5, 1543--1571. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Alur, R. and Dill, D. L. 1994. A theory of timed automata. Theoretical Comput. Sci. 126, 2, 183--235. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Bourke, T. 2009. Modelling and programming embedded controllers with timed automata and synchronous languages. Ph.D. Dissertation, University of New South Wales.Google ScholarGoogle Scholar
  4. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  5. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  6. Griebling, E. T. 1999. GP2D02 assembly language driver for 68HC12B32 microcontroller. http://home.earthlink.net/∼tdickens/68hc11/code/sharpirhc12.asm.Google ScholarGoogle Scholar
  7. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  8. Intel Corporation. 1994. MCS®51 microcontroller family user's manual.Google ScholarGoogle Scholar
  9. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  10. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  11. 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 ScholarGoogle ScholarDigital LibraryDigital Library
  12. Lynch, N. and Vaandrager, F. 1996. Forward and backward simulations. Part II: Timing-based systems. Inf. Comput. 128, 1, 1--25. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Ramsey, A. 2001. Interfacing the GP2D02 to a Microchip PIC. Encoder: Newslet. Seattle Robotics Soc.Google ScholarGoogle Scholar
  14. Schlich, B. 2008. Model checking of software for microcontrollers. Ph.D. Dissertation, RWTH Aachen University.Google ScholarGoogle Scholar
  15. Sharp Corporation. 1997. GP2D02: Compact, high sensitive distance measuring sensor.Google ScholarGoogle Scholar
  16. Stoelinga, M. I. 2002. Alea jacta est: Verification of probabilistic, real-time and parametric systems. Ph.D. Dissertation, Katholieke Universiteit Nijmegen, The Netherlands.Google ScholarGoogle Scholar
  17. 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 ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Analyzing an embedded sensor with timed automata in uppaal

                      Recommendations

                      Comments

                      Login options

                      Check if you have access through your login credentials or your institution to get full access on this article.

                      Sign in

                      Full Access

                      PDF Format

                      View or Download as a PDF file.

                      PDF

                      eReader

                      View online with eReader.

                      eReader
                      About Cookies On This Site

                      We use cookies to ensure that we give you the best experience on our website.

                      Learn more

                      Got it!