2010/10/5 bsd_mike <bsdd...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
>
>
2010/10/5 bsd_mike <bsdd...@gmail.com>:
The android code is here:
http://code.google.com/p/android-notifier/source/browse/trunk/AndroidNotifier/src/org/damazio/notifier/notification/BluetoothNotificationMethod.java
And the server code is here:
http://code.google.com/p/android-notifier/source/browse/trunk/MultiDroidNotifier/src/main/java/com/notifier/desktop/notification/bluetooth/BluetoothNotificationReceiver.java
I see these messages in android:
E/BluetoothEventLoop.cpp( 86): event_filter: Received signal
org.bluez.Device:PropertyChanged from
/org/bluez/14139/hci0/dev_07_D3_00_71_2D_10
D/BluetoothService( 86): 07:D3:00:71:2D:10 bond state 11 -> 12 (0)
V/BluetoothEventRedirector(13338): Received
android.bluetooth.device.action.BOND_STATE_CHANGED
E/BluetoothService.cpp( 86): stopDiscoveryNative: D-Bus error in
StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
And the android client prints the following, which means no
IOException is thrown even though no message is sent to the server:
D/RemoteNotifier(14018): Sent notification over Bluetooth (0 retries).
Thank you
2010/10/5 bsd_mike <bsdd...@gmail.com>:
Leandro: On the client side (Android) you are creating a MITM socket
with encyrption enabled.
What kind of socket is created on the server side ? notifier.acceptAndOpen code.
Is the Bluez agent registered with DisplayYesNo on the PC side ?
> Is the Bluez agent registered with DisplayYesNo on the PC side ?
I don't know how to see if this is registered. If you want to know if
the Nexus One is paired with the PC, yes it is.
2010/10/5 jaikumar Ganesh <jaik...@gmail.com>:
Ok when you paired, did you get a passkey dialog displayed on both
Android and PC to compare the passkey or did it just pair
automatically ?
Also which bluez version is being used on the PC ?
This is the output of apt-cache policy bluez:
Installed: 4.69-0ubuntu2
Candidate: 4.69-0ubuntu2
And this one of apt-cache policy libbluetooth-dev:
Installed: 4.69-0ubuntu2
Candidate: 4.69-0ubuntu2
I have these files in /usr/lib:
libbluetooth.la
libbluetooth.so -> libbluetooth.so.3.9.0
libbluetooth.so.3 -> libbluetooth.so.3.9.0
libbluetooth.so.3.9.0
Bluecove loads libbluetooth.so as documented in this link:
http://bluecove.org/bluecove-gpl/
You should be able to reproduce this installing libbluetooth-dev
package on Ubuntu and running these classes I posted before using a
Nexus One running non-rooted Froyo 2.2.1.
2010/10/5 jaikumar Ganesh <jaik...@gmail.com>:
Leandro: Ah, I guess your PC is Bluetooth 2.0. Can you provide with
hcidump on both sides and a logcat on the android side ?
Thanks
2010/10/6 jaikumar Ganesh <jaik...@gmail.com>:
DEBUG [bluetooth] - open using BlueCove javax.microedition.io.Connector
DEBUG [bluetooth] - connecting
btspp://localhost:7674047e6e474bf0831f209e3f9dd23f;name=AndroidNotifierService;authenticate=true;encrypt=true
DEBUG [bluetooth] - RFCOMM set authenticate
DEBUG [bluetooth] - created SDPSession 30213872
DEBUG [bluetooth] - BlueZ major verion 4 detected
DEBUG [bluetooth] - function sdp_extract_pdu of bluez major version 4 is called
DEBUG [bluetooth] - pdu scanned 79 -> 79
This is the log output when a message is successfully received by the
desktop app:
DEBUG [bluetooth] - RFCOMM client accepted, handle 38
DEBUG [bluetooth] - new RemoteDevice 0023769EC65D
DEBUG [bluetooth] - new devicesCashed 0x23769ec65d
DEBUG [bluetooth] - connection open, open now 1
DEBUG [bluetooth] - Connection closed, Connection reset by peer
INFO [NotificationManagerImpl] - Notification received:
notificationId=38608649427977616, type=SMS <-- Here is the message
content I got
DEBUG [bluetooth] - closing RFCOMM Connection 38
DEBUG [bluetooth] - connection closed, open now 0
DEBUG [bluetooth] - RFCOMM disconnect, handle 38
I get two successful connections and then no log at all for new
messages, but hcidump says something is happening.
2010/10/6 Leandro de Oliveira <lehp...@gmail.com>:
I'm trying to keep all bluetooth related discussion in this page if
you want to take a look:
http://code.google.com/p/android-notifier/issues/detail?id=3