Instructions to run the bluetooth project

moodusroundoΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 5 χρόνια και 2 μήνες)

210 εμφανίσεις

Instructions to run the project “
DYNAMIC SHARING OF INFORMATION
ON A BLUETOOTH BASED OPPURTUNISTIC NETWORK.”


1.

Open the project in NetBeans.

2.

Include the bluecove
-
2.1.0(1).jar file in the Libraries folder of the project.
The jar file should be
on your
system.

3.

Before carrying on with the project switch the Bluetooth ‘OFF’ of all the phones around you so
that there would be no interference.

4.

Create a folder in your system with the name ShareData.

5.

Open the SampleSPPServer.java where in you have to change th
e path

below and specify the
path which can give access to the ShareData folder on your system

in couple of places
.


File folder = new File("C:/Documents and Settings/Vijay Shankar/My
Documents/ShareData");


6.

Repea
t the same in
SPPClientGUIXML
.java and
SPPC
lientGUI
.java
.

7.

Run the
SampleSPPServer.java on all the systems which are in the network.

8.

Run the
SPPClientGUIXML
.java which initializes the client on that system. Press the Start
Application button which displays the active Bluetooth systems, Bluetooth add
ress and the list
of files present in the network at that point of time.

9.

Repeat step 8 on the other systems which can eventually
s
how all the files present in the
network which are for sharing.

10.

Later run the
SPPClientGUI
.java and request for the files
present in the network.

11.

This retrieves the respective files from the server present in the network in the form of the XML
document and the client which requested the file retrieves the XML document, parses it and
gives the actual data present in the file.