- Summer 2005 Project
-
- Bluetooth and
RFID -
- Run -
To run the application follow these
steps:
- Setup -
- Make sure Bluetooth is running on both PCs
- Connect the RFID reader to 'Coordinator' PC using
the serial port; turn on RFID reader
- Have the RFID tags ready
- Have the Linux PDA ready
- Get the files -
On the 'Coordinator' computer:
-
Click on -coord zip- link located
on the menu to the left
-
Save the zip file (coordinator.zip)
on the computer
-
Unzip the file
On the 'Server' computer:
-
Click on the -server zip- link
located on the menu to the left
-
Save the zip file (server.zip)
on the 'Server' computer
-
Unzip the file
- Run & Use the application -
-
On 'Server' computer
double-click server.bat
-
When window opens click on 'Start'
-
On 'Coordinator' computer
double-click coordinator.bat
-
When window opens follow the
directions in the text area by selecting one of two options: write/read or
read_only
-
If write/read was selected: hold
each of the five tags up to the RFID reader until a confirmation message
appears, saying that the tagWrite was successful. Then hold the tags again,
until each one of them is read (tagRead was successful)
-
If read_only was selected: hold
each of the tags up to the RFID reader until a confirmation appears that
data was read. Note: You do not need to hold up the tags a second
time
-
After the tag information is read,
click "Find device" button
-
When the text area has a message
indicating that the inquiry has completed, click "Find service"
button
-
When the text area has a message
indicating that the search has completed and a matching service was found,
click "Send data via Bluetooth to the Server" button
-
At this point the transfer of data
is completed
-
On the 'Server' computer should be
a confirmation message that data was received
-
Also, a string alert has been sent
to the PDA
-
To view the data using the
graphical user interface click "Display data" on the 'Server'
computer
- Note -
It is possible that the .bat files not
work on some computers. To manually run the server and coordinator do the
following:
'Server' computer:
javac -classpath avetanaBluetooth.jar
Server.java
java -cp avetanaBluetooth.jar;. Server
'Coordinator' computer:
javac -classpath avetanaBluetooth.jar;C:\j2sdk142\lib\comm.jar;. Coordinator.java
java -cp avetanaBluetooth.jar;C:\j2sdk142\lib\comm.jar;. Coordinator
'j2sdk142' is the name of the
current Java SDK directory
- Note -
In order to run this application you
need the Java Communication package installed on the 'Coordinator' computer.
--> get comm.jar here
<--
Installing is Communication
API:
-
Download the appropriate
version of the Comm API using the link above
-
Unzip the file you have
saved
-
Put comm.jar in the
lib directory of your current Java SDK
-
Put the javax.comm.properties
in the same lib directory of your current Java SDK
-
Put win32com.dll in
the bin directory of your current Java SDK
That is all you need to do!
|