Device Control Protocol Using Mobile Phone: Jong-Hyuk Roh and Seunghun Jin
Device Control Protocol Using Mobile Phone: Jong-Hyuk Roh and Seunghun Jin
I. INTRODUCTION
With rapid development of smart phone make us to face in
front of the boundary of the world of ubiquitous computing
[1,2]. In addition to this, consumer electronics manufacturers
and telecommunication companies that feel the change of
society has released the connected device-related products and
smart home services. However, because protocols developed
by many vendors are different, there are compatibility issues
with the communication protocol. And to control many
devices, each application should be installed on the user
mobile terminal.
By using the proposed protocol in this paper, the user can
control various devices by users mobile phone via NFC and
Bluetooth. And the user interface data is downloaded from the
device to the mobile phone. Then it can make it possible to
control multiple devices with a single application.
In this paper, we describe the flow of the protocol and the
protocol message structure. Throughout the experiment we
evaluate the performance of the protocol. In addition, we show
that there is a speed improvement by using a method that does
not re-send the data of the user interface.
This paper is organized as follows. In section 2, we present
the device control protocol, and in section 3, describe the
experiment of the protocol and the simulation result. In
section 4, we describe the related works. We provide a
conclusion in section 5.
II. DEVICE CONTROL PROTOCOL
A. System
The system that uses the device control protocol consists of
a client and a server. The app installed in the client (mobile
phone) has the function of device control protocol. The server
is the one of electronic devices such as electric fan, TV, and
audio system. Using a mobile phone, the user controls the
electronic device.
ISBN 978-89-968650-3-2
355
C. User Interface
The important feature of the device control protocol is to be
able to control more than one device using only on application
Figure 3. Protocol flow
in the mobile phone. The method that the user interface is
transmitted from the device to the application of the mobile
phone makes this possible.
1. Device Connection: The client and the device are
HTML is used as the format of the data of the user interface.
connected using Bluetooth. The pairing process is needed User interface module in client has the HTML parser and
for Bluetooth connection.
renderer.
Basic paring: It is a typical method of Bluetooth pairing.
The use of a standard web browser is that if the user enters
Device sets the discoverable mode and the client detects the URL in the address bar, the web browser connects the web
the discoverable device within range.
server and receives a response message containing the HTML
NFC pairing: NFC tag that has Bluetooth address of from the web server and then shows that on the screen of the
device is attached on the device. When the mobile phone browser. When the user clicks on the hyper link, the web
is touched to the NFC tag, the paring between them is browser sends a HTTP request message to the web server
built.
related this hyperlink. Web server sends the HTTP response
Directly connecting: The client has the list of devices message corresponding to the request.
that were connected. The user selects the device in the
Because it does not use the Internet, this system works in a
list then the client sends the request message to the different way with a common web browser. The user requests
selected device.
a service by touching the screen, the touched location has the
2. Request User Interface: After the connection is established, anchor tag of HTML. Generally, URL about the hyperlink is
the client sends a request message for the data of user included in the href attributed of the anchor tag, but in this
interface to the device.
system, the command string is included
3. Request Authentication: The device can request an
authentication process.
Ex) <a href=command3>OKButton.png</a>
ISBN 978-89-968650-3-2
356
Field
type
III. EXPERIMENT
Size(Octets)
Information
1
Message type
msgID
numOfData
lenOfData
Length of body
Type
Request User Interface
Value
0x01
0x02
Request Service
0x03
Response Service
0x04
0x05
0x06
Notify
0x07
0x08
Authentication Process
0x09
ISBN 978-89-968650-3-2
357
B. Performance Test
Performance test was to measure the speed of connection
between the client and the device. The measured time is
started when the pairing begins between them, and is ended
when the smart phone shows the user interface.
For the test, we checked the time of the process 50 times. In
android phone, because the basic processes have worked in
the background, the measured error occurred frequently.
Especially, the measured value of the error is large in the
Bluetooth pairing session.
The following table shows the time of the measurement.
TABLE 3. THE TIME OF THE MEASUREMENT
Process
NFC connection
Bluetooth pairing
Time (ms)
43.9
1872.9
490~1587
138~868
ISBN 978-89-968650-3-2
358
[8]
[9]
REFERENCES
[1]
[2]
[3]
[4]
[5]
[6]
[7]
ISBN 978-89-968650-3-2
359