[android-developers] Re: bluetooth - IOException: Connection refused
I'm working with off the shelf SPP device (bluetooth 2.1), and am running into a similar issue. When I attempt to connect, I'm getting the same Connection refused exception. One thing i've noticed is that if I manually unpair and re-pair my device via the built in settings, I'm able to connect one time, and then it gets back to the connection refused error after that. I'm using a Nexus One. On Apr 21, 2:18 am, Nand nandithab...@gmail.com wrote: Hi, I'm able to discover devices which rbluetoothON from my application. But when i try to connect using the Bluetoothsocket's connect() method, I'm getting an IOException: Connection refused. I'm using the following UUID private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); Please help in solving this issue. Thanks in advance, Nand -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: bluetooth - IOException: Connection refused
Are you doing the pair/unpair on the Nexus or the other device? If on the Nexus, please tell me how to do that. I have a different problem that might be related to pairing and I could test my theory if I could unpair.a previously paired device. Unfortunately I don't have the ability to do it from the other device. On Apr 28, 9:22 am, Ryan DeVore ryan.dev...@fs.utc.com wrote: I'm working with off the shelf SPP device (bluetooth 2.1), and am running into a similar issue. When I attempt to connect, I'm getting the same Connection refused exception. One thing i've noticed is that if I manually unpair and re-pair my device via the built in settings, I'm able to connect one time, and then it gets back to the connection refused error after that. I'm using a Nexus One. On Apr 21, 2:18 am, Nand nandithab...@gmail.com wrote: Hi, I'm able to discover devices which rbluetoothON from my application. But when i try to connect using the Bluetoothsocket's connect() method, I'm getting an IOException: Connection refused. I'm using the following UUID private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); Please help in solving this issue. Thanks in advance, Nand -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: bluetooth - IOException: Connection refused
I found it I still don't know how to do it programmatically but at least now I know that it is possible to unpair by going to SettingsWireless Networks Bluetooth Settings and long press on the appropriate device in the list of paired devices. And by unpairing the device that I could not connect to before, I now can. I still don't understand what caused the problem I had (inability to connect to one of two identical devices) but it was fixed by unpairing. On Apr 28, 4:43 pm, DonFrench dcfre...@gmail.com wrote: Are you doing the pair/unpair on the Nexus or the other device? If on the Nexus, please tell me how to do that. I have a different problem that might be related to pairing and I could test my theory if I could unpair.a previously paired device. Unfortunately I don't have the ability to do it from the other device. On Apr 28, 9:22 am, Ryan DeVore ryan.dev...@fs.utc.com wrote: I'm working with off the shelf SPP device (bluetooth 2.1), and am running into a similar issue. When I attempt to connect, I'm getting the same Connection refused exception. One thing i've noticed is that if I manually unpair and re-pair my device via the built in settings, I'm able to connect one time, and then it gets back to the connection refused error after that. I'm using a Nexus One. On Apr 21, 2:18 am, Nand nandithab...@gmail.com wrote: Hi, I'm able to discover devices which rbluetoothON from my application. But when i try to connect using the Bluetoothsocket's connect() method, I'm getting an IOException: Connection refused. I'm using the following UUID private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); Please help in solving this issue. Thanks in advance, Nand -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: bluetooth - IOException: Connection refused
I was getting connection refused errors as well and had to use reflection to get to non-public method that allows you to connect using RFCOMM channel number directly: http://stackoverflow.com/questions/2660968/ If that helps you hit bug http://code.google.com/p/android/issues/detail?id=5427 HTH, Max On 29 April 2010 01:01, DonFrench dcfre...@gmail.com wrote: I found it I still don't know how to do it programmatically but at least now I know that it is possible to unpair by going to SettingsWireless Networks Bluetooth Settings and long press on the appropriate device in the list of paired devices. And by unpairing the device that I could not connect to before, I now can. I still don't understand what caused the problem I had (inability to connect to one of two identical devices) but it was fixed by unpairing. On Apr 28, 4:43 pm, DonFrench dcfre...@gmail.com wrote: Are you doing the pair/unpair on the Nexus or the other device? If on the Nexus, please tell me how to do that. I have a different problem that might be related to pairing and I could test my theory if I could unpair.a previously paired device. Unfortunately I don't have the ability to do it from the other device. On Apr 28, 9:22 am, Ryan DeVore ryan.dev...@fs.utc.com wrote: I'm working with off the shelf SPP device (bluetooth 2.1), and am running into a similar issue. When I attempt to connect, I'm getting the same Connection refused exception. One thing i've noticed is that if I manually unpair and re-pair my device via the built in settings, I'm able to connect one time, and then it gets back to the connection refused error after that. I'm using a Nexus One. On Apr 21, 2:18 am, Nand nandithab...@gmail.com wrote: Hi, I'm able to discover devices which rbluetoothON from my application. But when i try to connect using the Bluetoothsocket's connect() method, I'm getting an IOException: Connection refused. I'm using the following UUID private static final UUID MY_UUID = UUID.fromString(1101--1000-8000-00805F9B34FB); Please help in solving this issue. Thanks in advance, Nand -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group athttp:// groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en