03.08.2010 22:48:08 UTCgeändert am 03.08.2010 22:48:16 UTC
Android Zephyr™ HxM Samsung Galaxy S (i9000)
Also bei dir hat sich das Problem mit einem Update auf die 2.1 erledigt?
Ich habe ein i9000 mit 2.1 und es ist nicht möglich sinnvolle Daten vom HxM zu bekommen. Das Gerät ist aber in Ordnung wenn ich es mit meinen WinMobile-PDA benutzte.
Siehe http://www.gps-sport.net/trainings/running_358981
Nach einer Weile 1-2 min kommt dass die Verbindung vom Herzfrequenzmesser schlecht wäre und das Herzsymbol bleibt lila und ist "zerbrochen". Der Puls bleibt ab diesen Moment unverändert die par Änderungen welche zu sehen sind kommen davon das ich die Verbindung manuell unterbrochen und wieder hergestellt habe.
See also http://www.gps-sport.net/forums/thread/1532-0/Keine-Sprachausgabe-auf-HTC-Desire
Cross posting this entry from the software category. The thread over there deals with the Zephyr HxM as a secondary issue - meaning it mightn't be easy to find...
24.04.2010 16:47:05 UTC geändert am 24.04.2010 17:03:03 UTC
A fix to the bluetooth connection problem
Hi
If this problem still is not resolved, the code below describes how to make the connection work with Android 2.1 (Tested on HTC Desire). Just replace "00:07:80:89:EE:EB" with the MAC of your HXM to make it connect. After the connection is successful, a regular method with input = socket.getInputStream() can be used.
BluetoothDevice hxm = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:07:80:89:EE:EB");
Method m = hxm.getClass().getMethod("createRfcommSocket", new Class[]{int.class});
socket = (BluetoothSocket)m.invoke(hxm, Integer.valueOf(1));
socket.connect();
With a HTC Windows Mobile smartphone I was able to get the heartrate monitor working. At first, it didn't look as though it was going to work. The pairing was quite dodgy (the HxM device was always shown as being 'disconnected' in the Windows Mobile bluetooth settings). In run.gps, under 'Settings -> Heartrate Monitor' there are many more options available than on run.gps for Android. The baud rate can be changed, as can the COM port.
When I changed the COM port to COM1, it worked.
On Android, I guess a COM port is known as /dev/tty or something like that. I don't know how to change this - run.gps doesn't give me any options.
Is there anyone who has successfully got the heartrate monitor working with Android and if so, how.
The problem is that run.gps will not connect the Zephyr bluetooth transmitter. In the Android phone's settings, I already paired the HxM device (using 1234 as indicated in the run.gps manual) and the pairing was successful. At that stage, Android told me that the device was 'paired but not connected'.
When I went to run.gps -> Configuration -> Heart Rate Monitor the Zephyr was preselected, so I clicked on the 'connect' button. After a while, I got the 'could not connect' message - looks like it timed out.
I made sure that there was no other bluetooth paired device present. Is there anything else I can do to debug this? I'd like to connect to the Zephyr somehow - perhaps hcidump or something like that. Are there any tips/advice?