project progress report jmk35

Upload: jkohjk

Post on 07-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 Project Progress Report Jmk35

    1/8

    3rd

    Pro Project Progress Report

    Project Title:Treetap Android Phone Interface

    Supervisor:Michael Hayes

    Student Name:Joel Koh

    Student ID Number:17236631

    Student Email:

    [email protected]

  • 8/6/2019 Project Progress Report Jmk35

    2/8

    Abstract

    This project is the development of an Android application that controls a TreeTap device

    from a Smartphone via Bluetooth. The Android application shall be able to run scans to

    sample data from the TreeTap device, download data from the TreeTap device to the

    phone, view information from the stored data, and edit various settings of the TreeTapdevice. At this stage, the basic user interface designs have been made. Examples of

    Android applications are being looked at before the TreeTap Android application is

    implemented.

  • 8/6/2019 Project Progress Report Jmk35

    3/8

    Project Overview

    TreeTap is a device developed in the University of Canterbury to measure the stiffness of

    trees using acoustic signals through the trees. The aim of TreeTap is only to sample and

    store these acoustic signals while processing of the signals is done externally on a PC [1].

    Examples of uses of TreeTap include measuring the elasticity of pine trees [2].

    Smartphone applications have been rapidly growing in the recent years, such as using an

    Android phone as a wireless control head for terminal radios [3]. In this project, anAndroid application is to be developed to control the TreeTap device via Bluetooth. The

    application will be able to control all the existing functionalities of the TreeTap device as

    well as having extra functionalities such as storing the GPS location of the measurementsas well as being able to view the stored acoustic signals.

  • 8/6/2019 Project Progress Report Jmk35

    4/8

    Progress to Date

    The design of the system is shown in Figure 1. The TreeTap device is connected to a

    Bluetooth module via a UART interface. An Android phone is able to connect to the

    Bluetooth module via Bluetooth. An application on the Android phone provides a user

    interface to control the TreeTap device via this link.

    Figure 1. Block diagram of the system.

    The design of the user interface of the TreeTap Android application is as follows:

    The main screen of the TreeTap Android application is shown in Figure 2. From the main

    screen, the phone can be connected or disconnected to or from a TreeTap device, run a

    scan to sample the data of the acoustic waves from the TreeTap device, download thedata already stored on the device, view saved data stored on the phone, and edit the

    settings of the TreeTap device. If the phone is not connected to a TreeTap device, the

    option to run the scan and to download data from the device will not be available and will

    be grayed out.

    Figure 2. Android application main screen when (a) not connected to a TreeTap device;(b) connected to a TreeTap device.

    Android

    Phone

    Bluetooth

    Module

    Treetap

    Device

    User

    Bluetooth

    Link

    UART

    Treetap

    Status:

    Not connected

    Connect

    Run scan

    Download data from device

    View saved data

    Settings

    Treetap

    Status:

    Connected to device ID 15

    Disconnect

    Run scan

    Download data from device

    View saved data

    Settings

  • 8/6/2019 Project Progress Report Jmk35

    5/8

    From the main screen, pressing on the Connect button will bring up the Bluetooth

    settings menu. From here, Bluetooth devices can be scanned for, paired and connected to.However, this menu will show all Bluetooth devices and the user will have to connect to

    a TreeTap device that can be recognized by the TreeTap Android application.

    Figure 3. Built in Android Bluetooth Settings menu.

    Running a scan from the TreeTap Android application will begin to sample data from theTreeTap device and the data will be automatically stored on the phone along with the

    time and GPS location determined by the phone. A pop up box will prompt the user to

    either save or discard this data.

    The user can also download all the data that is stored in the memory of the TreeTap

    device onto the phone. However, this data will not have the time and GPS location stored.

    This functionality can be deprecated if the TreeTap device uses a model that does notrequire internal memory but all scans must go through the Android application.

    Data stored on the phone can be viewed. Data stored will be arranged in foldersaccording to the date, then according to the time within the folders shown in Figure 4.

    Individual data can be viewed, displaying the waveform of the stored signal, the time and

    date it was taken along with its GPS location, shown in Figure 5. Other information of thewaveform shall be displayed as well but has not been looked into at this stage.

    Bluetooth Settings

    Bluetooth Devices

    Scan for Devices

    Bluetooth Headset

    Treetap Device 6

    Treetap Device 15

  • 8/6/2019 Project Progress Report Jmk35

    6/8

    Figure 4. Arrangement of data stored by the TreeTap Android application.

    Figure 5. Viewing data stored by the TreeTap Android application

    Various settings of the TreeTap device can be viewed and changed as well from theTreeTap Android application such as the number of acoustic waves to generate and

    sample. Again however, these settings have not been looked into at this stage.

    Developing Android applications is done in Eclipse IDE and written in Java. An Androidemulator can be used to run and test the applications; however this lacks various

    capabilities of an actual phone such as Bluetooth capabilities. At this stage, the design

    described above has been made. I am still looking at some examples of Android

    applications and API demos to try to implement the user interface design for the TreeTapAndroid application.

    Treetap - Saved Data

    2011-5-7

    2011-5-4

    2011-4-30

    2011-5-8

    Treetap - Saved Data

    2011-5-8

    18:56:36

    18:55:21

    18:54:59

    09:01:39

    08:58:44

    Treetap - Saved Data

    2011-5-8 18:56:36

    Latitude : -43.520936

    Longitude : 172.583064

  • 8/6/2019 Project Progress Report Jmk35

    7/8

    Remaining Tasks

    Most of the remaining work is to implement the Android application as described above.

    More information on the functionalities of the user interface is also required. Work also

    needs to be done in configuring the TreeTap device and its Bluetooth module, such as

    determining the data that is transferred via the UART.

  • 8/6/2019 Project Progress Report Jmk35

    8/8

    References

    [1] S. Woods,Acoustic Inspection of Timber, University of Canterbury, Master of

    Engineering Thesis, Dec. 2006.

    [2] A. Bascun, et al., Variations in the dynamic modulus of elasticity with proximity tothe stand edge in radiata pine stands on the Canterbury Plains, New Zealand, NZ Journal

    of Forestry, Nov. 2006.

    [3] T. Bhola, Smart Device Communications Interface, University of Canterbury ENCE

    427 Project Report, 2011.