<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Development of the universal data transfer protocol: mobile solution.</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anna Krepchenko</string-name>
          <email>anna.krepchenko@student.csn.khai.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Anastasiia Strielkina</string-name>
          <email>a.strielkina@csn.khai.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artem Tetskyi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dmytro Uzun</string-name>
          <email>d.uzun@csn.khai.edu</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Kharkiv</institution>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <fpage>63</fpage>
      <lpage>72</lpage>
      <abstract>
        <p>The paper deals with the process of development of the universal data transfer protocol for Internet of Things projects. It describes the reasons for the mobile solution is needed. All main ways of communication for Internet of Things systems are described. It is spoken in details about different ways to transfer data on the mobile side. WIFI, Bluetooth and Bluetooth Low Energy are noted as main existed protocols. M uch attention is given to Bluetooth Low Energy as the main protocol for the universal solution to base on. The method proposed explained with the examp le of the common healthcare project's system. The main data buses are defined.</p>
      </abstract>
      <kwd-group>
        <kwd>Internet of Things</kwd>
        <kwd>Protocol</kwd>
        <kwd>M obile</kwd>
        <kwd>Bluetooth Low Energy</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1.1</p>
    </sec>
    <sec id="sec-2">
      <title>Introduction</title>
      <sec id="sec-2-1">
        <title>Motivati on</title>
        <p>Internet of Things (IoT) is a socio-technical phenomenon with the power to disrupt our
