Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chainpus BGP-100 support #19

Closed
GoogleCodeExporter opened this issue Oct 20, 2015 · 27 comments
Closed

Chainpus BGP-100 support #19

GoogleCodeExporter opened this issue Oct 20, 2015 · 27 comments

Comments

@GoogleCodeExporter
Copy link

http://www.dealextreme.com/p/msi-bgp100-bluetooth-gamepad-1-aaa-battery-included
-13760

One of the original BT gamepads; one of the better pad layouts, IMHO.  Still in 
pretty broad circulation.

It'd be great to see this formally supported in bluez-ime.

Original issue reported on code.google.com by george.n...@gmail.com on 2 Mar 2011 at 9:50

@GoogleCodeExporter
Copy link
Author

That looks cool, but it is a bit outside my price range.
If you have one already, can it connect using the "Data Dump Driver" ?
If it can, I can probably make it work very quickly.
If it does not connect, and there is no documentation, I may not be able to get 
it working.

If you have a controller and it connects, you can provide me with the data I 
need by using the Android "logcat" command:
http://developer.android.com/guide/developing/tools/adb.html

Simply type "adb logcat" in a command prompt/terminal window.
When it is connected, press each button a few times, and note what data logcat 
reports  for each button. Send me this info and I will update the app asap. If 
you need more info, please write again.

Original comment by kenneth@hexad.dk on 4 Mar 2011 at 7:50

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I read up on it, and it supports the SPP, which means it should be easy to 
support, and actually not too expensive.

Unfortunately DealExtreme reports it as "sold out", do you know if this 
happened recently or is it just permanently out of stock? I have signed up for 
change notification, and I will purchase one if it comes back in stock.

Do you know another place where I can buy it for a similar price?

Original comment by kenneth@hexad.dk on 5 Mar 2011 at 4:59

@GoogleCodeExporter
Copy link
Author

Issue 29 has been merged into this issue.

Original comment by kenneth@hexad.dk on 5 Apr 2011 at 7:20

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Yeah, seems a little harder to find now.  Perhaps somebody on xda-developers 
has a spare -- they seem pretty popular over there.

When I find mine (might take a while -- I don't think it got unpacked after a 
prior move), I'll see if it connects in Data Dump Mode.  Would that help write 
in support for it?

Original comment by george.n...@gmail.com on 5 Apr 2011 at 4:25

@GoogleCodeExporter
Copy link
Author

there are a couple of sellers, but on wholesale sites, it seems. That's a 
shame, since GamePro has support for it, but they charge a lot, and not through 
the market.
http://www.alibaba.com/product-free/215264831/BLUETOOTH_GAME_PAD_BGP_100.html
http://www.guildnav.com/msi-bgp100-bluetooth-gamepad-1-aaa-battery-included-p-12
664.html

(sorry for removing/posting again, didn't want to litter)

Original comment by astashen...@gmail.com on 5 Apr 2011 at 4:26

@GoogleCodeExporter
Copy link
Author

Some more links
http://www.cheaponsale.com/d-p1124760185324153025-msi_bluetooth_gamepad_bgp_100/
http://www.gadgetwinners.com/shop/viewitem.php?groupid=0&productid=25
http://tilou.usedottawa.com/classified-ad/MSI-BGP-100-Bluetooth-Wireless-Gamepad
-Joypad_12421294

http://www.dealmaniacs.com/index.php?main_page=product_info&cPath=19_68&products
_id=2105 - this one looks promissing, less than $30 and *seems* to be in stock

Original comment by astashen...@gmail.com on 5 Apr 2011 at 4:32

@GoogleCodeExporter
Copy link
Author

That last site looks a bit like a scam.

They appear to have around 1000 of each item on the site in stock, all items 
were added in 2010, some pages display "Congratulations! You have successfully 
installed your Zen Cart™ E-Commerce Solution", there is no contact 
information and the whois record seems to be incorrect. Too bad :(

The alibaba link looks good, but it seems INSREA is also a wholesale place.

Original comment by kenneth@hexad.dk on 6 Apr 2011 at 9:26

@GoogleCodeExporter
Copy link
Author

Ok, I think I have the log! (It took some tinkering, seeing how I actually 
don't own an android phone and only have an x86 port running on eeepc, which 
doesn't have a bluetooth, but luckily a toshiba dongle got recognised 
rightaway...). I added button names before each sequence for convenience

Original comment by astashen...@gmail.com on 6 Apr 2011 at 5:28

Attachments:

@GoogleCodeExporter
Copy link
Author

Wow, highly innovative way to grab the log :)

Very nice work, I will implement this ASAP,
which will probably be sunday.

Original comment by kenneth@hexad.dk on 7 Apr 2011 at 7:19

@GoogleCodeExporter
Copy link
Author

I rechecked, and I should add that in each combination the first two lines are 
a keypress event, while the second two are key release event. Probably. At 
least it's the way they drop into console =)
I also checked a BT phone keyboard I had, and it also worked with data dump. 
Should I start a new thread for that? (The way I see it, your driver could be 
made to work with certain keyboards, but that's a lot of work not only because 
of number of keys, but more because of hotkeys and international layouts; on 
the other hand, seeing how data dump driver works, you could probably implement 
something like a universal teachable driver/profile editor and leave it to the 
user)

Original comment by astashen...@gmail.com on 7 Apr 2011 at 10:32

@GoogleCodeExporter
Copy link
Author

Yes, please make a new issue for the keyboard.
I realize that it is a lot of buttons to support, but I'm willing to implement 
it if you provide the data.

One other thing, with the bgp100, does anything special happen if you press two 
buttons at once? I suspect no, but the Zeemote handles simultaneous button 
presses in a special way, so it could be.

Original comment by kenneth@hexad.dk on 7 Apr 2011 at 10:36

@GoogleCodeExporter
Copy link
Author

Tried simultaneous presses - seems to show just the same messages as before 
(mixing them together, of course). The only difference is that strings 2 and 4 
appear in the same line as 1 and three, separated by a space, more often (they 
occasionally do that on single presses as well). Like this:
I/DataDumpReader( 3522): Read data: 0ffffffb5 
I/DataDumpReader( 3522): Read data: 4a 
I/DataDumpReader( 3522): Read data: 0fffffff5 0a

Original comment by astashen...@gmail.com on 7 Apr 2011 at 11:47

@GoogleCodeExporter
Copy link
Author

I managed to get it done in 1½ hour :)

