Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth notifications not delivered #3

Open
GoogleCodeExporter opened this issue Jan 31, 2016 · 187 comments
Open

Bluetooth notifications not delivered #3

GoogleCodeExporter opened this issue Jan 31, 2016 · 187 comments

Comments

@GoogleCodeExporter
Copy link

The Android app doesn't seem to be able to send Bluetooth notifications on a 
Nexus One.

The phone is paired with just one computer, and bluetooth works in general.  
(E.g., I can transfer files with OBEX.)  PacketLogger doesn't show any 
bluetooth 
traffic from the phone when I send a test notification, so I'm pretty sure this 
is 
a bug on the handset side, not the computer side.

Tested on a Nexus One running Android 2.1 (build ERD79).  On the computer 
side, I tested with both a Mac Mini (Macmini2,1) running 10.5.8 and a Mac 
Book Pro (MacBookPro5,4) running 10.5.8.

Original issue reported on code.google.com by satw...@disjoint.net on 28 Jan 2010 at 9:08

@GoogleCodeExporter
Copy link
Author

So apparently this is an issue with having multiple bluetooth devices paired. 
I'm adding 
bluetooth device selection soon, but I'm attaching your patch for review in the 
meantime.

Original comment by rdamazio@gmail.com on 2 Feb 2010 at 2:31

  • Changed state: Accepted
  • Added labels: OpSys-Android

Attachments:

@GoogleCodeExporter
Copy link
Author

Patch reviewed and appears to work in my device, submitted as r67

Original comment by rdamazio@gmail.com on 2 Feb 2010 at 2:41

@GoogleCodeExporter
Copy link
Author

r68 adds bluetooth target device selection.
r72 adds a possible regression - if lots of notifications are sent very quickly 
(unlikely), 
some of them may fail.

Please let me know if the latest version works on the N1.

Original comment by rdamazio@gmail.com on 7 Feb 2010 at 12:35

@GoogleCodeExporter
Copy link
Author

Apparently r72 introduced a bug which breaks all delayed notifications. 
Preparing 
another fix.

Original comment by rdamazio@gmail.com on 18 Feb 2010 at 12:29

@GoogleCodeExporter
Copy link
Author

Maybe, just maybe, r83 will fix what you're experiencing. Please update from 
the market 
and let me know.

Original comment by rdamazio@gmail.com on 22 Feb 2010 at 1:59

@GoogleCodeExporter
Copy link
Author

I have a motorola droid running 2.0.1 and bugless beast rom 1.1 everything 
seems to connect fine to my mac 
mini. i run test notification for pairing with mac app. it finds device fine. i 
have growl running. no notifications 
display though. please help.

Original comment by lunacy...@gmail.com on 12 Mar 2010 at 10:50

@GoogleCodeExporter
Copy link
Author

lunacyent, can you paste or attach the log output of the mac application here, 
after a 
notification is received (but not displayed)? You can find it by running 
Applications > 
Utilites > Console, then searching for MacDroidNotifier.

Do test notifications also not display?

Original comment by rdamazio@gmail.com on 15 Mar 2010 at 3:14

@GoogleCodeExporter
Copy link
Author

Installed from market and from apk here - nexus one owner also reports no 
receipt of
bluetooth notifications. Wifi to specific IP, fine.

Original comment by gavin.co...@gmail.com on 24 Mar 2010 at 4:53

@GoogleCodeExporter
Copy link
Author

Test notifications and regular notifications both are not received (tho phone 
reports
they are sent)

Original comment by gavin.co...@gmail.com on 24 Mar 2010 at 7:52

@GoogleCodeExporter
Copy link
Author

I still haven't been able to reproduce this, even on the Nexus One - could you 
attach 
or paste the output of the android log after sending a (real or test) 
notification this 
way?
You can get the log by installing an app called alogcat from the market, which 
allows 
you to e-mail it.

Are you using any other bluetooth devices, like a headset?

(I'm also assuming you checked the basics - that bluetooth is enabled, that the 
devices are paired, etc.)

Original comment by rdamazio@gmail.com on 24 Mar 2010 at 8:10

@GoogleCodeExporter
Copy link
Author

Raising the priority since more people are reporting the issue.

Original comment by rdamazio@gmail.com on 24 Mar 2010 at 8:11

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

@GoogleCodeExporter
Copy link
Author

Bruno has a Nexus One and was able to reproduce it. He has kindly volunteered 
to 
investigate and fix the problem.

Original comment by rdamazio@gmail.com on 25 Mar 2010 at 2:28

@GoogleCodeExporter
Copy link
Author

We just tried multiple times with the Nexus One, both with the current and a 
future version of Android, and we're 
still unable to reproduce. Can someone provide a log output?

Original comment by rdamazio@gmail.com on 30 Mar 2010 at 8:09

@GoogleCodeExporter
Copy link
Author

Ping? Any logs?

Original comment by rdamazio@gmail.com on 7 Apr 2010 at 6:05

  • Added labels: Component-Communication, Stability

@GoogleCodeExporter
Copy link
Author

I have the exact same issue being reported here. Here are the relevant logs. No 
logs
are being generated when I send a test notification. However in the list of 
bluetooth
devices in System Preferences -> Bluetooth, the connection status goes from red 
to
green for my Nexus One whenever I send a test notification. This probably means 
the
test notification reaches the mac, but the desktop app fails to receive the 
notification.

4/7/10 10:56:51 PM MacDroidNotifier[2525] Saving preferences 
4/7/10 10:56:51 PM MacDroidNotifier[2525] Pairing set to required but no devices
paired, switching to not required. 
4/7/10 10:56:51 PM MacDroidNotifier[2525] Pairing set to required but no devices
paired, switching to not required. 
4/7/10 10:57:31 PM MacDroidNotifier[2640] started listening for WiFi 
notifications 
4/7/10 10:57:31 PM MacDroidNotifier[2640] Started listening for Bluetooth 
notifications 

Original comment by krishn...@gmail.com on 7 Apr 2010 at 5:35

@GoogleCodeExporter
Copy link
Author

From Console.app:
4/13/10 4:11:03 PM MacDroidNotifier[46560] started listening for WiFi 
notifications 
4/13/10 4:11:05 PM MacDroidNotifier[46560] Started listening for Bluetooth 
notifications 

Attached is the droid log grepped for remotenotifier|bluetooth, let me know if 
this
isn't enough of the log.

Original comment by Matthew....@gmail.com on 13 Apr 2010 at 11:31

Attachments:

@GoogleCodeExporter
Copy link
Author

Since I can't reproduce this, I'm taking a guess at what the problem may be - 
can one of you test the attached 
APK and see if it solves the problem?

Thanks

Original comment by rdamazio@gmail.com on 14 Apr 2010 at 2:12

Attachments:

@GoogleCodeExporter
Copy link
Author

Works :) Thanks!

Original comment by gavin.co...@gmail.com on 14 Apr 2010 at 7:08

@GoogleCodeExporter
Copy link
Author

Weird.  Downloaded it and it still doesn't work for me.  I'll uninstall and
re-install instead of doing an update/replace.

Original comment by tchentc...@gmail.com on 14 Apr 2010 at 8:05

@GoogleCodeExporter
Copy link
Author

What this new binary does it just try again (up to 10 times) if sending the 
notification fails.

Original comment by rdamazio@gmail.com on 14 Apr 2010 at 9:21

@GoogleCodeExporter
Copy link
Author

Does this app generate a log file I can drop on here for your review?

Original comment by tchentc...@gmail.com on 14 Apr 2010 at 9:51

@GoogleCodeExporter
Copy link
Author

Yes it does. To get the log you have to use an app such as alogcat (available 
from the market).

Original comment by rdamazio@gmail.com on 14 Apr 2010 at 11:31

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Same here with moto droid user using a custom rom. Wifi works fine though.

Original comment by ekimia1987@gmail.com on 28 Apr 2010 at 8:36

@GoogleCodeExporter
Copy link
Author

Windows 7 Starter on a Samsung Netbook
USB-Bluetooth device by Sitecom
HTC Sensation 4G


Not working either. Love the idea though.

Original comment by ameesdo...@gmail.com on 5 Oct 2011 at 8:02

@GoogleCodeExporter
Copy link
Author

Yet another example of working fine, then deciding not to work at all:

2011-11-12 14:42:20,265 DEBUG [bluetooth] - rfcomm (16) client connected
2011-11-12 14:42:20,265 DEBUG [bluetooth] - rfcomm MTU 1007
2011-11-12 14:42:20,266 DEBUG [bluetooth] - connection open, open now 1
2011-11-12 14:42:20,266 DEBUG [bluetooth] - ->read(byte[4096])
2011-11-12 14:42:20,275 DEBUG [bluetooth] - read([]) return 58
2011-11-12 14:42:20,275 DEBUG [bluetooth] - ->read(byte[4096])
2011-11-12 14:42:20,776 DEBUG [bluetooth] - read([]) received 0
2011-11-12 14:42:20,776 DEBUG [bluetooth] - read([]) no data
2011-11-12 14:42:20,776 DEBUG [bluetooth] - read([]) return EOF
2011-11-12 14:42:20,777 INFO [NotificationManagerImpl] - Notification received: 
notificationId=1242453231589675, type=Ping
2011-11-12 14:42:20,781 DEBUG [bluetooth] - closing RFCOMM Connection 16
2011-11-12 14:42:20,781 DEBUG [bluetooth] - connection closed, open now 0
2011-11-12 14:42:20,906 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2011-11-12 14:42:30,445 DEBUG [bluetooth] - rfcomm (17) client connected
2011-11-12 14:42:30,445 DEBUG [bluetooth] - rfcomm MTU 1007
2011-11-12 14:42:30,445 DEBUG [bluetooth] - connection open, open now 1
2011-11-12 14:42:30,445 DEBUG [bluetooth] - ->read(byte[4096])
2011-11-12 14:42:30,456 DEBUG [bluetooth] - read([]) return 58
2011-11-12 14:42:30,456 DEBUG [bluetooth] - ->read(byte[4096])
2011-11-12 14:42:30,957 DEBUG [bluetooth] - read([]) received 0
2011-11-12 14:42:30,958 DEBUG [bluetooth] - read([]) no data
2011-11-12 14:42:30,958 DEBUG [bluetooth] - read([]) return EOF
2011-11-12 14:42:30,958 INFO [NotificationManagerImpl] - Notification received: 
notificationId=1242453241668643, type=Ping
2011-11-12 14:42:30,958 DEBUG [bluetooth] - closing RFCOMM Connection 17
2011-11-12 14:42:30,958 DEBUG [bluetooth] - connection closed, open now 0
2011-11-12 14:42:31,082 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2011-11-12 14:44:54,851 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2011-11-12 14:44:54,975 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
    at com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Native Method)
    at com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFCommConnectionNotifier.java:74)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:83)
    at java.lang.Thread.run(Thread.java:680)
2011-11-12 14:44:55,031 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2011-11-12 14:45:03,050 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2011-11-12 14:45:03,198 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
    at com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Native Method)
    at com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFCommConnectionNotifier.java:74)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:83)
    at java.lang.Thread.run(Thread.java:680)
2011-11-12 14:45:03,198 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection

Original comment by reachjo...@gmail.com on 12 Nov 2011 at 2:47

@GoogleCodeExporter
Copy link
Author

I send a test notification but my laptop does not show anything.  I am 
connected, paired, encrypted and authenticated.  As I read this fixes above it 
looks like you need to be a programmer to figure this out.  In layman's terms, 
what do I need to do to get this working?  It's a great idea of an app but I 
can not get it to work.

Original comment by roblat...@gmail.com on 22 Nov 2011 at 3:16

@GoogleCodeExporter
Copy link
Author

Oleg@gmail has it right on. Installing Bluetooth File Transfer app does it for 
me too. Seems like its able to keep the connection open.

Im using my bluetooth connected to my mac pro to do handsfree through my mac.

Original comment by msguasta...@gmail.com on 10 Jan 2012 at 5:39

@GoogleCodeExporter
Copy link
Author

I Have exactly the same error from my Macook with Lion and my Samsung Galaxy S2

Original comment by m...@jeanherfs.nl on 27 Jan 2012 at 1:00

@GoogleCodeExporter
Copy link
Author

I'm having the same issue as wel.
Using Mac OS Lion10.7.2 and and HTC Sensation with Android 2.3.4 and following 
trace in my log:

2012-01-30 16:00:21,513 INFO [NotificationManagerImpl] - Waiting for test 
notification to pair device
2012-01-30 16:00:26,456 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2012-01-30 16:00:26,573 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
    at com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Native Method)
    at com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFCommConnectionNotifier.java:74)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:83)
    at java.lang.Thread.run(Thread.java:680)

Original comment by wtr...@gmail.com on 30 Jan 2012 at 3:04

@GoogleCodeExporter
Copy link
Author

I have the same issue, again with Mac OS Lion 10.7.2 and a Samsung Galaxy S2. I 
have tried installing Bluetooth File Transfer and that does NOT seem to have 
helped for me, but I will keep trying. Here is my stack trace.

If there is an debugging or testing to be done, let me know.

2/6/12 2:47:55.524 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      rfcommServiceOpenNotificationCallback
2/6/12 2:47:55.524 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStackRFCOMMServer.mm(270)
2/6/12 2:47:55.558 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      RFCOMM incomming connection authenticated
2/6/12 2:47:55.558 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStackRFCOMMServer.mm(296)
2/6/12 2:47:55.727 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      rfcommChannelClosed->
2/6/12 2:47:55.727 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStackRFCOMM.mm(89)
2/6/12 2:47:55.727 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      rfcommChannelClosed
2/6/12 2:47:55.727 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStackRFCOMM.mm(92)
2/6/12 2:47:55.727 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      rfcommChannelClosed
2/6/12 2:47:55.727 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStackRFCOMM.mm(160)
2/6/12 2:47:55.871 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
2012-02-06 14:47:55,870 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2/6/12 2:47:55.871 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      invoke    BTOperation RFCOMMChannelClose
2/6/12 2:47:55.871 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStack.mm(240)
2/6/12 2:47:55.871 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:       execute  BTOperation RFCOMMChannelClose
2/6/12 2:47:55.871 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStack.mm(223)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:       finished BTOperation RFCOMMChannelClose
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStack.mm(225)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
NATIVE:      return    BTOperation RFCOMMChannelClose
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
    OSXStack.mm(248)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
2012-02-06 14:47:55,994 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop:     at 
com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Na
tive Method)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop:     at 
com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFC
ommConnectionNotifier.java:74)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop:     at 
com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(
BluetoothNotificationReceiver.java:83)
2/6/12 2:47:55.995 PM [0x0-0x145145].com.notifier.android-notifier-desktop:     at 
java.lang.Thread.run(Thread.java:680)
2/6/12 2:47:55.996 PM [0x0-0x145145].com.notifier.android-notifier-desktop: 
2012-02-06 14:47:55,995 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection

Original comment by pardsb...@gmail.com on 6 Feb 2012 at 7:51

@GoogleCodeExporter
Copy link
Author

Seeing the same problem on Galaxy SII and Ubuntu 11.10. The delivery is flaky. 
Some notifications get through. Logs won't show anything that is not already 
posted in the thread.

Rodrigo, can add more logging to both desktop and android parts so that we 
could help you catch this ugly bug?

Original comment by kapran...@gmail.com on 22 Feb 2012 at 7:35

@GoogleCodeExporter
Copy link
Author

same here on Ubuntu 11.14 AND htc explorer  

Original comment by prat...@hibiscustech.com on 14 Mar 2012 at 1:47

@GoogleCodeExporter
Copy link
Author

So I'm not a Java developer, but I play one on TV.

That being said, looking at the logs and testing on my system, I'm getting 
every other Bluetooth call.  Looking at the code, I think what's happening is 
that after a broadcast message is received, it closes the connection and places 
it in a state where it cannot receive new information.  The next time, the 
system throws the exception and puts itself back in a "good" state.  If you 
look at the debug info, you see alternating lines "connection closed, now open 
0" and "connection closed, now open 1".  My guess would be that if the 
connection wasn't closed, the notifier would work more reliably.

2012-04-11 10:07:56,662 DEBUG [bluetooth] - open using BlueCove 
javax.microedition.io.Connector
2012-04-11 10:07:56,662 DEBUG [bluetooth] - connecting 
btspp://localhost:7674047e6e474bf0831f209e3f9dd23f;name=AndroidNotifierService;a
uthenticate=true
2012-04-11 10:07:56,668 DEBUG [bluetooth] - isLocalDevicePowerOn
2012-04-11 10:07:56,685 DEBUG [bluetooth] - RFCOMM server created, ChannelID 4
2012-04-11 10:07:56,690 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2012-04-11 10:08:25,871 DEBUG [bluetooth] - rfcomm (2) client connected
2012-04-11 10:08:25,872 DEBUG [bluetooth] - rfcomm MTU 1007
2012-04-11 10:08:25,875 DEBUG [bluetooth] - new RemoteDevice 984B4AD64EE4
2012-04-11 10:08:25,875 DEBUG [bluetooth] - new devicesCashed 0x984b4ad64ee4
2012-04-11 10:08:25,876 DEBUG [bluetooth] - connection open, open now 1
2012-04-11 10:08:25,878 DEBUG [bluetooth] - ->read(byte[4096])
2012-04-11 10:08:25,880 DEBUG [bluetooth] - read([]) return 58
2012-04-11 10:08:25,880 DEBUG [bluetooth] - ->read(byte[4096])
2012-04-11 10:08:26,380 DEBUG [bluetooth] - read([]) received 0
2012-04-11 10:08:26,381 DEBUG [bluetooth] - read([]) no data
2012-04-11 10:08:26,381 DEBUG [bluetooth] - read([]) return EOF
2012-04-11 10:08:26,386 INFO [NotificationManagerImpl] - Notification received: 
notificationId=1227869386515127, type=Ping
2012-04-11 10:08:26,387 DEBUG [bluetooth] - closing RFCOMM Connection 2
2012-04-11 10:08:26,387 DEBUG [bluetooth] - connection closed, open now 0
2012-04-11 10:08:26,476 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2012-04-11 10:08:35,478 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2012-04-11 10:08:35,566 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
    at com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Native Method)
    at com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFCommConnectionNotifier.java:74)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:83)
    at java.lang.Thread.run(Thread.java:680)
2012-04-11 10:08:35,568 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2012-04-11 10:08:40,668 DEBUG [bluetooth] - rfcomm (4) client connected
2012-04-11 10:08:40,668 DEBUG [bluetooth] - rfcomm MTU 1007
2012-04-11 10:08:40,668 DEBUG [bluetooth] - connection open, open now 1
2012-04-11 10:08:40,668 DEBUG [bluetooth] - ->read(byte[4096])
2012-04-11 10:08:40,703 DEBUG [bluetooth] - read([]) return 58
2012-04-11 10:08:40,703 DEBUG [bluetooth] - ->read(byte[4096])
2012-04-11 10:08:41,203 DEBUG [bluetooth] - read([]) received 0
2012-04-11 10:08:41,203 DEBUG [bluetooth] - read([]) no data
2012-04-11 10:08:41,203 DEBUG [bluetooth] - read([]) return EOF
2012-04-11 10:08:41,204 INFO [NotificationManagerImpl] - Notification received: 
notificationId=1227869401813286, type=Ping
2012-04-11 10:08:41,204 DEBUG [bluetooth] - closing RFCOMM Connection 4
2012-04-11 10:08:41,204 DEBUG [bluetooth] - connection closed, open now 0
2012-04-11 10:08:41,315 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2012-04-11 10:08:48,317 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2012-04-11 10:08:48,403 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
    at com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Native Method)
    at com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFCommConnectionNotifier.java:74)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:83)
    at java.lang.Thread.run(Thread.java:680)
2012-04-11 10:08:48,403 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2012-04-11 10:11:21,438 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(3))
2012-04-11 10:11:21,554 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
    at com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Native Method)
    at com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFCommConnectionNotifier.java:74)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:83)
    at java.lang.Thread.run(Thread.java:680)
2012-04-11 10:11:21,554 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2012-04-11 10:31:07,851 DEBUG [bluetooth] - rfcomm (7) client connected
2012-04-11 10:31:07,851 DEBUG [bluetooth] - rfcomm MTU 1007
2012-04-11 10:31:07,852 DEBUG [bluetooth] - connection open, open now 1
2012-04-11 10:31:07,852 DEBUG [bluetooth] - ->read(byte[4096])
2012-04-11 10:31:07,861 DEBUG [bluetooth] - read([]) return 58
2012-04-11 10:31:07,861 DEBUG [bluetooth] - ->read(byte[4096])
2012-04-11 10:31:08,361 DEBUG [bluetooth] - read([]) received 0
2012-04-11 10:31:08,362 DEBUG [bluetooth] - read([]) no data
2012-04-11 10:31:08,362 DEBUG [bluetooth] - read([]) return EOF
2012-04-11 10:31:08,362 INFO [NotificationManagerImpl] - Notification received: 
notificationId=1227870696502277, type=Ping
2012-04-11 10:31:08,362 DEBUG [bluetooth] - closing RFCOMM Connection 7
2012-04-11 10:31:08,363 DEBUG [bluetooth] - connection closed, open now 0
2012-04-11 10:31:08,453 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection

Original comment by brett.le...@gmail.com on 11 Apr 2012 at 2:34

@GoogleCodeExporter
Copy link
Author

I had the same problem, but then i found a workaround.

I didn't pair my device from the beginning.I deleted all the previous pairing 
with my computer. Enabled "auto-enable Bluetooth", then set both my phone & 
desktop(running Ubuntu natty)as visible from Bluetooth option. Now when i try 
send a test notification it automatically initiates Bluetooth pairing process!

After successful pairing, Bluetooth notification works fine. However it doesn't 
notify about all the notifications. :(

Original comment by sunnysig...@gmail.com on 26 Jun 2012 at 8:07

@GoogleCodeExporter
Copy link
Author

This was what I got when trying to do a test notification:
2013-01-21 13:21:24,558 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
com.notifier.desktop.exception.ParseException: 
com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol 
message, the input ended unexpectedly in the middle of a field.  This could 
mean either than the input has been truncated or that an embedded message 
misreported its own length.
    at com.notifier.desktop.parsing.MultiNotificationParser.parse(MultiNotificationParser.java:53)
    at com.notifier.desktop.parsing.MultiNotificationParser.parse(MultiNotificationParser.java:27)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(BluetoothNotificationReceiver.java:87)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.google.protobuf.InvalidProtocolBufferException: While parsing a 
protocol message, the input ended unexpectedly in the middle of a field.  This 
could mean either than the input has been truncated or that an embedded message 
misreported its own length.
    at com.google.protobuf.InvalidProtocolBufferException.truncatedMessage(InvalidProtocolBufferException.java:49)
    at com.google.protobuf.CodedInputStream.refillBuffer(CodedInputStream.java:691)
    at com.google.protobuf.CodedInputStream.readRawByte(CodedInputStream.java:714)
    at com.google.protobuf.CodedInputStream.readRawVarint32(CodedInputStream.java:318)
    at com.notifier.desktop.parsing.MultiNotificationParser.parse(MultiNotificationParser.java:42)
    ... 3 more

Original comment by jrf...@gmail.com on 21 Jan 2013 at 6:28

@GoogleCodeExporter
Copy link
Author

Hello
I may not be on the right post, excuse me if it is the case.

I have installed 0.5.1 x86_64.exe file on a win7-64 pro dell desktop.
I have selected WiFi and invalidated Bluetooth on the phone (Samsung Ace and 
android
2.3.6)
Options  Ring and Ping are selected.
Whether ring or ping,it is correctly logged on the log.
Trouble is that though the visual and audio notification works correctly with 
the Ping, I don't get anything when a Ring comes up.
Exactly the same problem with a HP Probook Laptop
Regards

Original comment by Fossard...@gmail.com on 26 Sep 2013 at 1:09

@GoogleCodeExporter
Copy link
Author

klkllarfg

Original comment by swarajin...@gmail.com on 9 Sep 2014 at 9:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant