Skip to content
ttauber edited this page Jan 22, 2012 · 6 revisions

How to connect with bluetooth:

  1. Make sure bluetooth is turned on on the computer
  2. Turn the brick on
  3. Run './bluetoothConnection.sh'
  4. Ignore any offers to pair with stuff at the moment
  5. A GUI should have appeared by now, if not something is wrong
  6. In the list of connections in the GUI select Hackatar (omnidroid potentially)
  7. Press the connect button
  8. When the bubble appears wanting to pair you click on it
  9. Enter in the PIN (6742)
  10. 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.

  1. 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)
  2. 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

Clone this wiki locally