Attached is a test version that I will put on Market if it works.

The values can be on one or two lines, depending on how fast they are 
transmitted vs. how fast they are read by the phone.

Original comment by kenneth@hexad.dk on 7 Apr 2011 at 7:12

Attachments:

@GoogleCodeExporter
Copy link
Author

Sorry, we'll have to wait for someone else to check it: this version for some 
reason fails to install on my netbook. That happens to a lot of software, 
although all previous versions of bluez installed correctly

Original comment by astashen...@gmail.com on 8 Apr 2011 at 8:48

@GoogleCodeExporter
Copy link
Author

It could be because I did not sign it, so it is marked "developer" or similar.
Attached is a signed version.

Original comment by kenneth@hexad.dk on 8 Apr 2011 at 8:52

Attachments:

@GoogleCodeExporter
Copy link
Author

ok, the first one actually worked (silly me) - just didn't want to replace the 
previous install, needed to uninstall entirely.
I'm having a hard time finding something playable and mappable on X86, but so 
far L, R, and Start don't work. Maybe it's because I re-mapped them to SPACE to 
test in LunarLander, and they needed to stay at those strange hex values, I 
dunno. I'll keep trying.

Original comment by astashen...@gmail.com on 8 Apr 2011 at 9:45

@GoogleCodeExporter
Copy link
Author

Ok, I should perhaps put a bit more logging in there.
But if some of the key-presses do not match up, there should be some logcat 
output.

You can map the buttons to the letters, eg "Button A" -> "A", then you should 
be able to type in a browser address bar or similar.

Original comment by kenneth@hexad.dk on 8 Apr 2011 at 9:47

@GoogleCodeExporter
Copy link
Author

E/BluezInput( 2542): Failed to send key events: 
java.lang.ArrayIndexOutOfBoundsException
E/BluezInput( 2542): Failed to send key events: 
java.lang.ArrayIndexOutOfBoundsException

that's what happens on L, R or Start

Original comment by astashen...@gmail.com on 8 Apr 2011 at 10:41

@GoogleCodeExporter
Copy link
Author

That is some API version stuff.
Attached is a version with a fix for that.

Original comment by kenneth@hexad.dk on 8 Apr 2011 at 11:02

Attachments:

@GoogleCodeExporter
Copy link
Author

Yes, that seems to fix it

Original comment by astashen...@gmail.com on 8 Apr 2011 at 11:23

@GoogleCodeExporter
Copy link
Author

Confirmed on both counts: latest posted build fixes the earlier problem of 
L/R/Start not working.

Original comment by george.n...@gmail.com on 8 Apr 2011 at 1:00

@GoogleCodeExporter
Copy link
Author

Is that working as in: "Close this issue and post it on Market" ??

Original comment by kenneth@hexad.dk on 8 Apr 2011 at 1:03

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

At least working as in: "can't find any bugs with this yet, looks like you can 
close this issue" :)  Found a minor issue of a different sort, which I posted 
separately.

Original comment by george.n...@gmail.com on 8 Apr 2011 at 1:11

@GoogleCodeExporter
Copy link
Author

Attached is the RC version, signed and with debug info turned off.

If I get no complaints, I'll close this issue sunday and post it as an update 
on Market.

Original comment by kenneth@hexad.dk on 8 Apr 2011 at 5:56

Attachments:

@GoogleCodeExporter
Copy link
Author

I see no issues with it and anyway I cannot give it a more thorough testing, 
not owning a real android phone yet. My opinion: market-worthy. Thanks!

Original comment by astashen...@gmail.com on 10 Apr 2011 at 11:38

@GoogleCodeExporter
Copy link
Author

Super, I have put it on Market, thanks for the input values and the testing.

Original comment by kenneth@hexad.dk on 10 Apr 2011 at 2:46

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant