<!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>
      <journal-title-group>
        <journal-title>Information Technology and Interactions, December</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Alexander Provotar, Maksym Veres and Maksym Samoilenko</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Taras Shevchenko National University of Kyiv</institution>
          ,
          <addr-line>Glushkov ave., 4g, 03022, Kyiv</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <volume>0</volume>
      <fpage>2</fpage>
      <lpage>03</lpage>
      <abstract>
        <p>This paper investigates using educational IoT in group of students. There is formal investigation of IoT system approach presented as transition systems and their composition which presented as Petri net with next liveness checking. Paper describes architecture of IoT system which is implementation of Petri net. Nowadays IoT devices is popular and can be used as IoT for mobile phones, smart homes, automotive technologies. There is a good opportunity for using IoT in education curriculum. This paper exposes using IoT technologies in education, especially model of interaction between IoT and end-users, and realization of model by using system architecture. This paper has a contribution: model of interaction between IoT and end-users which exposed as Petri net with liveness checking which is result of multiplication transition systems of each aspect of interaction and system architecture of implementation of Petri net. Section II provides a literature review oof using educational IoT. Section III introduces using IoT in curriculum and described initial information about IoT system. Section IV provides transition system and Petri net definitions, investigates liveness of Petri net presented as multiplication of transition systems. Section V presents system architecture of Petri net implementation. Section VI describes conclusions and Section VII - references.</p>
      </abstract>
      <kwd-group>
        <kwd>1 educational IoT</kwd>
        <kwd>web - server</kwd>
        <kwd>transition system</kwd>
        <kwd>Petri net</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. Literature review</title>
      <p>
        There are plenty examples of using IoT in education curriculum with Lego Mindstorm. There is
