kailIII / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

Bluetooth notifications not delivered #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Is this bug being actively worked on, and we should wait for an update, or is 
it in an "unresolved state" where I should look for hacking up alternative 
solutions?

Original comment by guy.tavor on 3 Jan 2011 at 10:52

GoogleCodeExporter commented 9 years ago
On Samsung Galaxy Spica'a / Portal I'm having same problem like in #145 with 
connecting to Macbook Pro 

Original comment by pawel.kr...@gmail.com on 8 Jan 2011 at 6:46

GoogleCodeExporter commented 9 years ago
I am experiencing the same problems on both Ubuntu 10.10 an iMac running OS X 
10.6 and a Macbook also running OS X 10.6. It seems to be a small bug?

Original comment by yann.mic...@gmail.com on 11 Jan 2011 at 7:48

GoogleCodeExporter commented 9 years ago
I believe I have the same problem.  At least I see the 
InvalidProtocolBufferException in the log.  Every other ping message display an 
error dialog ("An error occurred while receiving bluetooth notification").  
However, if that dialog is up then all of the ping messages fail.  I left one 
up and sent several (failing) pings.  When I closed them all down the pass/fail 
rate was not 50%, so I'm not sure if I was just lucky at first.

However, this is all with the test message.  So far 4 out of 5 SMS 
notifications have come through fine.  

Desktop:  Windows 7 (32 bit client - 0.5.1).
Andriod:  HTC Eris.  Andrioid 2.1 (0.2.8)

Original comment by jon.stra...@gmail.com on 17 Jan 2011 at 6:21

GoogleCodeExporter commented 9 years ago
I got a new phone over the weekend and I no longer have the problem.  The new 
phone is a Droid Incredible running Android 2.2. 

Original comment by jon.stra...@gmail.com on 24 Jan 2011 at 4:24

GoogleCodeExporter commented 9 years ago
I have the same bluetooth problem. My computer recieves nothing with the 
bluetooth connection, but with wi-fi it works just fine.

Notebook Ubuntu 10.10
Samsung Galaxy GT-I5500B with Android 2.1-update1

Original comment by rxavie...@gmail.com on 26 Jan 2011 at 10:05

GoogleCodeExporter commented 9 years ago
Unlike #155, I also have a HTC Droid Incredible, with Android 2.2 but bluetooth 
does not work for me. Wifi however does work.

2011-02-20 17:12:21,990 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(2) 
[0xe00002cd])
2011-02-20 17:12:22,075 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(2) 
[0xe00002cd]
    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:637)
2011-02-20 17:12:22,076 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection   

Original comment by input.output on 20 Feb 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Same problem here, with n HTC Evo. The problem definitely is with the program 
on the computer, the message gets sent perfectly to the computer, and the 
computer receives it, but it cannot display it properly. It looks like this 
problem has been around for a year, anyone have a solution, or an update to fix 
this?

Original comment by mehmet...@gmail.com on 28 Feb 2011 at 4:46

GoogleCodeExporter commented 9 years ago
Another confirmation of the issue using an HTC Evo.  Looking for a solution. 
Hoping for a fix.

Original comment by joo...@gmail.com on 2 Mar 2011 at 4:59

GoogleCodeExporter commented 9 years ago
Notifications work with UDP/wifi, not with Bluetooth.  Have tried both native 
mac client and multiplatform with same result.  Get "An error occurred while 
receiving bluetooth notification." message on mac client when receiving test 
notification.

2011-03-07 18:21:00,770 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(2) 
[0xe00002cd])
2011-03-07 18:21:00,874 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(2) 
[0xe00002cd]
    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-03-07 18:21:00,874 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection

2011-03-07 18:14:10,474 DEBUG [bluetooth] - Java 1.4+ detected: 1.6.0_22; Java 
HotSpot(TM) 64-Bit Server VM; Apple Inc.
Samsung Galaxy S i9000m Android 2.2
MacBookPro OSX 10.6.6

