As I'm totally new to Android/Java-Development I'm very surprised that
it took only about 8-10 hours to get it working.
I had absolutly no knowledge of Java-programming and some things are
different than in pascal.
But the basic principles are the same and online documentation is very
good so far.
Some technical information just for interest:
I'm using a Meade LXD-75 Mounting with a 6" 1200mm Newton-Telescope.
The serial command protocol can be found here:
http://www.meade.com/support/LX200CommandSet.pdf
For bluetooth connection I bought a cheap serial-adapter (17 EUR):
"Shpinx Electronics Pico Plug". This adapter needs hardware-handshake
on RS232, which isn't supported by the telescope. You need to bridge
pins 7+8 to get it working.
Also I ran into problems connecting to the adapter via Bluetooth-SPP.
My LG-Phone worked fine, but my two Archos tablets couldn't connect.
After some googleing I found a workaround, as it seems that this
problem is not uncommon on various devices:
tmp = createRfcommSocketToServiceRecord(UUID) with SPP-UUID
"00001101-0000-1000-8000-00805F9B34FB" has problems on some android-
devices.
I replaced it with the following workaround I found:
Method m = mmDevice.getClass().getMethod("createRfcommSocket",
new Class[] { int.class });
tmp = (BluetoothSocket)m.invoke(mmDevice, Integer.valueOf(1));
Now all of my androids connect to the adapter without problems.
Joe