1. !
!"#$%"&#'(')"#"(%&&
*"'%+!"&,&)+-&."/-)(&
0"!/-$(&121&
2011
!"#$%&'()%*+(,%+-%"( !"#$%&'(&#*&.(
& (
&
Lan Sun (lansun@kth.se), 15 ECTS (((((/#*&.(*01(2"#$%&'(#30%"(
Hervé Ntareme
Qing An (qinga@kth.se), 15 ECTS
/#4&#*&.(
Michel Hognerud
Jun Gao (jungao@kth.se), 15 ECTS
/.*+25#0(
Laili Aidi (aidi@kth.se), 18 ECTS
Björn Pehrson!
Yasir Ali (yasireal@kth.se), 15 ECTS
SUMMER CSD
2. Remote Management Feature & GUI Design V1.1
!
Revision History
Version Date Responsible Change
V1.0 2011-08-13 Jun Gao & Yasir Ali Initial version of the document
Cover, Abbreviation, Introduction,
V1.1 2011-10-07 Laili Aidi
Reference, section’s content and format
2
4. Remote Management Feature & GUI Design V1.1
!
Summary
This document describes the Feature and GUI design of the ConDroid Application
4
5. Remote Management Feature & GUI Design V1.1
!
Abbreviation
Abbreviations used in this document:
Abbreviation Description
ADK Access Development Kit
ADB Android Debug Bridge
HiperTerminal Terminal emulation software for Windows OS
Minicom Text-based modem control and terminal emulation program for Unix- like OS
UART Universal asynchronous receiver/transmitter
IOIO A USB I/O breakout board for Android
Seeduino Arduino compatible board
SMS Short Message Service
5
6. Remote Management Feature & GUI Design V1.1
!
1. Introduction
According to [1], the Condroid project is Condroid CSD project aim is develop a Remote Management
application to access and troubleshoot the network equipments (WiFi Repeater and Optical amplifier in this
project). This application will make the Administrator enable to connect to the network equipments that
situated far away in the isolated area. In other word, the project will make a Hiperteminal or Minicom-like
application running on Android device.
This goal is identified could be done using 2 different approaches, in order t to make software for android to
communicate and control the other network devices through serial link, which are:
• Using the Open-Access API with Seeduino ADK board,
• Using the ADB with IOIO board.
In some situations, managing a network device will not always be convenient and easy, for example the location
of the equipment is far away and not easy to be reached regularly. The mobile phone is very common
equipment with lots of useful functionalities and can be carried easily. The Condroid software can provide a
local and remote control platform for the equipment connected to it. This means, by using Condroid,
administrator can use an android phone to configure equipment locally and or control it remotely through
SMS, dialing, or any available Internet connectivity, such as GPRS/3G, etc.
6
7. Remote Management Feature & GUI Design V1.1
!
2. Software Function
The functions of the Condroid application can be divided into two parts, which are the Local control function
and the Remote control function, as described below:
2.1 Local Control
In order to implement Local Control feature, the Condroid application will provide a console like platform so
user can input the specific command to connect with the equipment and get the respons after specified the
connection parameters and connection establishment. The parameter setting is similar with the Hyperterminal
or Minicom in order to connect via a serial link, including the port (which is to specify receive and transmit
pins in this situation), baud rate, parity, stop bits, etc.
2.2 Remote Control
The Condroid application is also designed so it can be accessed remotely, which will make it much more
convenient for administrator to manage and troubleshoot the equipment. Below are the specific connection
modes available in this feature:
• Controlling via SMS
In this method, the application will inspect the SMS content it receives and if it was fulfill the security and
format pattern requirement, the content in the SMS will be treated as specific command and send to the
equipment, which it is connected with. The reply from the equipment will be written into a SMS and sent back
to the sender.
• Controlling via Dialing
Because editing is a time consuming task, the SMS sometime will not be very efficient. If user wants to achieve
some complex and/or high frequent command more effectively, user can also control the equipment by calling
the Android mobile phone running Condroid application. The application then check the incoming call
according to security setting. After approving and establishing the connection, user can input preset command
script index to the commit specific command. Presetting command will be done through specific shortcut
function, which can be specified, modified and/or accessed remotely through short message as well (The later
function is targeted to be provided in version 2.0). The successfully committed command will be noticed by
SMS.
7
8. Remote Management Feature & GUI Design V1.1
!
• Controlling via Internet Connection
If there is Internet connectivity is available on side of the Condroid application and the Administrator, it will be
much more convenient to use this mode rather than SMS or Dialing mode. In this circumstance, it is possible
to control and access the Condroid using available Internet connection, such as GPRS or 3G. User can send a
SMS to the Condroid in order to get information if there is possible to access the Condroid using Internet and
try to get the connection first. After the Condroid get the IP address, it will send back a SMS informing its
connectivity state and other information. This information then can be use to connect to the Condroid in order
to get control of the devices. This will be an advanced feature for Condroid and will be provided in the next
version.
8
9. Remote Management Feature & GUI Design V1.1
!
3. Shortcut Function
As mentioned before, the shortcut is a command script list, which is preset by User according to which the
device the Condroid will be connected. After setting the shortcut, User can commit these commands very
effectively by using a single script index. For remote control via Dialing, committing command script is the
default and the only way, since User cannot input the command later when calling connection.
The scripts also can be committed when using Local control feature or Remote control via SMS. But in order
to distinguish the command between the equipment and Condroid application, there should be some
difference format between these two commands.
9