aharpour / bluecove

Automatically exported from code.google.com/p/bluecove
0 stars 0 forks source link

Can I not have multiple applications use bluetooth? #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I connect to a Wii remote using 
L2CAPConnection receiveCon = (L2CAPConnection)Connector.open("btl2cap://" + 
address + ":13", Connector.READ, true); 

where address is the unique address of the Wii remote. There are two 
different programs containing the addresses of each Wii remote. I can run 
them separately and they connect fine. However, while one is connected, if 
I try to connect the other one, the new one will not connect and be blocked 
at the connect line I pasted above. I'm new to bluetooth and this was the 
lowest level I could track the problem. 

What is the expected output? What do you see instead?

I wanted both programs to connect to their respective Wii remotes 
concurrently and I don't see why they can't. Is this expected? What do you 
think is preventing two applications use bluetooth connections at the same 
time?

What BlueCove version are you using (include build number for SNAPSHOT)? On 
what operating system and jvm? Is this 64-bit or 32-bit OS and jvm?

bluecove 2.1.0, WIDCOMM stack, Windows XP, 32 bit. Sun Java SE 5.

Please provide any additional information below.
Please use "Attach a file" when uploading stack traces or other big files!

Original issue reported on code.google.com by ala...@gmail.com on 26 Jun 2009 at 11:17

GoogleCodeExporter commented 9 years ago
Try running the same app on Linux should work fine.
As to WIDCOMM I will try to reproduce the problem; The last time I checked I 
was able
to have more then one RFCOMM connection as to L2CAP on WIDCOMM I probably did 
not
tested it for outgoing connection.

Original comment by skarzhev...@gmail.com on 26 Jun 2009 at 11:31

GoogleCodeExporter commented 9 years ago
Thank you, I appreciate it. So it's probably a bug in either BlueCove or 
WIDCOMM stack 
under XP. 

Also, do you know if it's ever possible to transfer a bluetooth connection 
opened in 
one process to another process? I'm trying to build a Wii remote manager that 
maintains 
connections to multiple Wii remotes and hands those connections to other 
processes 
because the connection phase takes a long time. 

Original comment by ala...@gmail.com on 29 Jun 2009 at 6:35

GoogleCodeExporter commented 9 years ago
No it is impossible to use multiple processes, Just use different threads.

Original comment by skarzhev...@gmail.com on 29 Jun 2009 at 7:27

GoogleCodeExporter commented 9 years ago

Original comment by skarzhev...@gmail.com on 8 Jan 2010 at 5:04