Power Aware Communication Platform for an Autonomous Sailboat

Total Page:16

File Type:pdf, Size:1020Kb

Power Aware Communication Platform for an Autonomous Sailboat Master Thesis Power Aware Communication Platform for an Autonomous Sailboat by David Frey March 2009 – October 2009 Supervisors: Andreas Schranzhofer Dr Clemens Moser Professor: Prof. Dr. Lothar Thiele Abstract Building autonomous sailing boats is a difficult and not yet well understood problem. A group of mechanical engineers of ETH Zurich committed to build such a vessel to participate in Microtransat, a contest to cross the At- lantic ocean. The communication platform developed in the scope of this thesis not only provides communication services to the existing control system of the boat, it also adds robustness by supervising it and employs a power management system which prolongs the responsiveness of the system in low energy situ- ations. The platform was assembled from its basic building blocks that include an embedded computer, voltage and temperature measurement, a GPS receiver as well as a GSM and an Iridium modem. The power consumption of all parts was measured and the main energy consumers were connected such that they can be powered off when not used. The intricacies of high-sea communication and different transmission de- vices are dealt with by the platform and hidden from the sailing system, which only has to implement a high-level interface over an internal link. Thus it can send status and control messages in both directions and it is reachable in emergency situations. Also using the internal link, the sailing system is supervised for responsive- ness by the communication platform and rebooted, should an error condition occur. To be prepared for periods on the sea with little energy input from the solar panels, a power management system has been developed that can influence the energy consumption of the communication platform as well as the sail- ing system. Using a forecast of the expected solar power input an algorithm optimizes the power consumption such that the minimal service level of the boat is maximized. Several different algorithms have been compared in sim- ulation based on statistical and historical data and the most competitive was implemented to run on the boat. Table Of Contents Abstract................................................................................................................................................3 1 Introduction.......................................................................................................................................1 1.1 The Microtransat challenge......................................................................................................1 1.1.1 Avalon, an autonomous sailing boat...............................................................................2 1.2 Problem Setting........................................................................................................................3 1.3 Approach..................................................................................................................................4 1.4 Results......................................................................................................................................4 1.5 Contributions............................................................................................................................5 2 Hardware...........................................................................................................................................6 2.1 Overview of the Boat...............................................................................................................6 2.2 Overview of the Communication platform..............................................................................9 2.3 Platform Components............................................................................................................10 2.3.1 Main Switch.................................................................................................................10 2.3.2 Rebooting of Sailing Computer....................................................................................11 2.3.3 Iridium..........................................................................................................................12 2.3.4 GSM.............................................................................................................................13 2.3.5 GPS...............................................................................................................................13 2.3.6 Serial Communication..................................................................................................13 2.3.7 Temperature and Humidity Sensors.............................................................................13 2.3.8 Voltage and Current Sensors........................................................................................14 2.3.9 Camera.........................................................................................................................14 2.3.10 External LED..............................................................................................................14 2.4 Waterproof casing..................................................................................................................14 3 Software...........................................................................................................................................16 3.1 Overview................................................................................................................................16 3.1.1 Programming Language and Naming Conventions.....................................................17 3.1.2 Software Requirements................................................................................................17 3.1.3 Software structure........................................................................................................19 3.2 Inter-Process Communication................................................................................................22 3.2.1 Shared Memory............................................................................................................23 3.2.2 Semaphores..................................................................................................................23 3.2.3 Signals..........................................................................................................................24 3.2.4 Files..............................................................................................................................24 3.2.5 Network protocol to Sailing Computer........................................................................24 3.3 Components...........................................................................................................................26 3.3.1 Watchdog......................................................................................................................26 3.3.2 Power Manager............................................................................................................30 3.3.3 Message Manager.........................................................................................................31 3.3.4 DataLogger...................................................................................................................35 4 Power Management.........................................................................................................................40 4.1 Problem Setting......................................................................................................................40 4.1.1 Assumptions.................................................................................................................40 4.1.2 Variability of Power Consumption...............................................................................41 4.1.3 Objective......................................................................................................................44 4.1.4 Metric...........................................................................................................................44 4.2 Method...................................................................................................................................49 4.2.1 Simulation Data............................................................................................................49 4.2.2 Algorithms tested..........................................................................................................50 4.3 Results....................................................................................................................................54 4.3.1 Historical Data..............................................................................................................54 4.3.2 Statistical Data..............................................................................................................55 4.4 Discussion..............................................................................................................................56 5 Conclusion.......................................................................................................................................58 5.1 Future work............................................................................................................................58 6 Appendix..........................................................................................................................................60
Recommended publications
  • Stackable Lcc/Lcd Oven Instruction Manual
    C-195 P/N 156452 REVISION W 12/2007 STACKABLE LCC/LCD OVEN INSTRUCTION MANUAL Model Atmosphere Volts Amps Hz Heater Phase Watts LCC/D1-16-3 Air 240 14.8 50/60 3,000 1 LCC/D1-16N-3 Nitrogen 240 14.0 50/60 3,000 1 LCC/D1-51-3 Air 240 27.7 50/60 6,000 1 LCC/D1-51N-3 Nitrogen 240 27.7 50/60 6,000 1 Model numbers may include a “V” for silicone free construction. Model numbers may begin with the designation LL *1-*, indicating Models without HEPA filter. Prepared by: Despatch Industries 8860 207 th St. West Lakeville, MN 55044 Customer Service 800-473-7373 NOTICE Users of this equipment must comply with operating procedures and training of operation personnel as required by the Occupational Safety and Health Act (OSHA) of 1970, Section 6 and relevant safety standards, as well as other safety rules and regulations of state and local governments. Refer to the relevant safety standards in OSHA and National Fire Protection Association (NFPA), section 86 of 1990. CAUTION Setup and maintenance of the equipment should be performed by qualified personnel who are experienced in handling all facets of this type of system. Improper setup and operation of this equipment could cause an explosion that may result in equipment damage, personal injury or possible death. Dear Customer, Thank you for choosing Despatch Industries. We appreciate the opportunity to work with you and to meet your heat processing needs. We believe that you have selected the finest equipment available in the heat processing industry.
    [Show full text]
  • The Lcc 4.X Code-Generation Interface
    The lcc 4.x Code-Generation Interface Christopher W. Fraser and David R. Hanson Microsoft Research [email protected] [email protected] July 2001 Technical Report MSR-TR-2001-64 Abstract Lcc is a widely used compiler for Standard C described in A Retargetable C Compiler: Design and Implementation. This report details the lcc 4.x code- generation interface, which defines the interaction between the target- independent front end and the target-dependent back ends. This interface differs from the interface described in Chap. 5 of A Retargetable C Com- piler. Additional infomation about lcc is available at http://www.cs.princ- eton.edu/software/lcc/. Microsoft Research Microsoft Corporation One Microsoft Way Redmond, WA 98052 http://www.research.microsoft.com/ The lcc 4.x Code-Generation Interface 1. Introduction Lcc is a widely used compiler for Standard C described in A Retargetable C Compiler [1]. Version 4.x is the current release of lcc, and it uses a different code-generation interface than the inter- face described in Chap. 5 of Reference 1. This report details the 4.x interface. Lcc distributions are available at http://www.cs.princeton.edu/software/lcc/ along with installation instruc- tions [2]. The code generation interface specifies the interaction between lcc’s target-independent front end and target-dependent back ends. The interface consists of a few shared data structures, a 33-operator language, which encodes the executable code from a source program in directed acyclic graphs, or dags, and 18 functions, that manipulate or modify dags and other shared data structures. On most targets, implementations of many of these functions are very simple.
    [Show full text]
  • Linux Assembly HOWTO Linux Assembly HOWTO
    Linux Assembly HOWTO Linux Assembly HOWTO Table of Contents Linux Assembly HOWTO..................................................................................................................................1 Konstantin Boldyshev and François−René Rideau................................................................................1 1.INTRODUCTION................................................................................................................................1 2.DO YOU NEED ASSEMBLY?...........................................................................................................1 3.ASSEMBLERS.....................................................................................................................................1 4.METAPROGRAMMING/MACROPROCESSING............................................................................2 5.CALLING CONVENTIONS................................................................................................................2 6.QUICK START....................................................................................................................................2 7.RESOURCES.......................................................................................................................................2 1. INTRODUCTION...............................................................................................................................2 1.1 Legal Blurb........................................................................................................................................2
    [Show full text]
  • Intro to C Programming 1
    Introduction to C via Examples Last update: Cristinel Ababei, January 2012 1. Objective The objective of this material is to introduce you to several programs in C and discuss how to compile, link, and execute on Windows or Linux. The first example is the simplest hello world example. The second example is designed to expose you to as many C concepts as possible within the simplest program. It assumes no prior knowledge of C. However, you must allocate significant time to read suggested materials, but especially work on as many examples as possible. 2. Working on Windows: Example 1 To get started with learning C, I recommend using a simple and general/generic IDE with a freeC/C++ compiler. For example, Dev-C++ is a nice compiler system for windows. Download and install it on your own computer from here: http://www.bloodshed.net/devcpp.html In my case, I installed it in M:\Dev-Cpp, where I created a new directory M:\Dev-Cpp\cristinel to store all projects I will work on. Inside this new directory, I created yet one more M:\Dev- Cpp\cristinel\project1, where I’ll store the files for the first program, which is simply the famous “hello world” program. We’ll create a new project directory for each new program; this way we keep thing nicely organized in individual directories. We create a program by creating a new project in Dev-C++. So, start Dev-C++ and create a new project. In the dialog window, select “Console Application” as the type of project and name it hello.
    [Show full text]
  • What's New in Omnis Studio 8.1.7
    What’s New in Omnis Studio 8.1.7 Omnis Software April 2019 48-042019-01a The software this document describes is furnished under a license agreement. The software may be used or copied only in accordance with the terms of the agreement. Names of persons, corporations, or products used in the tutorials and examples of this manual are fictitious. No part of this publication may be reproduced, transmitted, stored in a retrieval system or translated into any language in any form by any means without the written permission of Omnis Software. © Omnis Software, and its licensors 2019. All rights reserved. Portions © Copyright Microsoft Corporation. Regular expressions Copyright (c) 1986,1993,1995 University of Toronto. © 1999-2019 The Apache Software Foundation. All rights reserved. This product includes software developed by the Apache Software Foundation (http://www.apache.org/). Specifically, this product uses Json-smart published under Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0) The iOS application wrapper uses UICKeyChainStore created by http://kishikawakatsumi.com and governed by the MIT license. Omnis® and Omnis Studio® are registered trademarks of Omnis Software. Microsoft, MS, MS-DOS, Visual Basic, Windows, Windows Vista, Windows Mobile, Win32, Win32s are registered trademarks, and Windows NT, Visual C++ are trademarks of Microsoft Corporation in the US and other countries. Apple, the Apple logo, Mac OS, Macintosh, iPhone, and iPod touch are registered trademarks and iPad is a trademark of Apple, Inc. IBM, DB2, and INFORMIX are registered trademarks of International Business Machines Corporation. ICU is Copyright © 1995-2003 International Business Machines Corporation and others.
    [Show full text]
  • Porting GCC for Dunces
    Porting GCC for Dunces Hans-Peter Nilsson∗ May 21, 2000 ∗Email: <[email protected]>. Thanks to Richard Stallman <[email protected]> for guidance to letting this document be more than a master's thesis. 1 2 Contents 1 Legal notice 11 2 Introduction 13 2.1 Background . 13 2.1.1 Compilers . 13 2.2 This work . 14 2.2.1 Result . 14 2.2.2 Porting . 14 2.2.3 Restrictions in this document . 14 3 The target system 17 3.1 The target architecture . 17 3.1.1 Registers . 17 3.1.2 Sizes . 18 3.1.3 Addressing modes . 18 3.1.4 Instructions . 19 3.2 The target run-time system and libraries . 21 3.3 Simulation environment . 21 4 The GNU C compiler 23 4.1 The compiler system . 23 4.1.1 The compiler parts . 24 4.2 The porting mechanisms . 25 4.2.1 The C macros: tm.h ..................... 26 4.2.2 Variable arguments . 42 4.2.3 The C file: tm.c ....................... 43 4.2.4 The machine description: md . 43 4.2.5 The building process of the compiler . 54 4.2.6 Execution of the compiler . 57 5 The CRIS port 61 5.1 Preparations . 61 5.2 The target ABI . 62 5.2.1 Fundamental types . 62 3 4 CONTENTS 5.2.2 Non-fundamental types . 63 5.2.3 Memory layout . 64 5.2.4 Parameter passing . 64 5.2.5 Register usage . 65 5.2.6 Return values . 66 5.2.7 The function stack frame .
    [Show full text]
  • In Using the GNU Compiler Collection (GCC)
    Using the GNU Compiler Collection For gcc version 6.1.0 (GCC) Richard M. Stallman and the GCC Developer Community Published by: GNU Press Website: http://www.gnupress.org a division of the General: [email protected] Free Software Foundation Orders: [email protected] 51 Franklin Street, Fifth Floor Tel 617-542-5942 Boston, MA 02110-1301 USA Fax 617-542-2652 Last printed October 2003 for GCC 3.3.1. Printed copies are available for $45 each. Copyright c 1988-2016 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being \Funding Free Software", the Front-Cover Texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the section entitled \GNU Free Documentation License". (a) The FSF's Front-Cover Text is: A GNU Manual (b) The FSF's Back-Cover Text is: You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development. i Short Contents Introduction ::::::::::::::::::::::::::::::::::::::::::::: 1 1 Programming Languages Supported by GCC ::::::::::::::: 3 2 Language Standards Supported by GCC :::::::::::::::::: 5 3 GCC Command Options ::::::::::::::::::::::::::::::: 9 4 C Implementation-Defined Behavior :::::::::::::::::::: 373 5 C++ Implementation-Defined Behavior ::::::::::::::::: 381 6 Extensions to
    [Show full text]
  • Proceedings of IEEE 27 International Symposium on Parallel And
    Proceedings of IEEE 27th International Symposium on Parallel and Distributed Processing IPDPS 2013 Advance Program Abstracts Los Alamitos, California Washington • Tokyo Copyright © 2013 by The Institute of Electrical and Electronics Engineers, Inc. All rights reserved. Copyright and Reprint Permissions: Abstracting is permitted with credit to the source. Libraries may photocopy beyond the limits of US copyright law, for private use of patrons, those articles in this volume that carry a code at the bottom of the first page, provided that the per-copy fee indicated in the code is paid through the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923. Other copying, reprint, or republication requests should be addressed to: IEEE Copyrights Manager, IEEE Service Center, 445 Hoes Lane, P.O. Box 133, Piscataway, NJ 08855-1331. The papers in this book comprise the proceedings of the meeting mentioned on the cover and title page. They reflect the authors’ opinions and, in the interests of timely dissemination, are published as presented and without change. Their inclusion in this publication does not necessarily constitute endorsement by the editors, the IEEE Computer Society, or the Institute of Electrical and Electronics Engineers, Inc. IEEE Computer Society Order Number E4971 BMS Part Number CFP13023-PRT ISBN 978-0-7685-4971-2 Additional copies may be ordered from: IEEE Computer Society IEEE Service Center IEEE Computer Society Customer Service Center 445 Hoes Lane Asia/Pacific Office 10662 Los Vaqueros Circle P.O. Box 1331 Watanabe
    [Show full text]
  • Quartely Human Rights Reports Vol 1 Number 3.Pdf
    VOLUME I NUMSER 3 jucy august september 1999 1 / All ON 40. ' jj: 4• J'd? cI • . b' l •• ' i)i • L' • IN / Li F' I' Ik• U KENYA HUMAN RIGHTS COMMISSION Quarterly HUMAN RIGHTS Report Volume I Number 3 Kenya Human Bights Commission 1000 Board of Directors \ lakan NItittia, (hau Njeri Kabcbcri, Jue- Cijair \laiiia Kiai 1ickna Kithinji \Jaiiiiii \Iazrui \IvarnIa I\ivasarii \Villy \ lut iliga, L'veculite I)ireclor Programs Co-ordinator Brigit Moraa \'sanibui Kin sat Iii Accountant Monitoring and Research Juliet Kituvi '\jugulsa Iutahi Administration Staff sIutun1a Ruteere James Cathoga 1'sa Kiiru hlaxiniilla \Vckcsa Nkk Ndungi \'incetit \lusebe Advocacy Repher Aniisdo ()(iessda I.un1uI11)a 1)anicl Nvakuncli \\sfuIa Buke Intern Mugambi Kiai Niaria Blakensiciner Human Rights Education and Outreach Janies Nduko Jaiic i'huo ©KHRC. 1999 ISBN 9966-911-02-9 Kenya 1 luinasi Rights (Snisinission 1)0 Box 41079. Nairobi. Kenya Tel: (251-2) 571999/8 Fax: (254-2) 574997 E-mail: khrcJ,africaonlinc.co.ke \(I) v\v\v.ltIi.ca/par(ucrs/klII( All pii,tN of this publication niav be tepiocluceci frce1; provided the Kenya ilusnan Rights (:oriiiissioii is diii', ac kliowie(lgcd. l>ri istcd in Kenya Photographs courtesy of I)mly \alum & Last :1 /i WOO 5iaiu/aid Corer I'ho/o,'rap/i: Re.ci(/e,,Ls /.t Ia//sure liii, \thobi th'nwmlnztiug ai,isl !he rabhing of/heir Iasu/ MISSION STATEMENT Ihe Kenya I lunian Rights (ommission (K.ii RC) is i non-governmental In('ml)('rsliip organization founded in 1992. It has an obscrvei' status wili the Africaui ( ; OIiuiliiSsiOii on Human and People's Rights.
    [Show full text]
  • UMLS KNOWLEDGE SOURCES 14Th Edition - January Release 2003AA DOCUMENTATION
    01/01/2003 UMLS KNOWLEDGE SOURCES 14th Edition - January Release 2003AA DOCUMENTATION 0. INTRODUCTION 0.1 What's New for the 2003AA UMLS 0.1.0 Introduction 0.1.1 Metathesaurus 0.1.2 Semantic Network 0.1.3 SPECIALIST Lexicon and Lexical Programs 0.1.4 UMLS Knowledge Source Server 0.2 Introduction to the UMLS Documentation 1. OVERVIEW OF THE UMLS PROJECT 1.1 Purpose 1.2 The Knowledge Sources Development Strategy 1.3 Sources of Additional Information 2. METATHESAURUS 2.0 Introduction 2.1 Source Vocabularies 2.2 Organization by Concept 2.2.1 Order of Precedence Among Concept Names 2.2.2 Strings With Multiple Meanings 2.3 Relationships Between Different Concepts 2.3.1 Relationships in the Metathesaurus 2.3.2 Contexts in the Metathesaurus 2.4 Concept and String Attributes 2.5 Data Elements 2.5.0. Introduction 2.5.1 Concept Names 2.5.2 Relationships 2.5.3 Attributes 2.5.4 Vocabulary Source Information and Contexts 2.6 Concept Name Indexes 2.6.0 Introduction 2.6.1 Word Index 2.6.1.1 Description 2.6.1.2 Definition of a Word 2.6.1.3 Word Index Example 2.6.2 Normalized Word Index 2.6.2.1 Description 2.6.2.2 Definition of Normalized Word i 2.6.2.3 Normalized Word Example 2.6.3 Normalized String Index 2.6.3.1 Description 2.6.3.2 Definition of Normalized String 2.6.3.3 Normalized String Example 2.6.4 Word Index Programs 2.7 File Format 2.7.0 Introduction 2.7.1 ASCII Relational Format 2.7.1.1 General Description 2.7.1.1.1 Data Files 2.7.1.1.2 Ancillary Files 2.7.1.1.3 Columns and Rows 2.7.1.2 Descriptions of Each File 2.7.1.2.1 Relation Relation (MRFILES)
    [Show full text]
  • A Minimalist's Retargetable C Compiler
    April 2, 1996 A Minimalist’s Retargetable C Compiler Christopher W. Fraser, AT&T Bell Laboratories David R. Hanson, Princeton University http://www.cs.princeton.edu/software/lcc Copyright Ó1995 C.W. Fraser and D. R. Hanson A Minimalist’s Retargetable C Compiler: Page 1 April 2, 1996 Optimize Our Time • economize source code fits in a book retargetable cross compiles • compile fast • emit code we can use — requires compiling the full language • good local code; e.g., automatics in registers, but no global optimizations • lcc is a 1.2 MB literate program a single source generates the executable and the camera-ready book • Ramsey, Literate programming simplified, IEEE Software 11, 9/94 Copyright Ó1995 C.W. Fraser and D. R. Hanson A Minimalist’s Retargetable C Compiler: Page 2 April 2, 1996 Statistics • 12 K lines of target-independent code • 700 lines for each of three targets (MIPS R3000, SPARC, Intel x86) • 1K lines of code-generator generator (or 500 in Icon) • 400 KB text segment includes all code generators • compiles itself in half the time that gcc does • speed of emitted code usually is within 20% of cc and gcc (without -O) Copyright Ó1995 C.W. Fraser and D. R. Hanson A Minimalist’s Retargetable C Compiler: Page 3 April 2, 1996 Storage Management • generality of malloc/free is often unnecessary in compilers • allocations occur at many times, most deallocations occur at one time int a; void f(int b) { int c; a = b + c; } allocation algorithms based on lifetimes are better stack allocation « garbage collection • arena-based allocation: allocate from large arenas, deallocate entire arenas allocations are nearly as efficient as stack allocation deallocations are essentially free simplifies code: encourages applicative algorithms • Hanson, Fast allocation and deallocation of memory based on object lifetimes, SPE 20, 1/90 Copyright Ó1995 C.W.
    [Show full text]
  • Supported and Compatible Compilers – Release 2019B
    Supported and Compatible Compilers – Release 2019b A number of MathWorks products or product features require that you have a third-party compiler installed on your system. The tables below outline the compilers that are supported by various MathWorks products. These compilers are provided by a number of vendors and are available under a variety of commercial, academic, or open source terms; visit the providers’ websites for further information. Please see Polyspace documentation for the list of compilers that Polyspace supports in the current release. See Supported Interfaces to Other Languages for information about using MATLAB with other programming languages. Windows MinGW is a supported C/C++ compiler which is available free of charge. Download MinGW now. Note: • Microsoft Visual Studio 2019 is supported as of R2019b. (Support for MEX and S-Functions were included with R2019a Update 3) • Intel Parallel Studio XE 2015 for C/C++ and Fortran are not supported as of R2019b. • Intel Parallel Studio XE 2016 for C/C++ and Fortran are not supported as of R2019b. mathworks.com MATLAB Product Family – Release 2019b Fixed Point HDL HDL Audio MATLAB MATLAB Coder GPU Coder SimBiology Designer Coder Verifier Toolbox For MEX-file For all features For all features For For For For DPI For compilation, accelerated accelerated accelerated and TLM validating and Compiler loadlibrary, computation computation testbench component generating and external simulation generation audio usage of plugins MATLAB Engine and MAT-file APIs MinGW 6.3 C/C++ (Distributor:
    [Show full text]