Robolab programming tool for Lego Mindstorm analysis of using IoT for learning programming
languages by students which take a part in Lego IoT building blocks, decomposing and investigation
of educational task given, running program [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Working with education IoT described step by step in
system engineering students by experiencing software engineering lifecycle from requirements and
design to system implementations by means of Lego Mindstorm [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. There is an example of using
maker made IoT in educational process described where this IoT can be integrated in school
curriculum with strong acceptance by the school community [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. According to papers above,
educational IoT has a good possibility to be used in curriculum. Also, there is paper with interaction
of group of IoT with different relationship types and with system architecture of connection protocols
discussion and analysis presented [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
      <p>
        Different interaction between system architecture aspects can be presented by Petri net. Current
paper describes model interaction by using transition systems of each aspect by example of model of
working with graphic processing (GPU) systems where working GPU cycle is decomposed by parts
and presented as transition systems with further transforming to Petri net with liveness checking[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Using IoT device in curriculum</title>
      <p>Let’s describe overall view of using IoT in education curriculum. Let’s assume that there is
theoretical educational IoT device which is controlled by student’s command in moment of solving
educational task. This IoT device illustrates task invocation, which helps student understand
correctness of command according to task. Task for student is generated by task service and student
solves this task by means of user interface service which handle user task’s input and user interface
service interacts with IoT. Also, IoT can be used in group of student which can share common task
generated from task service – task generates accordingly to data collected for group of IoT devices
paralelly. There are three aspect of interaction:
 user service – gets task from task service, interacts with user input, transform input to task
command and sends to IoT device,
 task service – generates task for students, collects information about each IoT device and
generates task according to information collected. Task service controls parallel invocation of task
of all IoT devices assigned
 IoT – device which performs each command obtained by user interface assigned.
In conclusion, user service, task service and IoT can be presented as transition system in the next
chapter.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Petri net of IoT system</title>
      <p>
        Let’s introduce transition systems and Petri net [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Transition system is a system  =
( ,  ,  ,  ,  0) where:
  is finite or infinite set of states;
  is finite or infinite set of transitions
  ,  are two relations from  to  where each transition  of  set results in two states
 ( ),  ( ) which are start and end of transition  correspondingly.
  0 is the start state of transition system.
      </p>
      <p>Let’s  1, … ,   are transition systems where   = (  ,   ,   ,   ,  0),  = 1, … ,  . Constraint
of synchronization is subset  of set ( 1 ∪ { }) × … × (  ∪  )\{( , … ,  )} where  is identical
transition which is absence of any action in transition system. Elements of set  are global transitions.
If  = ( 1 …   ) ∈  and   ≠  then transition system   takes a part in the transition  . Tuple  =
( 1 …   ,  ) is multiplication of transition systems  1 …   , which are multiplication components of
 . Global transition  = ( 1, … ,   ) is modeling possible transition to  1 …   . If transition   = 
then transition system   doesn’t take a part in the global transition  .</p>
      <p>Petri net ( ,  ,  ,  0) describes multiplication  = ( 1, … ,   ,  ) of transition systems   =
(  ,   ,   ,   ,  0) where   ∩   = ∅ with  ≠  .  ,  = 1,2, … ,  if  =  1 ∪  2 ∪ … ∪   ,  =  ,  =
{( ,  )│  ≠  &amp; =   (  )} ∪ {( ,  )│  ≠  &amp; =   (  )} for some  = {1,2, … ,  } where   defines
 -th component  ∈  ,  0 = ( 01,  02, … ,  0 ) . Semantic of multiplication of transition systems and
semantic of Petri net which is illustration of this multiplication, accords in sense of sequence of global
transitions  1, … ,   is global history of multiplication of transition systems only in case of using
allowable sequence of results of transitions for Petri net.</p>
      <p>Let’s abbreviate transition system as TS and there are:
  1 – IoT
  2 – user interface service
  3 – task service
Interpretations of states and transitions from fig.1 for  1 are next:
  0 – waiting command from  2
  1 – fetching command from  2
  1 – command fetched is stated and is ready to use data from command







 2 – send command to controller to start
 2 – controller started command invocation
 3 – get command invocation result
 3 – result is fetched and prepared to return to  2
 4 – result of invocation is sending to  2
 4 – result of invocation is sent and there is nothing to do.</p>
      <p>5 – transition to  0
  9 – go to initial state: wait for user input</p>
      <p>After building Petri net there is a task of checking correctness of model – let’s check liveness of
Petri net. For liveness checking it needs to find solution of equation  ∙  = 0 where A is incidence
matrix for this Petri net on fig. 5.</p>
      <sec id="sec-4-1">
        <title>According to TSS [7] one solution is on fig. 6.</title>
        <p>1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Figure 6: solution of  ∙  = 0
All transitions of Petri net are covered by positive invariant values so Petri net is viable.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. System architecture of Petri net model implementation</title>
      <sec id="sec-5-1">
        <title>Here Petri net can be implemented as system on fig. 6.</title>
        <p>Task service generates one common shared task parallelly for group of IoT devices. Common task
means one common task with specific context of each IoT device. Specific context can have task
difficulty, IoT configuration, actual state of IoT.</p>
        <p>According to transition systems above there is system implementation:
 Task service transition system is implemented as task service
 User interface service and IoT transition systems are implemented into education IoT system.</p>
        <p>There is the scheme for implementation on fig. 6:</p>
        <p>Let’s view education IoT implementation: it can consist of educational robot as IoT, as Wi – Fi
web server and mobile phone, as user interface service, as Wi – Fi client. Mobile phone is used as
illustrative example of device with user interface. They have JSON restful communication on fig.7.
Via mobile phone student can send command to robot to change location and task service generate
tasks for students and can check command from mobile phone before sending to robot.</p>
        <p>Let’s see IoT robot inner components: there is a power source, which gives a possibility to use
robot IoT autonomously, Wi – Fi web server module which communicates with mobile phone as user
interface service via JSON protocol, microcontroller which controls command invocation, engine
module with motors which can move robot to other location on fig. 8. Robot can have functionality of
changing location. Group of students solves common changing location task with purpose to impove
programming skills. Task service controls all IoT devices assigned to common task and generates new
task to each IoT device accordingly.</p>
        <p>Task service can be implemented as web – server which generates, checks task for mobile phones
for students. Web service interacts with mobile phone via JSON restful protocol and web – service
can support parallel connections which allow to do common task in group of students as showed of
fig. 9.</p>
        <p>Web service uses database as data source for keeping all actual information data about all IoT
assigned to task service.</p>
        <p>Let’s see implementation of Petri net as interaction of systems.</p>
        <p>User interface (mobile phone) waits for user input, which is command programmed for IoT
robot.</p>
        <p>After user input user command in fetched and going to be sent to task service via JSON
protocol
User command is sent to task service web server via JSON protocol and wait for task service
response</p>
      </sec>
      <sec id="sec-5-2">
        <title>Task service web server obtains the command</title>
        <p>Task service web server sends the command to database to get actual info about other IoT
Task service web server got database result about the command invocation
Task service web server return result with the command to user service (mobile phone)
User service sends the command to IoT robot
Iot service (IoT robot) obtains a command via JSON protocol by means of Wi – Fi controller
IoT service does the command by using IoT robot’s components
IoT service sends to User interface the command invocation result
User interface service obtains a result from IoT service
User command is sent to task service server and wait for task service response
Task service obtains the command
Task service sends the command to database to get actual info about other IoT and generates
new tasks
Task service got database result about the command invocation and new task
Task service return result with the command to user service (mobile phone)
User interface service shows result to end users and waits for next input</p>
        <p>Implementation of IoT system is similar to Petri net transitions sequence.</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusions</title>
      <p>There is education system for possibility to solve common task in group of students which can be
decomposed into three transition systems IoT, user interface service and task service. After Petri net,
as multiplication of three systems, is used for checking liveness of IoT educational system model.
This model can be implemented as IoT robot as IoT transition system, mobile phone as user interface
service and task server as task service. This system supports parallel work which allows generate one
common task for group of IoT devices.</p>
    </sec>
    <sec id="sec-7">
      <title>7. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Karatrantou</surname>
            ,
            <given-names>Anthi</given-names>
          </string-name>
          &amp; Panagiotakopoulos,
          <string-name>
            <surname>Christos.</surname>
          </string-name>
          (
          <year>2008</year>
          ). Algorithm, Pseudo-Code and
          <article-title>Lego Mindstorms Programming</article-title>
          ,
          <source>Workshop Proceedings of SIMPAR 2008 Intl. Conf. on Simulation</source>
          ,
          <article-title>modeling and programming for autonomous robots</article-title>
          .
          <source>Venice(Italy) 2008 November, 3-4, ISBN 978-88-95872-01-8</source>
          , pp.
          <fpage>70</fpage>
          -
          <lpage>79</lpage>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Nielsen</surname>
            ,
            <given-names>Claus</given-names>
          </string-name>
          &amp; Adams,
          <string-name>
            <surname>Paul.</surname>
          </string-name>
          (
          <year>2015</year>
          ).
          <article-title>Active learning via LEGO MINDSTORMS in Systems Engineering education</article-title>
          .
          <fpage>489</fpage>
          -
          <lpage>495</lpage>
          .
          <fpage>10</fpage>
          .1109/SysEng.
          <year>2015</year>
          .
          <volume>7302802</volume>
          ,
          <source>2015 IEEE International Symposium on Systems Engineering (ISSE).</source>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Mylonas</surname>
            ,
            <given-names>Georgios</given-names>
          </string-name>
          &amp; Amaxilatis, Dimitrios &amp; Pocero, Lidia &amp; Markelis, Iraklis &amp; Hofstaetter, Joerg &amp; Koulouris,
          <string-name>
            <surname>Pavlos.</surname>
          </string-name>
          (
          <year>2019</year>
          ).
          <article-title>Using an Educational IoT Lab Kit and Gamification for Energy Awareness in European Schools</article-title>
          .
          <article-title>This is a preprint version of a paper submitted toFabLearn</article-title>
          <source>Europe'18, Proceedings of the Conference on Creativity and Making in Education. DOI: 10.1145/3213818</source>
          .3213823
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Lloret</surname>
            ,
            <given-names>Jaime</given-names>
          </string-name>
          &amp; Sendra, Sandra &amp; Gonzalez
          <string-name>
            <surname>Ramirez</surname>
            , Pedro &amp; Parra,
            <given-names>Lorena.</given-names>
          </string-name>
          (
          <year>2019</year>
          ).
          <article-title>An IoT Group-Based Protocol for Smart City Interconnection</article-title>
          .
          <volume>10</volume>
          .1007/978-3-
          <fpage>030</fpage>
          -12804-3_
          <fpage>13</fpage>
          . Springer Nature Switzerland AG 2019S. Nesmachnow and L. Hernández Callejo (Eds.): ICSC-CITIES
          <year>2018</year>
          , CCIS 978, pp.
          <fpage>164</fpage>
          -
          <lpage>178</lpage>
          ,
          <year>2019</year>
          . https://doi.org/10.1007/978-3-
          <fpage>030</fpage>
          -12804-3_
          <fpage>13</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S. L.</given-names>
            <surname>Kryvyi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. D.</given-names>
            <surname>Pogorilyy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. S.</given-names>
            <surname>Slinko</surname>
          </string-name>
          ,
          <string-name>
            <surname>MODEL JUSTIFICATION OF GPU-BASED</surname>
            <given-names>APPLICATIONS</given-names>
          </string-name>
          , DOI https://doi.org/10.15407/usim.
          <year>2018</year>
          .
          <volume>04</volume>
          .0046 ,
          <string-name>
            <surname>ISSN</surname>
          </string-name>
          0130-5395,
          <article-title>Control systems</article-title>
          and computers,
          <year>2018</year>
          , №
          <fpage>4</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Kryvyi</surname>
            <given-names>S. L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boyko</surname>
            <given-names>Y. V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pogorilyy</surname>
            <given-names>S. D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Boretskyi</surname>
            <given-names>O. F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Glybovets M. M.</surname>
          </string-name>
          <article-title>Design of Grid Structures on the Basis of Transition Systems with the Substantiation of the Correctness of Their Operation</article-title>
          .
          <source>Cybernetics and Systems Analysis. January</source>
          <year>2017</year>
          , Volume
          <volume>53</volume>
          , Issue 1, pp
          <fpage>105</fpage>
          -
          <lpage>114</lpage>
          . Springer Science+Business Media New York
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Kryvyi</surname>
            <given-names>S.L.</given-names>
          </string-name>
          <year>2015</year>
          .
          <article-title>Linear Diophantine constraints and their application</article-title>
          .
          <source>Chernivtsi: “Bukrek” Publishing House.</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>