Original comment by AiB...@gmail.com on 8 Mar 2011 at 2:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Here's my contribution to this mess; Android 2.2.1 on Samsung Galaxy S ... OSX 
10.6.7 ... AND 0.5.1 x86_64 (Also tried with Mac 0.2.9) ... apk 0.2.8

2011-03-25 05:54:50,609 INFO [ApplicationImpl] - Starting SWT
2011-03-25 05:54:51,233 INFO [ApplicationImpl] - Showing tray icon
2011-03-25 05:54:51,295 DEBUG [ServiceServerImpl] - Starting service server on 
port [10700]
2011-03-25 05:54:51,305 DEBUG [InetAddresses] - Looking for local address
2011-03-25 05:54:51,313 DEBUG [InetAddresses] - Local address found
2011-03-25 05:54:51,329 INFO [ApplicationImpl] - Starting [Growl] broadcaster
2011-03-25 05:54:51,621 INFO [ApplicationImpl] - Starting [bluetooth] receiver
2011-03-25 05:54:51,635 DEBUG [bluetooth] - Java 1.4+ detected: 1.6.0_24; Java 
HotSpot(TM) 64-Bit Server VM; Apple Inc.
2011-03-25 05:54:51,643 DEBUG [bluetooth] - Use stack ClassLoader
2011-03-25 05:54:51,644 DEBUG [bluetooth] - set dll dir 
/var/folders/br/brDN3Ht7E-uwBhO-jyanX++++TI/-Tmp-/bluecove_jmvermil_0
2011-03-25 05:54:51,696 DEBUG [bluetooth] - Library loaded from 
/var/folders/br/brDN3Ht7E-uwBhO-jyanX++++TI/-Tmp-/bluecove_jmvermil_0/libbluecov
e.jnilib
2011-03-25 05:54:51,697 DEBUG [bluetooth] - BluetoothStack selected mac
2011-03-25 05:54:51,698 DEBUG [bluetooth] - nativeDebugCallback ON
2011-03-25 05:54:51,698 DEBUG [bluetooth] - 
getLocalDeviceSupportedSoftwareVersion
2011-03-25 05:54:51,719 DEBUG [bluetooth] - localDeviceSupportedSoftwareVersion 
20000
2011-03-25 05:54:51,722 DEBUG [bluetooth] - isLocalDeviceFeatureParkMode
2011-03-25 05:54:51,963 DEBUG [bluetooth] - getLocalDeviceBluetoothAddress
2011-03-25 05:54:51,979 INFO [ApplicationImpl] - Removing from startup
2011-03-25 05:54:51,979 DEBUG [bluetooth] - open using BlueCove 
javax.microedition.io.Connector
2011-03-25 05:54:51,979 DEBUG [bluetooth] - connecting 
btspp://localhost:7674047e6e474bf0831f209e3f9dd23f;name=AndroidNotifierService;a
uthenticate=true
2011-03-25 05:54:51,986 DEBUG [bluetooth] - isLocalDevicePowerOn
2011-03-25 05:54:52,011 DEBUG [bluetooth] - RFCOMM server created, ChannelID 4
2011-03-25 05:54:52,017 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection
2011-03-25 05:59:10,624 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(2) 
[0xe00002cd])
2011-03-25 05:59:10,796 ERROR [BluetoothNotificationReceiver] - Error handling 
bluetooth notification
javax.bluetooth.BluetoothConnectionException: Failed to open connection(2) 
[0xe00002cd]
    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-03-25 05:59:10,797 DEBUG [bluetooth] - create ChannelController to accept 
incoming connection

Original comment by sl...@theoriginals.in on 25 Mar 2011 at 10:03

GoogleCodeExporter commented 9 years ago
Same problem here, I have a SE Xperia mini pro with android 2.2.1, wifi 
notification working fine. Bluetooth with the same symptoms.

Original comment by willy...@gmail.com on 30 Mar 2011 at 3:41

GoogleCodeExporter commented 9 years ago
I have a Motorola Milestone with Froyo 2.2
Issues which I've got the same with #139 and #144. When I tried to send test 
message I got the first. Sometimes after starting of app I can see notification 
about call. All the following notifications is not showing

Original comment by rvandr...@gmail.com on 5 Apr 2011 at 11:45

GoogleCodeExporter commented 9 years ago
DroidX running 2.2. I can pair with my laptop (Win7-64bit) via BT, and can 
transfer files back and forth, stream media etc, but for some reason the 
desktop client (0.5.1) doesnt detect my BT stack? Searching this project 
continually brings me to this thread, but this thread seems to be about BT 
notifications. I havent even made it that far though... Am I missing something 
obvious?

2011-04-18 13:41:50,454 INFO [ApplicationImpl] - Starting [bluetooth] receiver
2011-04-18 13:41:50,455 DEBUG [bluetooth] - bind error [10050] A socket 
operation encountered a dead network.
2011-04-18 13:41:50,456 DEBUG [bluetooth] - BluetoothStack detected 0
2011-04-18 13:41:50,456 ERROR [bluetooth] - BluetoothStack not detected
2011-04-18 13:41:50,456 ERROR [ApplicationImpl] - Error starting [bluetooth] 
receiver
java.lang.IllegalStateException: Bluetooth not detected, disabling it.
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver.doStart(BluetoothNotificationReceiver.java:58)
    at com.notifier.desktop.app.AbstractLifecycle.start(AbstractLifecycle.java:36)
    at com.notifier.desktop.app.ApplicationImpl.startLifecycle(ApplicationImpl.java:256)
    at com.notifier.desktop.app.ApplicationImpl.adjustLifecycle(ApplicationImpl.java:310)
    at com.notifier.desktop.app.ApplicationImpl.adjustBluetoothReceiver(ApplicationImpl.java:143)
    at com.notifier.desktop.view.PreferencesDialog$7$1.run(PreferencesDialog.java:320)
    at java.lang.Thread.run(Unknown Source)
Caused by: javax.bluetooth.BluetoothStateException: BluetoothStack not detected
    at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:496)
    at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:69)
    at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1044)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1042)
    at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1035)
    at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
    at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
    at com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver.doStart(BluetoothNotificationReceiver.java:54)

Original comment by kcl...@staff.gwi.net on 18 Apr 2011 at 5:50

GoogleCodeExporter commented 9 years ago
I get the error message below in the debug log.

I am using bluetooth on HTC Desire GSM
I get the message from the PC client that
"An error occured while receiving bluetooth notification".
Is this also the famous issue 3???
If additional Info is needed, please request what info you need.

2011-04-20 11:29:50,729 DEBUG [bluetooth] - rfs(1) rf(2) RFCOMM server waits 
for connection
2011-04-20 12:21:14,428 DEBUG [bluetooth] - rfs(1) rf(2) RFCOMM server 
connection made
2011-04-20 12:21:14,444 DEBUG [bluetooth] - new RemoteDevice 38E7D8C32554
2011-04-20 12:21:14,444 DEBUG [bluetooth] - new devicesCashed 0x38e7d8c32554
2011-04-20 12:21:14,444 DEBUG [bluetooth] - connection open, open now 1
2011-04-20 12:21:14,444 DEBUG [bluetooth] - rf(2) read(byte[4096])
2011-04-20 12:21:14,444 DEBUG [bluetooth] - read[] waits for data
2011-04-20 12:21:14,444 DEBUG [bluetooth] - read waits returns WAIT_OBJECT_0
2011-04-20 12:21:14,444 DEBUG [bluetooth] - read waits returns WAIT_OBJECT_0
2011-04-20 12:21:14,444 DEBUG [bluetooth] - rf(2) read([]) received 0
2011-04-20 12:21:14,444 DEBUG [bluetooth] - rf(2) read([]) not connected
2011-04-20 12:21:14,444 DEBUG [bluetooth] - read([]) no data
2011-04-20 12:21:14,444 DEBUG [bluetooth] - read([]) return EOF
2011-04-20 12:21:14,444 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
2011-04-20 12:21:14,444 DEBUG [bluetooth] - closing RFCOMM Connection 2
2011-04-20 12:21:14,444 DEBUG [bluetooth] - connection closed, open now 0
2011-04-20 12:21:14,444 DEBUG [bluetooth] - rf(2) CloseServerConnection
2011-04-20 12:21:14,444 DEBUG [bluetooth] - rf(2) closing RfCommPort, 
Connected[FALSE]
2011-04-20 12:21:14,506 DEBUG [bluetooth] - rf(2) closed RfCommPort
2011-04-20 12:21:14,506 DEBUG [bluetooth] - rfs(1) acceptAndOpen
2011-04-20 12:21:14,506 DEBUG [bluetooth] - rfs(1) rf(3) RFCOMM server waits 
for connection

Original comment by menedet...@gmail.com on 20 Apr 2011 at 10:27

GoogleCodeExporter commented 9 years ago
I'm having problems with OS X 10.6.7/HTC Evo/Bluetooth as well. Seemingly 
relevant Console.app output:

5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
rfcommServiceOpenNotificationCallback
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStackRFCOMMSe
rver.mm(270)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
RFCOMM incomming connection authenticated
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStackRFCOMMSe
rver.mm(296)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
rfcommChannelOpenComplete
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStackRFCOMM.m
m(139)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] 2011-05-13 
13:49:57,262 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(2) 
[0xe00002cd])
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
invoke    BTOperation RFCOMMChannelClose
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStack.mm(240)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
rfcommChannelClosed->
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStackRFCOMM.m
m(89)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
rfcommChannelClosed
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStackRFCOMM.m
m(92)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
rfcommChannelClosed
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStackRFCOMM.m
m(160)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:       
execute  BTOperation RFCOMMChannelClose
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStack.mm(223)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:       
finished BTOperation RFCOMMChannelClose
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStack.mm(225)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] NATIVE:      
return    BTOperation RFCOMMChannelClose
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     OSXStack.mm(248)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] 2011-05-13 
13:49:57,357 ERROR [BluetoothNotificationReceiver] - Error handling bluetooth 
notification
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] javax.bluetooth.B
luetoothConnectionException: Failed to open connection(2) [0xe00002cd]
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     at 
com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Na
tive Method)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     at 
com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFC
ommConnectionNotifier.java:74)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     at 
com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(
BluetoothNotificationReceiver.java:83)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855]     at 
java.lang.Thread.run(Thread.java:680)
5/13/11 1:49:57 
PM  [0x0-0xfe0fe0].com.notifier.android-notifier-desktop[39855] 2011-05-13 
13:49:57,357 DEBUG [bluetooth] - create ChannelController to accept incoming 
connection

Original comment by hdon...@gmail.com on 13 May 2011 at 6:54

GoogleCodeExporter commented 9 years ago
Same message from above user.  Seemingly relevant Console Log
HTC Inspire 4G, running CordDroid 6.3 (IE: rooted)
5/17/11 6:49:29 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] 2011-05-17 
18:49:29,397 DEBUG [bluetooth] - create ChannelController to accept incoming 
connection
5/17/11 6:49:37 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
rfcommServiceOpenNotificationCallback
5/17/11 6:49:37 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStackRFCOMMSe
rver.mm(270)
5/17/11 6:49:37 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
RFCOMM incomming connection authenticated
5/17/11 6:49:37 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStackRFCOMMSe
rver.mm(296)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
rfcommChannelOpenComplete
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStackRFCOMM.m
m(139)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
rfcommChannelClosed->
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStackRFCOMM.m
m(89)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
rfcommChannelClosed
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStackRFCOMM.m
m(92)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
rfcommChannelClosed
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStackRFCOMM.m
m(160)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] 2011-05-17 
18:49:38,401 DEBUG [bluetooth] - will throw exception 
javax/bluetooth/BluetoothConnectionException(Failed to open connection(2) 
[0xe00002cd])
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
invoke    BTOperation RFCOMMChannelClose
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStack.mm(240)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:       
execute  BTOperation RFCOMMChannelClose
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStack.mm(223)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:       
finished BTOperation RFCOMMChannelClose
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStack.mm(225)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] NATIVE:      
return    BTOperation RFCOMMChannelClose
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     OSXStack.mm(248)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] 2011-05-17 
18:49:38,483 ERROR [BluetoothNotificationReceiver] - Error handling bluetooth 
notification
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801] javax.bluetooth.B
luetoothConnectionException: Failed to open connection(2) [0xe00002cd]
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     at 
com.intel.bluetooth.BluetoothStackOSX.rfServerAcceptAndOpenRfServerConnection(Na
tive Method)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     at 
com.intel.bluetooth.BluetoothRFCommConnectionNotifier.acceptAndOpen(BluetoothRFC
ommConnectionNotifier.java:74)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     at 
com.notifier.desktop.notification.bluetooth.BluetoothNotificationReceiver$1.run(
BluetoothNotificationReceiver.java:83)
5/17/11 6:49:38 
PM  [0x0-0x329329].com.notifier.android-notifier-desktop[25801]     at 
java.lang.Thread.run(Thread.java:680)