society such as the Internet before. IoT promises the (inter-) connection of myriad of
things providing services to humans and machines. It is expected that by 2020 tens of
billions of things will be deployed worldwide (see Fig.1). It became evident that the
traditional centralized computing and analytic approach does not provide a sustainable
model this new type of data. A new kind of architecture is needed as a scalable and
trusted platform underpinning the expansion of IoT. The data gathered by the things
will be often noisy, unstructured and real-time requiring a decentralized structure
storing and analyzing the vast amount of data. Due to limited roles, energy constraints, etc.,
however, IoT devices may use mission-tailored or proprietary wireless protocols that
smartphones do not speak natively. The number of mobile users grows every year. The
number of mobile phones and wearable or connected devices grows accordingly (see
Fig.2).
Every new device built later 2015 implements own realization of wireless connection.
This way of development makes slower the development process and restricts commu
nication between different devices. That is why devices cannot be connected to big
systems without pain. Universal communication protocol of the IoT devices will
resolve this problem.
1.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>State of the art</title>
        <p>
          There are a lot of protocols and standards for the IoT system[
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. The diversity of wire
less networks and protocols used by IoT makes solutions non-interoperable. Moreover,
some Things are not always able to communicate due to resource constraints or
environmental factors [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. However, there is an apparent fact that no IoT standard or
protocol has been specified to the date; companies, large or small, are working with their
own platforms or frameworks . That is why all protocols introduced before are
developed to support specific system. Any company makes some improvements to give some
advantages for their solution, if it uses common solutions and implements protocol.
This implies that there no well-known universal data transfer protocol developed for
IoT systems.
        </p>
        <p>
          In maximu m coverage, there are few ways of communication in IoT system:
 remote device — smartphone;
 smartphone — remote device;
 smartphone — server side;
 server side — smartphone;
 remote device— server side [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ].
1.3
        </p>
      </sec>
      <sec id="sec-2-3">
        <title>Goals and structure</title>
        <p>The main goal is a building a concept of protocol, suitable for IOT devices,
communicated with mobile devices . Besides, it is also necessary to investigate already existed
protocols, find differences between them according mobile specific. Universal data
transfer protocol should be explained with the example of the common IOT system.</p>
        <p>The universal protocol should support data transfers in both directions between
remote device and smartphone and should be easily integrated with other usual protocols,
used by another way of communication. The remainder of the paper is structured as
follows. Section 2 presents a brief description of existed solutions and protocols to base
on. The universal data protocol is shown in section 3 and an example of realization for
the virtual systemis shown in section 4. Sector 5 contains conclusions and future steps
of research.
2</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Analysis of existed solutions</title>
      <p>
        A data transfer protocol is a standardized format for transmitting data between two
devices [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Despite their numbers, networking protocols show little variety, because all
data transfer protocols use the same embedded principles and concepts for
communication. The rules can be expressed by algorithms and data structures, raising the
opportunity for hardware independence in digital computing systems.
2.1
      </p>
      <sec id="sec-3-1">
        <title>Methods of research</title>
        <p>
          The notion of a universal protocol provides a rationale for standardization of protocols;
assuming the existence of a universal protocol, development of protocol standards
using a consensus model might be a viable way to coordinate protocol design efforts [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ].
To get the less weight of the device and the most portability at the same time, there no
chance to use WIFI as the main and long-term communication way. It can be used to
configure remote device at the first time. However, long time usage will be the main
reason for small battery life duration.
        </p>
        <p>
          Bluetooth — is safer than WIFI for human health, but at the same time, the distance
between conjugated devices cannot exceed theoretical maximu m under ideal conditions
of 10 meters [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. In addition, this method transmission constantly uses the device’s
Bluetooth adapter in the active mode, which significantly reduces the duration of work
from the built-in battery. However, there are no difficulties with the connection and
transfer data to your smartphone [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ].
        </p>
        <p>
          BLE (Bluetooth Low Energy) — to have permanent communication with a
smartphone and keep battery power as long as you can. This solution gives the most
productive portability [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ]. The Bluetooth Low Energy technology keeps all
advantages of Bluetooth connection, and expand the theoretical maximu m of the distance
between the devices to the 100 meters in the perfect conditions. This way of
communication significantly reduces consumed energy, which follows from the name of the
technology. The only disadvantage of this protocol is the support from Android version
4.3 and IOS version 8.0 and iPhone 4s. BLE allows the short bursts of the long -range
radio connection, making it ideal for Internet of Things applications, that don’t require
the continuous connection but depend on long battery life [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ].
        </p>
        <p>The latest version of Bluetooth Low Energy 5.0 has a longer characteristic, but there
are not enough mobile devices supported this revision on BLE.</p>
        <p>
          Bluetooth mesh networking – is a protocol based upon Bluetooth Low Energy that
allows for many-to-many communication over a Bluetooth radio [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ].
        </p>
        <p>Foundation models have been defined in the core specification. Two of them are
mandatory for all mesh nodes: Configuration Server (mandatory), Configuration Client ,
Health Server (mandatory), Health Client.</p>
        <p>Not all IoT projects are health projects. Communication is carried in the messages
that may be up to 384 bytes long. This is not suitable value for the mobile side. So the
best supported by the mobile devices revision of BLE is 4.0.</p>
        <p>Key BLE 4.0 terms and concepts:
1. Generic Attribute Profile (GATT) — The GATT profile is a general specification for
sending and receiving short pieces of data known as “attributes” over a BLE link.</p>
        <p>All current Low Energy application profiles are based on GATT.
2. Attribute Protocol (ATT) — GATT is built on top of the Attribute Protocol (ATT).</p>
        <p>
          ATT is optimized to run on BLE devices. Each attribute is uniquely identified by a
Universally Unique Identifier (UUID), which is a standardized 128-bit format for a
string ID used to uniquely identify information. The attributes transported by ATT
are formatted as characteristics and services [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ].
3. Service — a service is a collection of characteristics. For example, you could have a
service called “Heart Rate Monitor” that includes characteristics such as “heart rate
measurement.” A list of existing GATT-based profiles and services can be found on
bluetooth.org.
4. Characteristic — a characteristic contains a single value and 0-n descriptors that
describe the characteristic’s value. A characteristic can be thought of as a type,
analogous to a class.
5. Descriptor — Descriptors are defined attributes that describe a characteristic value.
        </p>
        <p>
          But the documentation of GATT protocol does not allow to have some general
characteristics for all the devices. That’s why every new IOT device has its own implemen
tation of the GATT [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
        </p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Universal data protocol</title>
      <sec id="sec-4-1">
        <title>The main flow of hierarchy used as in GATT was designed.</title>
        <p>The main operands of the protocol are buses and characteristics. Buses should be
created by the logic meaning. Characteristics should be grouped by the belonging to each
bus. Each bus should contain at least one characteristic. Each characteristic has 20 bytes
for data.</p>
        <p>Protocol consis ts of:
 Data buses;
 Data characteristics.</p>
        <p>
          Analyzing the predication of the characteristics was found a different kind of
characteristics. The universal characteristic should just contain 20 bytes of the data [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ].
The most common way to sync a remote device with any receiver is to share some data
and add the specific time, it has happened. Therefore, characteristic should have some
bytes to be filled with “time”. Integer has 4 bytes to save some value. It can be held the
Unix time in the integer value. Unix time is a system for describing a point in time ,
defined as the number of seconds that have elapsed since 00:00:00 Coordinated
Universal Time (UTC), Thursday, 1 January 1970 [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ], minus the number of leap seconds
that have taken place since then. That’s why some characteristics will have 4 bytes for
time and 16 bytes for data. Any remote device should have a possibility to be
reconfigured after some usage time. Configuration can be done with a range of allowable values,
for example, describe the minimum and the maximu m lines. Also, it can be done with
1 needed parameter such as index or rate. Both of these ways can be covered with
characteristic consist of the 2 parts, 10 bytes each of them.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>Types of characteristics:</title>
        <p> Simple characteristic(Fig. 4)
 Time characteristic(Fig. 5)
 Configuration characteristic(Fig. 6)
As an example, can be examined the IOT healthcare project with few buses and
characteristics. System consists of simple remote device with specific sensors and phone.
The ranges of measurements can be configured from the phone. Alerts are sent by
remote device if measurements are out of range. Remote device has LED controlled fro m
the phone (see Fig.7).
 remote device – bracelet or other wearable device;
 phone.
4.1</p>
        <sec id="sec-4-2-1">
          <title>Main global data buses</title>
          <p>All data can be transferred from remote device to phone and back via data buses. Data
buses can be separated by business logic:
 Sensordata;
 Alerts;
 Battery;
 Rssi;
 LED;
 Errors;
 Custom_config;
 Networks.</p>
          <p>Sensordata data bus used to transfer specific measurements of each sensor and to set
ranges of normal values. Min and max values will be set to byte array with different
offsets.</p>
          <p>Alerts data bus used to transfer alerts from the remote device to phone immediate ly .
Battery data bus used to transfer battery level values with the low frequency.</p>
          <p>Rssi bus used to get data about signal strength. Provided by Bluetooth as a default
feature.</p>
          <p>LED bus used to set some data according the led (turn on/ turn off, etc.).
Error bus used to transfer errors of the remote device to the phone.</p>
          <p>Custom_config bus used to set specific configurations (such as algorithms settings,
sleep time, proximity setup, etc.)</p>
          <p>Networks bus used to read and set network’s data from the phone to the remote
device. The networks will be used by priority to connect.
4.2</p>
        </sec>
        <sec id="sec-4-2-2">
          <title>Services and characteristics</title>
          <p>Approach mentioned in section 4.3 can be build using main operands of protocol for
realization main data buses. All data buses will have their own Services and
Characteristics (except the rssi). Final realization of the approach results described in Table 1.
Security and safety of developed protocol depends on protocol it based on. While
universal data transfer protocol used BLE 4.0 as base it has the same issues and problems.
This issues can be resolved with the following recommendations:
 Activate the communication encryption whenever possible. The use of LTK
allows communication to be encrypted between the master and the slave fro m
the first moment. All devices from a control network that uses Bluetooth
should make use of the encryption.
 Do not accept connections from unknown devices. Activate the white list
option in the master and require pairing with a key of at least 5 characters, thus
avoiding malicious devices connecting without permission.
 Continuously revise the list of registered trusted devices in order to avoid
malicious devices appearing.
 Assign a name to the devices that does not reflect extra information such as
the brand, the device model, the location or service. With these measures it is
difficult for possible attackers to benefit from vulnerabilities associated with
specific devices and carry out targeted attacks.
 Maintain device configuration in invisible mode to make it difficult to detect
from other devices.</p>
          <p>Following recommendation can be implemented “as it is”, but it will decrease the
speed of data transfer.
5</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conclusions and Future Work</title>
      <p>This paper describes process development a universal data tra nsfer protocol for IOT
project. The reasons why the mobile solution is needed were examined. All main ways
of communication are every IOT system were described. WIFI, Bluetooth and
Bluetooth Low Energy were highlighted as main existed protocols. Much attention was
given to Bluetooth Low Energy as the main protocol for the universal solution to base
on. The method proposed explained with the examp le of the common healthcare
project’s system. As result data transfer protocol, defined main data buses and protocols to
base on, was created. Next steps of research will be defining terms of use for data
transfer and implementing the universal protocol in multiple IOT systems and resolving
security issue without speed lost.
6</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgements</title>
      <p>This paper results from the Erasmus+ programme educational project ALIOT «Internet
of Things: Emerging Curriculum for Industry and Human Applications» (reference
number 573818-EPP-1-2016-1-UK-EPPKA2-CBHE-JP, website http://alIoT.eu.org)
in which the appropriate course is developed (ITM4 - IoT for health systems) within its
framework, we have developed modules related to IoT systems modelling. The authors
would like to thank colleagues on this project, within the framework of which the
results of this paper were discussed. The authors also would like to show their deep
gratitude to colleagues from Computer systems, networks and cybersecurity, National
Aerospace University «KhAI» for their patient guidance, enthusiastic encouragement and
useful critiques of this paper.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1. The Statistics Portal,
          <article-title>Number of mobile phone users worldwide from 2013 to 2019</article-title>
          . https://www.statista.com/statistics/274774/forecast -of
          <article-title>-mobile-phone-users-</article-title>
          <source>worldwide/ [accessed January 8</source>
          ,
          <year>2018</year>
          ]
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. The Statistics Portal,
          <article-title>Internet of Things connected devices installed base worldwide from 2015 to 2025 https://www</article-title>
          .statista.com/statistics/471264/IoT-number
          <article-title>-of-connected-devices-</article-title>
          <source>worldwide/ [accessed January 8</source>
          ,
          <year>2018</year>
          ]
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. Postscapes, IoT Standards and Protocols https://www.postscapes.com/internet -of-thingsprotocols/ [accessed February 10,
          <year>2018</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Andrejs</given-names>
            <surname>Bondarevs</surname>
          </string-name>
          , Patrik Huss, Qinzhong Ye, Shaofang Gong,
          <article-title>Universal Internet of Things solution: Protocol independent</article-title>
          ,
          <source>Industrial Technology (ICIT)</source>
          ,
          <source>2017 IEEE International Conference doi: 10</source>
          .1109/ICIT.
          <year>2017</year>
          .7915553
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Anna</given-names>
            <surname>Krepchenko</surname>
          </string-name>
          ,
          <article-title>Put your IOT back on rails https://medium</article-title>
          .com/@anna.
          <article-title>krepchenko/putyour-IoT-back-on-rails-</article-title>
          8b6f14399918
          <source>[accessed January 5</source>
          ,
          <year>2017</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. M icrosoft,
          <article-title>About data transfer protocols</article-title>
          . https://technet.microsoft.com/en-us/library/cc731604(v=ws.11).
          <source>aspx [accessed December 17</source>
          ,
          <year>2017</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <article-title>Real-time performance management of assisted living services for Bluetooth low energy sensor communication, Integrated Network and Service M anagement (IM ), 2017</article-title>
          <string-name>
            <surname>IFIP</surname>
          </string-name>
          /IEEE Symposium on, doi:10.1109/IEEESTD.
          <year>2016</year>
          .7542098
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>World</given-names>
            <surname>Health</surname>
          </string-name>
          <article-title>Organization (WHO), Compendium of innovative health technologies for low-resource settings http://apps</article-title>
          .who.int/iris/bitstream/handle/10665/108781/- 9789241564731_eng.
          <source>pdf;jsessionid=D3F94C4FCC73E32E0003251C8432FA7B [accessed April 1</source>
          ,
          <year>2017</year>
          ].
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Basagni</surname>
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bruno</surname>
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Petrioli</surname>
            <given-names>C. NETWORKING</given-names>
          </string-name>
          <year>2002</year>
          :
          <article-title>Networking Technologies</article-title>
          , Services, and
          <article-title>Protocols; Performance of Computer and Communication Networks; M obile and</article-title>
          Wireless Communications. Springer; Berlin/Hidelberg, Germany:
          <year>2002</year>
          .
          <article-title>Device discovery in Bluetooth networks: A scatternet perspective</article-title>
          ; pp.
          <fpage>1087</fpage>
          -
          <lpage>1092</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <article-title>Survey of Vehicle IoT Bluetooth Devices, Service-Oriented Computing and Applications (SOCA</article-title>
          ),
          <year>2014</year>
          IEEE 7th International Conference on,
          <fpage>17</fpage>
          -
          <lpage>19</lpage>
          Nov.
          <year>2014</year>
          doi:10.1109/SOCA.
          <year>2014</year>
          .20
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Duflot</surname>
            <given-names>M .</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kwiatkowska</surname>
            <given-names>M .</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Norman</surname>
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parker</surname>
            <given-names>D.</given-names>
          </string-name>
          <article-title>A formal analysis of bluetooth device discovery</article-title>
          .
          <source>Int. J. Softw. Tools Technol. Transf</source>
          .
          <year>2006</year>
          ;
          <volume>8</volume>
          :
          <fpage>621</fpage>
          -
          <lpage>632</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Hyun-Soo</surname>
            <given-names>Kim</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Jungyub</given-names>
            <surname>Lee</surname>
          </string-name>
          , Ju Wook Jang,
          <string-name>
            <surname>BLEmesh: A Wireless M esh Network</surname>
          </string-name>
          <article-title>Protocol for Bluetooth Low Energy Devices doi</article-title>
          :
          <volume>10</volume>
          .1109/FiCloud.
          <year>2015</year>
          .21
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Elvis</surname>
            <given-names>Pfützenreuter</given-names>
          </string-name>
          , Bluetooth: ATT and GATT https://epxx.co/artigos/bluetooth_gatt.
          <source>html [accessed January 9</source>
          ,
          <year>2018</year>
          ]
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Bluetooth</surname>
            <given-names>SIG</given-names>
          </string-name>
          , GATT Services https://www.bluetooth.com/specifications/gatt/services
          <source>[accessed January 8</source>
          ,
          <year>2018</year>
          ]
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Bluetooth</surname>
            <given-names>SIG</given-names>
          </string-name>
          ,
          <source>Bluetooth Core Specification Version 4</source>
          .0.
          <article-title>Specification of the Bluetooth System</article-title>
          . https://www.bluetooth.com/specifications/gatt/generic-attributes-overview
          <source>[accessed January 8</source>
          ,
          <year>2018</year>
          ]
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <article-title>BLE-Stack User's Guide, Logical Link Control and Adaptation Layer Protocol (L2CAP</article-title>
          ) http://dev.ti.com/tirex/content/simplelink_cc2640r2_sdk_
          <volume>1</volume>
          _
          <fpage>35</fpage>
          _
          <fpage>00</fpage>
          _33/docs/ble5stack/ble_user_guide/html/blestack/l2cap.
          <source>html [accessed January 9</source>
          ,
          <year>2018</year>
          ]
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <article-title>The Open Group Base Specifications Issue 7, section 4.16 Seconds Since the Epoch</article-title>
          . doi:
          <volume>10</volume>
          .1109/IEEESTD.
          <year>2016</year>
          .7542098
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>