darthtaterthebaked / android-bluez-ime

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

How to use this with a simple SPP bluetooth connection #232

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

What version of BluezIME are you using?
1.17

What Android device do you have? What Android version?
Droid RAZR M 4.1.1

What gamepad are you using?
custom bluetooth SPP device

What steps will reproduce the problem?

Hi,
   I have a bluetooth spp device connected up to my android Droid RAZR M, and have verified with "bluetooth spp" app on the market that I'm sending characters both to the phone and from the phone over spp connection.  But of course to get that into an emulator, I need an IME.  I saw your app, and was hoping to have it just pass key codes up to the emulator.  
   Note that I have tried pairing my bluetooth keyboard, and then the emulator I use has a "map" function to take any input and map it to whatever key you want.  That worked fine.  So do you know, is there a way to have your IME take bluetooth spp data and turn those into key events?  which device driver would be easiest to do that with?  I saw the Zeemote format described in your source, but I couldn't get it to work when I sent over spp in hex the

0x08 a1 07 00 FE FE FE FE FE

  Do I need to create a new device driver?  Or would the HID apk help me perhaps?

Original issue reported on code.google.com by eradicat...@gmail.com on 2 Apr 2013 at 5:07

GoogleCodeExporter commented 8 years ago
The HID is not required for SPP.

I think the BGP100 protocol is a bit simpler:
https://code.google.com/p/android-bluez-ime/source/browse/trunk/BluezIME/src/com
/hexad/bluezime/BGP100Reader.java

I would go with that.

Otherwise, you can make a new driver, but if you can use the existing BGP100, 
your device will work with more than just Bluez-IME.

Original comment by kenneth@hexad.dk on 2 May 2013 at 9:12

GoogleCodeExporter commented 8 years ago
Thanks for the advice.  Sorry for the late reply, but I actually did use BGP100 
a while back and it worked perfectly!  I see now the project is in GIT which 
I'm very glad to see.  I think it was in SVN when I grabbed it originally?   Is 
there any way you want me to contribute my changes back?  I've made my own 
custom bluetooth SEGA controller with your IME and the controller sending SPP 
bytes for presses and releases, and I'm VERY happy how well it turned out.  The 
responsiveness is excellent and I wasn't sure if it would handle diagonal D-Pad 
but sure enough that's perfect.  

Let me know if you want me to push it back.

Original comment by jelt...@motorola.com on 26 May 2013 at 4:58

GoogleCodeExporter commented 8 years ago
Yes, I recently switched to git, it is just so much simpler to manage.

If the controller is something that is "generally available", I would like it 
merged into Bluez-IME.
Just send me a patch file and I will do it.

Original comment by kenneth@hexad.dk on 29 May 2013 at 8:43