Original comment by gkwait on 17 May 2011 at 11:53

GoogleCodeExporter commented 9 years ago
If it helps.. I'm facing the intermittent reception of bluetooth pings. Here's 
what I know. (HTC G1, rooted, running Froyo)

1) hcidump on Ubuntu _always_ shows activity when I send a test notification. 
Some of these translate to desktop notifications, some do not. So it could not 
be an issue with the mobile app (or it could in the sense that it does not make 
a correct connection everytime. But data seems to go through every time).

2) Upon startup of notifier app on ubuntu, the first ping is usually ignored, 
but the subsequent ones show up.

3) Pings seem to be more reliable when bluetooth is on, as opposed to delayed 
pings. It just seems that way though .. I have not maintained hard statistics.

As someone else pointed out, this thread probably discusses the same issue.
http://groups.google.com/group/android-platform/browse_thread/thread/485db574093
04d3e?hl=en&pli=1

Given that the issue reported is on mac, pc and linux, and on various versions 
of the android app, my take is that the issue is not with bluetooth stack 
implementation at all. It is rather the protocol used, or the way rfcomm 
connection is being made. If there is an alternative way of sending a ping than 
rfcomm, remote-notifier should dump the existing method for a new one.

Original comment by anil.ve...@gmail.com on 19 May 2011 at 2:58

GoogleCodeExporter commented 9 years ago
Workaround (N1/Win7): My Remote Notifier works with Bluetooth File Transfer 
(it.medieval.blueftp) installed, but not without.

Notifier initially worked via Bluetooth, then stopped working. I narrowed it 
down to my having uninstalled BFT (darn 512 MB app space...). Re-installed BFT, 
and notifications began working again.

Nexus One running stock 2.3.4 to a Win 7 (Ultimate) with ANS and Growl.

Original comment by pyrolu...@gmail.com on 2 Jun 2011 at 4:36

GoogleCodeExporter commented 9 years ago
Thanks a lot to comment 170!!
I have tried a lot of times to connect through Bluetooth but always failed. 
Installed Bluetooth File Transfer app, and Bluetooth method now works 
flawlessly!

HTC Incredible S (Android 2.3.3)
Windows 7 64 bit

Original comment by oleg...@gmail.com on 27 Jun 2011 at 12:08

GoogleCodeExporter commented 9 years ago
The system is working thanks to comment 170.

After installed "Bluetooth File Transfer" which is free from Market, everything 
is working.

Tested working on Lenovo Windows XP SP3, N1 CM7.1 RC1, connected via bluetooth 
connection.

Original comment by nutty.knot on 18 Jul 2011 at 7:58

GoogleCodeExporter commented 9 years ago
HTC Wildfire (Android 2.2) with android-notifier 0.2.8
Ubuntu 11.04 0.5.1 installed from deb
WiFi notification works, but bluetooth doesn't. Installing "Bluetooth File 
Transfer" made no difference. I get the traceback with the error about parsing 
the message (same as in comment 166)

Turning off encryption made bluetooth work however - so perhaps this particular 
is due to how bluetooth and encryption interact

Original comment by dav...@j5int.com on 19 Jul 2011 at 5:21

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
same here on Ubuntu 11.14 AND htc explorer  

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
klkllarfg

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