You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ttauber edited this page Jan 22, 2012
·
6 revisions
How to connect with bluetooth:
Make sure bluetooth is turned on on the computer
Turn the brick on
Run './bluetoothConnection.sh'
Ignore any offers to pair with stuff at the moment
A GUI should have appeared by now, if not something is wrong
In the list of connections in the GUI select Hackatar (omnidroid potentially)
Press the connect button
When the bubble appears wanting to pair you click on it
Enter in the PIN (6742)
If it worked you will be connected
If brick is off it will just fail to connect. It might fail to connect even if you did everything ok - try again, it sometimes seems to take 2 or 3 attempts. If it doesn't work then speak to James.
(just copied and pasted from readme)
--
JAVA etc.
Make sure you have the correct classpath set up (if you use an IDE, just that you have all the necessary libraries added to referenced libraries) - it's kind of weird in the console... it seems you may need to have the libraries in the subfolders or . in the classpath or something... (check out Group 9 of 2011 set-classpath.sh)
Make sure you have LD_LIBRARY_PATH set up to /group/teaching/sdp/sdp7/lejos/bluez/lib -- in Eclipse, it's Run->Run Configurations and then Environment.
you have an example Eclipse project that sends 100 integers over bluetooth (you need to have BTReceive running on the brick) in /group/teaching/sdp/sdp7/bttest