Automation using Android - Final Year Project for B.E

  • View
    174

  • Download
    1

Embed Size (px)

DESCRIPTION

 

Text of Automation using Android - Final Year Project for B.E

  • Organization Automation Using Android Dept of C.S.E Page 1 KARNATAK LAW SOCIETYS GOGTE INSTITUTE OF TECHNOLOGY UDYAMBAG, BELGAUM 590008 ORGANIZATION AUTOMATION USING ANDROID A Project Report submitted in partial fulfillment of the requirements for the Award of Degree of Bachelor of Engineering in Computer Science & Engineering of the Visvesvaraya Technological University, Belgaum SUBMITTED BY : Amit Walvekar Anup Vanarse [2GI09CS008] [2GI09CS014] Indraneel Deshpande Jayesh Dhoot [2GI09CS038] [2GI09CS039] UNDER THE GUIDANCE OF: Asst. Prof. K. D. Hanabaratti VIII SEMESTER DEPARTMENT OF COMPUTER SCIENCE & ENGG. GOGTE INSTITUTE OF TECHNOLOGY 2012 2013
  • Organization Automation Using Android Dept of C.S.E Page 2 KARNATAK LAW SOCIETYS GOGTE INSTITUTE OF TECHNOLOGY UDYAMBAG, BELGAUM 590008 DEPARTMENT OF COMPUTER SCIENCE & ENGG. CERTIFICATE Certified that the project work entitled ORGANIZATION AUTOMATION USING ANDROID carried out by Mr. Amit Walvekar Mr. Anup Vanarse Mr. Indraneel Deshpande Mr. Jayesh Dhoot bonafide student[s] of Karnatak Law Societys Gogte Institute of Technology, Belgaum, in partial fulfillment for the award of Bachelor of Engineering in Computer Science and Engineering of the Visveshvaraya Technological University, Belgaum during the year 2012-2013. It is certified that all corrections/suggestions indicated for Internal Assessment have been incorporated in the Report deposited in the departmental library. The project report has been approved as it satisfies the academic requirements in respect of Project work prescribed for the said Degree Guide HOD Principal Asst. Prof. K. D. Hanabaratti Dr. R. M. Jogdand Dr. A. S. Deshpande
  • Organization Automation Using Android Dept of C.S.E Page 3
  • Organization Automation Using Android Dept of C.S.E Page 4 ABSTRACT Automation is a way to have things around you happen automatically. The first thing that comes to mind when folks think of automation are robots, flashing lights, complicated electronics and a general feeling that their surrounding is less of a warm place and more of a cold science experiment. However, in most organizations today, you can easily find some simple forms of automation such as: Garage door openers ,Remote Controls ,Irrigation / sprinkler control systems ,Motion activated lights ,Security systems ,Programmable thermostats ,Programmable light timers If you want to keep going, you can throw in dishwasher, clothes washers and dryers, ovens, microwaves, cars, lights and switches. The list goes on and on.
  • Organization Automation Using Android Dept of C.S.E Page 5 ACKNOWLEDGEMENT No project can be successfully completed without timely guidance and moral support of technically equipped and experienced minds. We would like to express our heartfelt gratitude towards our inspirational guide and mentor Asst. Prof. K. D. Hanabaratti, whose firm belief in our capabilities to bring our potential to the forefront, has played a major role in the accomplishment of this project. We owe a debt of gratitude to Dr. A. S. Deshpande, Principal, Gogte Institute Of Technology, Belgaum, for providing us all the support, facilities and cooperation to carry out the project. We sincerely thank Dr. Rashmi M. Jogdand, HOD, Dept. of CSE, without whose moral support this would not have been successful. We also thank the faculty and non-teaching staff of Computer Science and Engineering Department and the library staff for their timely cooperation and much needed assistance. Last but not the least, we would like to thank our parents and friends for their support and understanding without which we would not have been able to complete this project. Project Associates Anup Vanarse Amit Walvekar Jayesh Dhoot Indraneel Deshpande
  • Organization Automation Using Android Dept of C.S.E Page 6 TABLE OF CONTENTS CHAPTER PAGE NO. 1. LITERATURE SURVEY 1 1.1. Android Overview 1 1.2. Java Socket Programming 3 1.3. Port Forwarding In Router 9 1.4. Atmel ATMega16 Microcontroller 14 2. INTRODUCTION 22 2.1. Objective 22 2.2. Module 22 2.3. Basics 22 2.4. Problem Definition 23 2.5. Software Requirement Specification 23 2.6. Hardware Requirement Specification 23 2.7. Scope 24 3. USE-CASE DIAGRAM AND SEQUENCE DIAGRAM 25 3.1. Use-Case Diagram 25 3.2. Sequence Diagram 26 4. SYSTEM DESIGN 27 4.1. Dataflow Model 27 4.2. Hardware Design 28 4.3. Android Application Development Design 32
  • Organization Automation Using Android Dept of C.S.E Page 7 5. IMPLEMENTATION 33 5.1. AVR Programming 33 5.2. Android Application 35 6. RESULT 41 6.1. Snapshots of the Android Application 41 6.2. Snapshots of the Embedded System 50 7. CONCLUSION AND FUTURE IMPROVEMENTS 51 8. APPENDIX A 52 9. BIBLOGRAPHY 53
  • Organization Automation Using Android Dept of C.S.E Page 8 Chapter 1 Literature Survey 1.1. Android Overview Android is an open-source software stack created for a wide array of devices with different form factors [1]. The primary purpose of Android is to create an open software platform available for carriers, OEMs, and developers to make their innovative ideas a reality and to create a successful, real-world product that improves the mobile experience for end users. We also wanted to make sure that there was no central point of failure, where one industry player could restrict or control the innovations of any other. The result is a full, production-quality consumer product whose source is open for customization and porting[5]. 1.1.1 Open Source Android was built from the ground-up to enable developers to create compelling mobile applications that take full advantage of all a handset has to offer [5]. It was built to be truly open. For example, an application can call upon any of the phones core functionality such as making calls, sending text messages, or using the camera, allowing developers to create richer and more cohesive experiences for users. Android is built on the open Linux Kernel[1][6]. Furthermore, it utilizes a custom virtual machine that was designed to optimize memory and hardware resources in a mobile environment. Android is open source; it can be liberally extended to incorporate new cutting edge technologies as they emerge. The platform will continue to evolve as the developer community works together to build innovative mobile applications[6]. 1.1.2 All applications are created equal Android does not differentiate between the phones core applications and third-party applications. They can all be built to have equal access to a phones capabilities
  • Organization Automation Using Android Dept of C.S.E Page 9 providing users with a broad spectrum of applications and services. With devices built on the Android Platform, users are able to fully tailor the phone to their interests[1][5]. They can swap out the phone's home screen, the style of the dialer, or any of the applications. They can even instruct their phones to use their favorite photo viewing application to handle the viewing of all photos [5]. 1.1.3 Breaking down application boundaries Android breaks down the barriers to building new and innovative applications. For example, a developer can combine information from the web with data on an individuals mobile phone such as the users contacts, calendar, or geographic location to provide a more relevant user experience [5]. With Android, a developer can build an application that enables users to view the location of their friends and be alerted when they are in the vicinity giving them a chance to connect[6]. 1.1.4 Fast & easy application development Android provides access to a wide range of useful libraries and tools that can be used to build rich applications [6]. For example, Android enables developers to obtain the location of the device, and allows devices to communicate with one another enabling rich peertopeer social applications. In addition, Android includes a full set of tools that have been built from the ground up alongside the platform providing developers with high productivity and deep insight into their applications[6].
  • Organization Automation Using Android Dept of C.S.E Page 10 1.2. Java Socket Programming The term network programming refers to writing programs that execute across multiple devices (computers), in which the devices are all connected to each other using a network. The java.net package of the J2SE APIs contains a collection of classes and interfaces that provide the low-level communication details, allowing you to write programs that focus on solving the problem at hand [7]. The java.net package provides support for the two common network protocols: TCP: TCP stands for Transmission Control Protocol, which allows for reliable communication between two applications. TCP is typically used over the Internet Protocol, which is referred to as TCP/IP. UDP: UDP stands for User Datagram Protocol, a connection-less protocol that allows for packets of data to be transmitted between applications. 1.2.1 Socket Programming Sockets provide the communication mechanism between two computers using TCP. A client program creates a socket on its end of the communication and attempts to connect that socket to a server. When the connection is made, the server creates a socket object on its end of the communication. The client and server can now communicate by writing to and reading from the socket. The java.net.Socket class represen