gamer57 / android-bluez-ime

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

cannot select different device with same name #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For any other issue, please delete the lines above.

What version of BluezIME are you using?
Latest market &. 1.16

What Android device do you have? What Android version?
Transformer Prime, ICS 4.04

What gamepad are you using?
Multiple PhoneJoy's

What steps will reproduce the problem?
1. Connect one PhoneJoy (has name PhoneJoy) 
2. Try to connect second PhoneJoy

What is the expected output? What do you see instead?
In device selection, only one PhoneJoy device will be able to be selected. 

Please provide any additional information below.

Original issue reported on code.google.com by zphr...@gmail.com on 21 Apr 2012 at 4:33

GoogleCodeExporter commented 8 years ago
Are you aware that you need to set "no of controllers" to "2" ?
(I assume yes, but just to make sure).

Each PhoneJoy device should have a different MAC address, like 
3f:56:32:b7:12:65.
When you select the device, you should be able to select the two, the name 
should not be used for anything internally. I do not have two similar 
controllers for testing.

Original comment by kenneth@hexad.dk on 8 May 2012 at 11:06

GoogleCodeExporter commented 8 years ago
Yeah, the bug seems to occur even with controllers set to 2 or more (I have 3). 
Whenever I select it in the popup from the config menu, it will select only the 
first one that Bluez has seen. If I remove one from being paired, I still can 
not get it to select a different one. It is only when I clear the Bluez IME 
data that I can select a different device.

I am a pretty advanced coder, if there's anything I can do to help let me know. 
I've been looking through the code some to try and figure out where things are 
going wrong for me. Perhaps I should try to debug it with a real machine 
instead of through AIDE now ;)

Original comment by zphr...@gmail.com on 9 May 2012 at 12:25

GoogleCodeExporter commented 8 years ago
Ok, the it should be easy enough for you to debug it:
1) Download+Install Eclipse
2) Download+Install Android SDK w. Eclipse plugins
3) Checkout Bluez-IME source
4) Import source in Eclipse
5) Set "debugable" in Android.manifest
6) Attach phone
7) Click "Debug"

I have looked through the code many times, but I cannot see why this should 
happen.
The name is kept in the m_pairedDeviceLookup lookup table, which is indexed by 
the MAC address.

Original comment by kenneth@hexad.dk on 10 May 2012 at 9:43

GoogleCodeExporter commented 8 years ago
I'm having the same problem.. I read that renaming the device in your 
blue-tooth options will fix the problem but that doesn't seem to work either, 
both phonejoys show up with exactly the same name and it wont connect 2 at 
once.. :(

Original comment by Caseyg...@gmail.com on 7 Nov 2012 at 10:58