study of design and implementation techniques for … · study of design and implementation...
TRANSCRIPT
Study of Design and Implementation Techniques for WiFi based PC and
Mobile Control
Kanad Bapat1, Shruti Bhutada
2, Prachi Birla
3, Devyani Parchani
4, Prof. A. S . Hanwate
5
1,2,3,4B.E. Computer Engg., NBNSSOE, Savitribai Phule Pune University, Pune, India.
5Professor, Department of Computer Engg., NBNSSOE, Savitribai Phule Pune University, Pune,
India.
Abstract Managing your device can also easily get in
the way of productivity or efficiency if, for
example, you are working at your desktop
computer and you need to frequently pick up
your phone to reply to text messages.
This application lets you use and
manage your device over the air. It’s a
handy solution for those who hate having to
switch between computer and phone
frequently.
In this application one can manage the
functionalities of his device from the PC,
such as messaging, managing files, enabling
or disabling device modes etc.
1.Introduction
1.1. Scope
This application will work on server-client
basis, such that the controlling device acting
as a client will be able to manage the server
(controlled device). Both the devices (PC
and mobile) must be connected to the same
wireless network.
In this application one can manage the
functionalities of his device from the PC,
such as messaging, managing files, enabling
or disabling device modes etc. The reverse
communication(controlling PC from mobile)
is also possible by running severs on both
PC and the mobile which will also act as
clients, requesting the other server to gain its
control.
The users can read, write, reply to the text
messages and manage and play multimedia
files, add or edit contacts, install or uninstall
applications, check and manage call logs,
and updated status related to your device
and much more.
This paper explains the overall design of the
system and its components and interfaces. It
takes through the software and hardware
interfaces, communication interfaces. It also
specifies the user requirements, and the
specifactions.
1.2. Proposed System
The application we are building is
completely independent of any other system.
There are similar applications/softwares
already present in the market. One of them
is Airdroid.
Our application provides various similar
functions like checking the text messages,
replying to them on your big
screen(PC/laptop), maintaining or checking
the call logs, accessing the system services
like camera, file manager, media player,
audio recorder etc. Our application will
attempt to allow the user to avail the calling
Kanad Bapat et al, Int.J.Computer Technology & Applications,Vol 6 (1),81-84
IJCTA | Jan-Feb 2015 Available [email protected]
81
ISSN:2229-6093
services of the cell-phone through the
connected PC/laptop.
Fig 1. Proposed System
As shown in Fig 1, there are two devices
communicating with each other through a
wireless network. Both the devices i.e your
mobile and PC will be able to communicate
with the help of network addresses. This
leads to the client-server based
communication and thus creating a
connection oriented and reliable
communication channel.
2. System Flow
The PC acting as a client will send the
request to the connected Mobile as and
when the user will ask for the access trough
the PC.
This request will be communicated to the
Mobile through the network using different
network protocols.
This request will be processed by the Mobile
and then it will render the access to its
system services as a response to the request,
using different service classes.
This response will be sent to the PC using
different network protocols, and then will be
provided to the user through the PC
application GUI.
3.Interfaces
3.1. Hardware Interfaces
The application is connected with the two
devices:
The Android cellphones running Android
2.1 or later.
The Web Desktop should be compatible
with mst modern web browsers, including
Chrome 12 or later Firefox 3.6 or later.
The android device and computer need to be
in the same WiFi network to connect.
A typical wireless access point with a stock
antenna has a range of 35m indoors and
100m outdoors. On routers with detachable
antennas, it is possible to improve the range
by fitting upgraded antennas which have
higher gaining particular directions. Mobile
use of WiFi over wider ranges is limited.[4]
3.2. Software Interfaces
Software interfaces are required to access
the system services of the cell-phone from
the remote PC/laptop. This can be done by
the APIs provided by Android. Using these
interfaces we would be able to access the
camera, audio manager, files and folders,
text messages etc over the established
connection.
Components :
Camera: The Android framework includes
support for various cameras and camera
features available on devices, allowing you
to capture pictures and videos in your
applications.
The Android framework supports capturing
images and video through the Camera API
or camera Intent. Camera ,This class is the
primary API for controlling device cameras.
This class is used to take pictures or videos
when you are building a camera application.
SurfaceView: This class is used to present a
live camera preview to the user[2]
.
MediaRecorder: This class is used to record
Kanad Bapat et al, Int.J.Computer Technology & Applications,Vol 6 (1),81-84
IJCTA | Jan-Feb 2015 Available [email protected]
82
ISSN:2229-6093
video from the camera.
Intent
MediaStore.ACTION_IMAGE_CAPTURE
or
MediaStore.ACTION_VIDEO_CAPTURE
can be used to capture images or videos
without directly using the Camera object[2]
.
Media Playback: The Android multimedia
framework includes support for playing
variety of common media types, so that you
can easily integrate audio, video and images
into your applications. You can play audio
or video from media files stored in your
application's resources (raw resources), from
standalone files in the filesystem, or from a
data stream arriving over a network
connection, all using MediaPlayer APIs[2]
.
The following classes are used to play sound
and video in the Android framework:
MediaPlayer: This class is the primary API
for playing sound and video[2]
.
AudioPlayer: This class manages audio
sources and audio output on a device[2]
.
Text Copy and Paste: When you use the
clipboard framework, you put data into a
clip object, and then put the clip object on
the system-wide clipboard. The clip object
can take one of three forms[2]
:
Text: A text string. You put the string
directly into the clip object, which you then
put onto the clipboard. To paste the string,
you get the clip object from the clipboard
and copy the string to into your application's
storage[2]
.
This section describes the classes used by
the clipboard framework:
ClipboardManager: In the Android system,
the system clipboard is represented by the
global ClipboardManager class. You do not
instantiate this class directly; instead, you
get a reference to it by invoking
getSystemService
(CLIPBOARD_SERVICE)[2]
.
ClipData,ClipData.Item,and ClipDescription
To add data to the clipboard, you create a
ClipData object that contains both a
description of the data and the data itself.
The clipboard holds only one ClipData at a
time. A ClipData contains a ClipDescription
object and one or more ClipData.Item
objects[2]
.
Storage Options:
Your data storage options can be:
Network Connection: Store data on the web
with your own network server[2]
.
Using a Network Connection: You can use
the network (when it's available) to store and
retrieve data on your own web-based
services. To do network operations, use
classes in the following packages: Java.net.*
& android.net.*[2]
3.3. Communications Interfaces
Both the devices will communicate using
different network protocols such as HTTP,
FTP, MTP, IP.
HTTPS protocol to allow you to establish an
even safer remote connection between your
device and computer[8]
.
swiFTP is a lightweight FTP server that lets
you transfer multiple files from Windows,
Linux through a secure FTP connection[5]
.
Your phone will act as a FTP server. This
will allow you to access your phone from a
remote network via a proxy.
The Media Transfer Protocol, introduced by
Microsoft, is a protocol designed for
intelligent storage devices like smartphones
and digital audio players. It is based on, and
fully compatible with, the Picture Transfer
Protocol (PTP). MTP allows the
synchronization of files between portable
devices and a personal computer (PC)[6]
.
Kanad Bapat et al, Int.J.Computer Technology & Applications,Vol 6 (1),81-84
IJCTA | Jan-Feb 2015 Available [email protected]
83
ISSN:2229-6093
4. Product Functions
The main intent of the application is to
wirelessly connect the mobile with the
PC/Laptop.
This connection will allow us to access the
different services of the mobile through the
connected PC.
We will be able to access the camera, check
for the different photos and manage them.
One can also manage its files like
move,copy, delete from one place to
another.
We can also have an access to the different
medias like music, audio etc.
The user can even check, reply to the
messages through his/her PC/laptop.
The calling services can also be used, as
well as manage and check the call logs.
This application also allows to access
various applications on your phone, install
and uninstall them.
5. User Characteristics
This application is intended to be useful for
the users who cannot access their mobile
phones physically but need to use the
facilities very frequently.
There are no restrictions laid on the
technical expertise of the user and the
application can be used by anyone needing
it.
The application just needs the user to have
an Android based phone, a PC/Laptop and
an efficient WiFi connection for the both.
5.1. Constraints
Hardware limitations: The mobile and the
PC must be present physically within the
range limits of the network routers.
Interface to other applications: This
application cannot be used inside or in
association with any other application.
Parallel operation: The application cannot
connect with more than one Mobile parallel.
5.2. Assumptions and Dependencies
The application depends only on the
hardware specifications of the WiFi router
and the two devices to be connected.
6. Specific Requirements
The system shall connect the devices
wirelessly.
The system should allow the user to access
the mobile services from his PC.
The system may further allow the user to
avail the calling services from his PC
through the wireless connection.
6.1. Performance Requirements
The system supports only a single
connection between one mobile and one PC.
The system is fast in performance such as
establishment of connection, transfer of
files, and other system services.
7. References
[1] “Android Apps for absolute
Beginners” – Wallace Jackson.
[2] www.android.com
[3] https://developer.android.com/guide/
index.html
[4] http://en.wikipedia.org/wiki/Wi-Fi
[5] http://en.wikipedia.org/wiki/File_Tra
nsfer_Protocol
[6] http://www.2brightsparks.com/resour
ces/articles/media-transfer-protocol.pdf
[7] http://www.androidpolice.com/2010/
08/02/tutorial-how-to-transfer-files-
tofrom-your-android-phone-over-wlan/
[8] http://www.howtogeek.com/howto/4
1583/how-to-transfer-files-between-
your-pc-and-android-phone-wirelessly/
Kanad Bapat et al, Int.J.Computer Technology & Applications,Vol 6 (1),81-84
IJCTA | Jan-Feb 2015 Available [email protected]
84
ISSN:2229-6093