New Architecture of Remote Laboratories Multiuser Based On Embedded Web Server
New Architecture of Remote Laboratories Multiuser Based On Embedded Web Server
Abstract—This paper presents a new architecture for multi- emissions. Each PC generates about a ton of carbon diox-
user remote laboratory based on an embedded web server ide every year[6].
used for experiment with the MCS-51 microcontroller sys- Web technology based on embedded system has grown
tem. The design for the remote lab uses a green computing rapidly in the post PC era [7]. Implementing a web
approach, with the aim of reducing energy consumption, enabled controller to the system replaces the computer as
lowering the cost of procurement systems, improving per- a web server, thus lowering the cost of system [8]. Ap-
formance and use, and also saving space. The remote lab plied embedded system supports the concept of green
system uses multi user and multi device architecture to sup-
computing because the design has addressed several issues
port collaborative work and improve scalability. The design
related to green computing such as reduced power con-
of the remote lab has n modules experiment, and each mod-
sumption, reduced costs and space saving [6].
ule can be accessed by a single user or a group which con-
sists of several user. The prototype of a remote lab that has Various technologies in web programming have been
been realized consists of an embedded web server based on applied to provide a comfortable remote lab environment,
Raspberry Pi as the remote lab gateway and 2 experiment such as socket, applet, ajax, corba, labview, etc.[4]. The
modules that are controlled by an embedded web server work in [4] describes current progress toward the micro-
based on MCS-51 microcontroller. Development of the sys- server AJAX web-based solution. This solution will be
tem is expected to contribute to creating an efficient remote web-based, firewall-safe, more scalable, and support co-
lab that is able to facilitate collaborative work and support operative work among group members. N groups of user
green computing. from any client platform will be able to access simultane-
ously any of the N networked programmable devices. The
Index Terms—Remote Laboratories, Embedded Web Serv- work in [2] describes an approach for the development of
er, Microcontroller, Multiuser, Collaborative Work, Green an embedded web server that facilitates a remote access
Computing for an electronic engineering laboratory experiment for
distance learning. The system architecture developed for
this project allowed use of low cost components.
I. INTRODUCTION
An ideal remote lab must be able to meet the needs of
A remote lab is a web-integrated system that can be ac- users, for example, by providing experience similar to
cessed through a unified interface by a web browser[1]. doing experiments in a conventional laboratory.
By providing distance users a way to share resources and Experiments are usually conducted in a conventional
tools, it may cause cost reduction and access to some more laboratory, usually consisting of a group of students who
specialized learning resources that are not available local- has to be able to experiment with the same module. This
ly [2]. condition is what is known as the concept of collaboration
There are several advantages to the use of remote labor- or teamwork, where one student with other students can
atories, as laboratory performance will be better and more communicate and hold discussions. The concept of
efficient because students can use laboratory equipment collaboration is recommended by ABET [9]. The work in
for 24 hours. A remote laboratory creates autonomous [10] describes a client server architecture based on web
learning [3], allows use by handicapped students [4], and services and .NET remoting services for an integrated
supports resource sharing and collaboration between la- learning environment with remote experimentation that
boratories. In Indonesia, particularly, a remote lab system allows students in disparate locations to simultaneously
needs to be developed to share the laboratory (collabora- and collaboratively complete complex experimental
tion) between colleges. A remote lab can also be used to exercises.
support the implementation of teaching and learning for From the problem above, this research proposes a new
the Open University in Indonesia [5]. architecture of remote labs that is efficient and has high
One published strategy that is often used in building a scalability that can support collaborative work. Remote
remote laboratory, which has been published, is use of a lab architecture is implemented with an embedded system
computer-based server, but investment costs for hardware, technology to improve efficiency. The architecture of the
software and maintenance are very expensive. Further- remote lab uses multiuser-multidevice models to improve
more, the total electrical energy consumption by server, system scalability, where the remote lab has n modules
computer and cooling systems in the remote lab systems and each module can be accessed by a single user or a
are very significant. Energy consumption for a computer group that consists of several users simultaneously.
system contributes to the increase of greenhouse gas This paper is organized as follows: section II contains
the new architecture of remote lab; section III contains a
4 http://www.i-joe.org
PAPER
NEW ARCHITECTURE OF REMOTE LABORATORIES MULTIUSER BASED ON EMBEDDED WEB SERVER
design hardware involving an embedded web server and The web server remote lab gateway contains several
lab module; section IV contains design software for the software applications such as Apache web server, a
remote lab; section V provides results and discussion; and MySQL database server and a remote lab user
section VI concludes the paper. management application based on PHP. The user
management application functions to handle user requests
II. ARCHITECTURE OF THE REMOTE LAB that will access the remote lab and manage all remote lab
Architecture of the remote lab is an extended and modi- resources.
fied version of a paper presented at the International Con- The experiment module is an evaluation board
ference on Remote Engineering & Virtual Instrumentation AT89SXX microcontroller and is equipped with some I/O
(REV2012), held in Bilbao, Spain, July 4-6, 2012. The modules such as an LED display, a LCD display, keypad
paper published in [11] describes an architecture of the and motor stepper. Users can interact with remote experi-
multiuser remote lab based on a hybrid server. The ment modules such as uploading binary files to the target
system has two kinds of web servers – that is a web server board, observing the changes via a web cam and
remote lab gateway based on a PC server and an interacting with the target board through a virtual I/O.
embedded web server (EWS) based on an MCS-51 The main function of the embedded web server is to
microcontroller for control experiment modules. Each control the experiment module and become the user inter-
experiment module in the remote lab that has been face between the user and experiment modules. Futher-
realized can only be accessed by one user at any time. more, embedded web server can send log report to the
database server and send a message to the chat applica-
A. Design of Remote Lab System tion.
A diagram of the remote lab architecture is shown in In this project the number of modules is limited to only
Figure 1. The system consists of a web server remote lab 2 experiment modules, so every time the remote lab can
gateway based on an ARM 11 embedded System; two serve two groups simultaneously. Each group can consist
experimental modules for an MCS-51 microcontroller of more than 2 users. However the system can be expand-
family, which is controlled by an embedded web server ed to handle a number of n modules.
based on AT89S52; IP camera; and several computers on
the client side. All the equipment is connected to a switch B. Use Case Diagram
hub. The design of the remote lab system can be described
The web server for the remote lab gateway is using use case diagram in Figure 2. There are two main
implemented with an embedded system using the components, namely the use of case diagram defining the
Raspberry Pi pico computer with an ARM1176JZF-S actor and the use case. Actors are people, process or other
processor. The embedded system has 256 MB of RAM, systems that interact with information systems. Use case is
4GB of external memory, available various I/O ports and the functionality provided as a system of units that
an Ethernet port 10/100. The embedded system using the exchanges information.
Raspbian embedded Linux operating system. Raspbian is
an operating system based on Debian Wheezy [12].
View Data
Delete data Delete data Add data View data Delete data
Client Web Server based on ARM 11 with OS Raspbian Wheezy
Add Data
Add data View data Web Browser Apache Web Server MYSQL Database Server
User management
**
Remote Lab
Login
Delete data
«uses» Embedded Web Server Lab Module
«uses»
Add data «uses»
Teacher Admin
*
Chat *
«uses»
«uses» Figure 3. Deployment Diagram
Schedule Management
View data Module Management
Edit data
Delete data
EWS 7. Module management is a process for managing
experiment modules, including edit module, add
Add data
Edit data Delete data
User
Remote Lab Access Add data
module and delete module.
Web management
8. Remote Lab access is a process to access the lab
Upload File BIN
Web Cam access
module, including a binary file upload, access virtual
Virtual I/O access
Add data Edit data Delete data I/O and access the webcam.
Registration 9. Chat is a process for communication between actors.
The chat application will be active if the user has
Add data Edit data View data successfully login.
10. EWS log report is a process of storing and
Figure 2. Use Case Diagram
displaying the log event data that sent by the EWS.
Definition of an actor in a remote lab system can be
described as follows: C. Deployment Diagram
1. Admin is an actor (person) who is in charge and has The design of the deployment diagram is shown in
permission to perform operations on user data Figure 3. The deployment diagram shows the
management, web content management, EWS log configuration of components in the execution of the
data management, and can communicate via a chat application. The diagram consists of three packages,
application with remote lab users. namely client, server and remote lab. The client package
2. Teacher is an actor (person) who has permission to contains one node, which is a web browser application;
perform operation to view the EWS log report and al- server package consists of two nodes, namely Apache web
so to perform remote lab access operations for the server and MySQL database server; remote lab package
purpose of learning. The teacher can also consists of two nodes, namely embedded web server and
communicate with the user and admin via a chat lab modules.
application.
D. Activity Diagram
3. Users are actor (person) who have permission to
access the remote lab. Users can access the Remote lab system activity diagram is shown in Figure
experiment module and can communicate with 4. The activity diagram is divided into 4 sections
admin, teacher or other users using chat application. (swimlane) according to the number of actors involved in
the system: admin, teachers, users and EWS.
4. EWS is an actor (system) with permission to send an
event log to the database server, and it is capable of 1. Admin is the user with the highest privileges on the
sending log messages to the chat application. remote lab system. Admin must log in to enter the
system. If the login is successful, then the admin can
The description of use case that has been defined in the access the administrator menu, such as user
remote lab system can be described as follows: management menu, schedule management menu,
1. Login is a process of identifying and authenticating module management menu, remote lab access menu,
the remote lab user. log view menu and chat menu.
2. User management is a process to manage user data. 2. Teacher must login to enter the remote lab system. If
The process includes edit data, add data, view data the login is successful, then the teacher can access
and delete data. the teachers menu, which consists of the chat menu
3. Web content management is a process for managing and log view menu. If the teacher wants to access the
web content of the remote lab. The process includes remote lab, they must make a reservation to set the
edit content, add content and delete content. date, time and experiment modules.
4. Registration is a process of handling the registration 3. User must make the process of registration and
of new users of the remote lab. The process includes reservation to be able to access the remote lab. If the
add data, edit data and view data. login is successful, they can access the remote lab
menu that consists of chat menu, upload BIN file
5. Reservation is a process of booking for the lab
menu and access I/O menu.
activities. The process includes insert data, edit data,
delete data and view data. 4. EWS (embedded web server) is a controller
experimental module. EWS can send messages to the
6. Schedule management is a process for managing the
database server or chat application.
schedule of remote lab. The process includes edit
schedule, add schedule and delete schedule.
6 http://www.i-joe.org
PAPER
NEW ARCHITECTURE OF REMOTE LABORATORIES MULTIUSER BASED ON EMBEDDED WEB SERVER
User 1 User 2 Registration Main Login Reservation Remote Lab Access Module access Chat IP cam
1: registration
3: login validation
12:true/false validation
13: not valid message
14: module access
15: chat
16: IP Cam
18: registration
29:true/false validation
30: not valid message
31: module access
32:chat
33: IP Cam
8 http://www.i-joe.org
PAPER
NEW ARCHITECTURE OF REMOTE LABORATORIES MULTIUSER BASED ON EMBEDDED WEB SERVER
RS232
Virtual Input
Display LCD
0 1 DRIVER
STEPPER
RAM 2 3
6264
MIKROKONTROLER
AT89S52
TARGET BOARD
MIKROKONTROLER
AT89S51/52/8252
800 5
4
600
3
400
2
200 1
0 0
0 20 40 60 80 100 120 140 160 180 200 220 240 260 280
Time Since Start of Test [s]
10 http://www.i-joe.org
PAPER
NEW ARCHITECTURE OF REMOTE LABORATORIES MULTIUSER BASED ON EMBEDDED WEB SERVER