Android-luokkakirjasto EMG-mittalaitteiden hallintaan
Pirskanen, Mira (2020)
Pirskanen, Mira
2020
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2020091820541
https://urn.fi/URN:NBN:fi:amk-2020091820541
Tiivistelmä
Opinnäytetyön tarkoituksena oli toteuttaa Android-luokkakirjasto elektromyografiaa hyödyntävien MCell-mittalaitteiden yhdistämiseen, hallinnointiin ja mittadatan käsittelyyn. Lisäksi toteutukseen kuului testisovellus luokkakirjaston testaamista varten. Työn toimeksiantaja on älyvaateteknologiaan erikoistunut Myontec Oy.
Tavoitteena oli luoda luokkakirjasto, jonka avulla voidaan tehokkaasti ja yksinkertaisesti etsiä ja yhdistää MCell-mittalaitteita Bluetooth Low Energy-tekniikalla, aloittaa ja lopettaa mittauksia sekä hallinnoida mittalaitteelta tule-vaa dataa.
Sekä luokkakirjasto että testisovellus toteutettiin Java-ohjelmointikielellä ja kehitysympäristöksi valittiin Android Studio. Toteutusta dokumentoitiin Javadoc-työkalua hyödyntäen, jotta ulkopuolisenkin tahon olisi mahdollisimman helppoa ja yksinkertaista ottaa kirjasto ja sen ominaisuudet käyttöön omassa sovelluksessaan.
Lopputuloksena saatiin luokkakirjasto AAR-tiedostona, Javadoc-dokumentaatio pakattuna kansiona ja lisäksi lyhyt käytön ohjeistus PDF-muodossa. Ohjeistuksen havainnollistamiseen hyödynnettiin osia testisovelluksen lähdekoodista. The purpose of this thesis was to create an Android class library for managing measurement modules and data. The thesis was commissioned by Myontec Oy. Myontec is a Finnish company specialized in smart clothing tech-nologies. The measurement modules used with the class library are called MCells. A MCell module uses electro-myography for measuring muscle load and a 9-axis inertial measurement unit for motion data. The technology used in MCell modules is patented, validated and scientifically proven.
The goal was to create a package that would allow a Myontec client to manage MCell’s Bluetooth Low Energy connections and measurements and get online measurement data wirelessly. The package had to be effective and easy to use. In addition, the API had to be documented properly so that the client would know how to use it in their own software development. On top of the API an Android mobile application was developed for testing purposes.
The test application as well as the class library were developed using Android Studio and the Java programming language. The documentation for the client was decided to be executed using the Javadoc program and as a brief PDF document. Pictures from the Test application’s source code with explanations were used in the PDF docu-ment.
As a result of this thesis, the client received the Myontec API and the documentation within scheduled time frame. As planned, the Myontec API was able to manage MCell modules and handle the data and calculations from the measurements. The Myontec API was compiled into an Android Archive file and the Javadoc files were created as an archived folder. The PDF document was created from a Microsoft Word file that showed by example how to implement the Myontec API into another Android project and how the functions in it could be used.
Tavoitteena oli luoda luokkakirjasto, jonka avulla voidaan tehokkaasti ja yksinkertaisesti etsiä ja yhdistää MCell-mittalaitteita Bluetooth Low Energy-tekniikalla, aloittaa ja lopettaa mittauksia sekä hallinnoida mittalaitteelta tule-vaa dataa.
Sekä luokkakirjasto että testisovellus toteutettiin Java-ohjelmointikielellä ja kehitysympäristöksi valittiin Android Studio. Toteutusta dokumentoitiin Javadoc-työkalua hyödyntäen, jotta ulkopuolisenkin tahon olisi mahdollisimman helppoa ja yksinkertaista ottaa kirjasto ja sen ominaisuudet käyttöön omassa sovelluksessaan.
Lopputuloksena saatiin luokkakirjasto AAR-tiedostona, Javadoc-dokumentaatio pakattuna kansiona ja lisäksi lyhyt käytön ohjeistus PDF-muodossa. Ohjeistuksen havainnollistamiseen hyödynnettiin osia testisovelluksen lähdekoodista.
The goal was to create a package that would allow a Myontec client to manage MCell’s Bluetooth Low Energy connections and measurements and get online measurement data wirelessly. The package had to be effective and easy to use. In addition, the API had to be documented properly so that the client would know how to use it in their own software development. On top of the API an Android mobile application was developed for testing purposes.
The test application as well as the class library were developed using Android Studio and the Java programming language. The documentation for the client was decided to be executed using the Javadoc program and as a brief PDF document. Pictures from the Test application’s source code with explanations were used in the PDF docu-ment.
As a result of this thesis, the client received the Myontec API and the documentation within scheduled time frame. As planned, the Myontec API was able to manage MCell modules and handle the data and calculations from the measurements. The Myontec API was compiled into an Android Archive file and the Javadoc files were created as an archived folder. The PDF document was created from a Microsoft Word file that showed by example how to implement the Myontec API into another Android project and how the functions in it could be used.