Related
Hi!
I am developing an application which connects a Wiimote to a bluetooth enabled android phone/device.
I did this by interfacing with the native bluez bluetooth library directly, rather than via the Android API. The reason for this is that Android API doesn't support HID devices, which a Wiimote is.
A problem now is that on some devices, mostly those sold by HTC, my app simply doesn't work. After calling the hci_get_route(NULL), this function should return an id of the first bluetooth device available (most likely 0), but instead returns ERNODEV (-1) as if no bluetooth device is available.
I suspect it has something to do with our beloved HTC grossly modifying something in the libbluetooth library to make this fail to work.
Has anyone ever done this kind of bluetooth interfacing?
How could I make this work?
Rooting the phone and replacing a library or two would be fine too.
For a list of working and non-working devices, check out the 2nd post of this thread.
HTC support
I just sent a customer service message to HTC about this issue. I hope they can get back to me with a "we'll work on it" message, or something. I really want this on my incredible. I'm new to coding like this, but could you disguise the Wiimote as another kind of device?
Just a response from someone equally interested in a solution. I'm trying to set up a bluetooth keyboard (Freedom Pro) with my gsm Hero running the 1.5 based MCR 3.2. Available drivers (Freedom's own, BlueInput & KeyPro) should work with 1.5, but HTC devices, especially the Hero, seem to be lacking something that is present in most 1.5 builds.
Investigating, I find the same issue of no route to device, because there is no known device. AIUI when bluetooth is turned on hciattach is used to establish a link to the hardware. At that point an hciconfig should list the hci0 device as present but down. However I find this list remains empty at all times.
I found this for keyboards.
Since I can't post the link, it's called "KeyPro for Android"
Google "keypro android" and click the first link.
Maybe that could help. It says it works with any android device above 1.5, however, I did read that some keyboards use a different type of bluetooth profile, SPP rather than HID.
I haven't heard back form HTC yet either.
EDIT: Upon reading your post again, you have tried this. Sorry, my bad.
Thanks for looking though The Freedom Pro is switchable between spp & hid profiles, so I figured I was safe, lol. Not with HTC's butchered 1.5 bt it seems.
Did you ever try to use the most likely id 0 on an HTC device? Even though the call to get the id fails?
Maybe you could use also the Android API to synchronize if a device is present and then use the id that Android API gives you?
Just some thoughts since I would love to see that App running on my Desire with Snesoid
Edit: Double post
tobren said:
Did you ever try to use the most likely id 0 on an HTC device? Even though the call to get the id fails?
Maybe you could use also the Android API to synchronize if a device is present and then use the id that Android API gives you?
Just some thoughts since I would love to see that App running on my Desire with Snesoid
Click to expand...
Click to collapse
Believe it or not, I actually tried this. Unfortunately, the next command (to bind the bluetooth adapter) also fails, and of course every command after that one because the adapter is not bound.
Thanks for the idea anyway.
usb
does the wii remote have usb connectivity? could it be possible to have the communication pass through that connection rather than bluetooth? one advantage of this would be increased battery life and probably better compatibility across models.
i'm sure some people would prefer bluetooth, but i figure i'll always be using it very close to my phone so i can see the screen, so the wired option is actually a bit more attractive (considering battery performance).
i know ps3 has usb connectivity as well, you just might need an adapter (mini to micro).
rubber soul said:
does the wii remote have usb connectivity? could it be possible to have the communication pass through that connection rather than bluetooth?
[snip]
i know ps3 has usb connectivity as well, you just might need an adapter (mini to micro).
Click to expand...
Click to collapse
I'm pretty sure the first answer is no - our wii is round at a friend's atm. However even if it was yes, you'd need more than an adapter. USB operates with one device as master & the other as slave. To allow you to connect slave devices to your phone it would need to be in host mode. Some mobile phone hardware implementations support this, however I don't know of any mainstream Android kernels which do. Even if you workaround that, you're left with the huge issue that slave devices can assume it's safe to draw power from the USB bus which could do nasty things (tm) to a lower power device like a mobile. This can be worked around via a powered hub, but it all gets very messy.
I looked into this a few months ago, hoping I'd be able to use a usb keyboard with my Hero. I ended up with a BT keyboard instead. Of course that doesn't work either but for completely different reasons, as hinted at by this thread. Hopefully a 2.1 ROM will solve that, but that's the subject of numerous other threads.
Uh, just throwing stuff out, what if you have a pc with two bluetooth adapters, it connects to the wii mote, and then broadcasts that in someway the android api can understand?
Also please actually try working on something with a rooted phone, the HTC EVO 4g is rootable, and I will make man love(no homo) if you get it working.
Either one works lol.
Using a PC as a proxy is kind of useless. If you have a wiimote connected to a PC, you might as well play games on the PC itself (there are nes/snes/sega/etc emulators for PCs too).
At this moment, rooting doesn't help with the problem either.
@1 True
@2 That sucks.
Do we think that this will/could be fixed in HTC's Froyo update for 2010 devices? Not looking for definite answers, just a ponderin'.
well if you send the null pairing code to the wiimote from the default bluetooth pairing screen.. it will fail to communicate with the wiimote too
waffles004 said:
Do we think that this will/could be fixed in HTC's Froyo update for 2010 devices? Not looking for definite answers, just a ponderin'.
Click to expand...
Click to collapse
Doesn't it work in stock/vanilla Eclair? I thought the main problem was with Cupcake, though HTC seem to have done weird things to every stock firmware. I read that removing Sense from a 2.1 HTC ROM breaks bluetooth. Go figure. And there was I thinking Sense was a gui enhancement
I contacted HTC about their bluetooth issues and just received this response
My name is Courtney, and I would be glad to assist you today. I understand that you are unhappy with the Bluetooth connectivity on your HTC EVO. HTC is aware of the problems occurring with the EVO and Bluetooth. We are currently investigating this issue and are working on a solution. As soon as we have an update, we will inform our customers. Thank you for contacting HTC America Technical Support. If you need further assistance, please feel free to contact us via email or at 1-866-449-8358. We are open 7 days a week from 6 a.m.-1 a.m. EST. You can also check out our Community and Support pages at htc.com/us and our pages on Facebook and Twitter.
Click to expand...
Click to collapse
I contacted HTC about this issue with my incredible and I basically got the same answer except the guy was more knowledgeable and said that other people were complaining about certain bluetooth issues. I think they know what they did and are waiting to fix it in Froyo to be easy for them. No worries though, should be comin' in a few weeks. I can't freakin' wait. I have soooooooooo much Pokemon and Mario to play.
does anyone know if this works on samsung galaxy s, i dont have my phone yet to test, but as soon as it arrives (sometime next week) i will test this.
All I can say is that my wii controller is working really well on cyanogen on my evolution now!
If someone can/has figured this out I'll buy you a beer.
you can use a wiimote..
Actually, you can't:
forum%xda-developers%com/showpost.php?p=7388551&postcount=7 (account not allowed to post links yet)
It is unclear to me whether this is because the Captivate lacks HID profile support, or because as a BT 3.0 device there is some kind of incompatability (I have heard both).
dirtydaub said:
If someone can/has figured this out I'll buy you a beer.
Click to expand...
Click to collapse
Sorry, never gonna happen. PS3 controller maybe but the 360 controller isn't BT, it uses a proprietary wireless standard.
Why Xbox or Playstation crap is way overpriced!
If you want to use your phone as an emulator that bad you might as well just pay the $10 for a cheapo BT controller. Don't you want something a lot smaller than a bigun PS3 or x360 controller, I'd think something micro would be better suited for travel.
Plus if you're going to be inside to use this (unless your TV is outside), why not just use a PC and out it at 1080 for the real deal? Or is it more for nostalgia
Cool factor only. But it would be neat if I could use the video out to the TV at the shore house and play a game on that. No PC at my shore house:-(
REAVER117 said:
Sorry, never gonna happen. PS3 controller maybe but the 360 controller isn't BT, it uses a proprietary wireless standard.
Click to expand...
Click to collapse
But they also have wired versions that use USB. I don't have a clue about this at all, so I don't know if that's even remotely possible, just throwing one more idea out there. Not as pretty of a solution but if the USB could be sized down to micro and plugged in... Probably not, like I said, just throwing it out there. Would definitely be cool though.
AJerman said:
But they also have wired versions that use USB. I don't have a clue about this at all, so I don't know if that's even remotely possible, just throwing one more idea out there. Not as pretty of a solution but if the USB could be sized down to micro and plugged in... Probably not, like I said, just throwing it out there. Would definitely be cool though.
Click to expand...
Click to collapse
Not really possible because the USB doesn't have host support. If someone could write it into the kernel it would be awesome but then there would be many driver issues to arise.
I would just opt for a mini BT gamepad, I am thinking of getting one and loading some old SNES games on my phone.
Wait... is there an actual mini BT game controller that works? I would simply buy one now. Can you point us?
The zeemote looks complicated, you would think a wireless bluetooth snes style controller without axis controls would be simple enough, although I know everyone wants the ps3 for its controls. But this would be an awesome start.
Hopefully with more buttons than the wiimote so snes games play decent.
I would just use the computer you are posting from for this kinda thing.
http://www.dealextreme.com/details.dx/sku.13760
Some have modded these with a SNES controller. If I had any soldering skills I would try it.
http://www.youtube.com/watch?v=OP8JgqmVES8
decepticon said:
Not really possible because the USB doesn't have host support. If someone could write it into the kernel it would be awesome but then there would be many driver issues to arise.
I would just opt for a mini BT gamepad, I am thinking of getting one and loading some old SNES games on my phone.
Click to expand...
Click to collapse
Yeah, I kinda wondered about that, but like I said, I'm new to Android so I'm still learning what it can and can't do.
Still, a controller, especially wireless would be awesome to have. I have reason to believe from talking to someone involved that the Wiimote may not be totally out of the equation. Even if not on stock ROMs, custom ROMs may be able to make it work. I guess like everything else we'll just have to wait and see.
wiimote wont work with samsung phones. The developer of wiimote controller emailed me and said its because of the way samsungs added junk deals with bluetooth. Apparently they modify how bluetooth is dealt with from the stock android.
Hmmm... Interesting ideas.... I never even thought about a Bluetooth controller, that could possibly be the answer right there. Has anyone ever messed around with one? Would it be easy to set up with the captivate? Basically I just wanna be able to go over to my friends place and be like, "yo dudes, check THIS OUT!" And play old school games from my phone. More of a novelty than anything really.
illl try to set one up tomorrow and let you guys know if a reg bluetooth one will work with our 3.0. i remember hearing that it wont but i'll verify.
My understanding is that the galaxy S phones dont use the standard "BlueZ" stack. which is why it wont work.
Can anyone confirm if that bluetooth controller linked above from DealExtreme would work? So theoretically, a controller made for bluetooth 3.0 devices would work?
dappy15 said:
Can anyone confirm if that bluetooth controller linked above from DealExtreme would work? So theoretically, a controller made for bluetooth 3.0 devices would work?
Click to expand...
Click to collapse
It def. works with Android, but a paid drivers pack from the market is required. Now whether it works with the Galaxy S due to the different Bluetooth stack is the unknown part.
I am not sure how deeply the drivers interact with the bluetooth stack, and if they only work with the stock Android stack. I am planning on buying both the controller above and a SNES controller to mod for use with my PC, and phone if it works.
I am having trouble finding a SNES controller locally but I am told that I can get one on Monday from a buddy at my work.
Just checking to see if anybody has made progress on finding a controller for the captivate/galaxy s?
This is probably one of my most wanted features... get that wiimote working somehow.
Has anyone tested other bluetooth devices such as a wii remote or even a bluetooth keyboard? I'm wondering whether or not we have the full bluetooth stack or a partial such as htc phones with sense.
prestty sure that we have the full satck as i know that you can hook up the wii mote and use allshare as DLNA and connect to the ps3. well actually you connect to the ps3 via wifi. but im almost positive that you can connect the wiimote.
Have you had a chance to test it?
no but there is a guy somewhere in her that i read a post from a day or so ago that said he loved using his wii mote on his phone. i dont have a wii but it will stream media to and from the ps3 as i tested right after my first post but that is all wifi, it may be able to be done via bluetooth but didnt try. im 99.71% sure about the wii mote but just dont have on to try. sorry guy
I HAVE tried the Wii Remote using the same app that worked fine on my G1 and Nexus One and I can tell you it DID NOT WORK. So I'm going with our bluetooth is crippled at least slightly. A custom ROM resolves the issue on HTC devices so I'm guessing it will be fine with us as well once we get Cyanogen on it.
interesting i thought i read that a guy had paired it with the wii mote. odd, well my mistake.
I HAVE tried the Wii Remote using the same app that worked fine on my G1 and Nexus One and I can tell you it DID NOT WORK. So I'm going with our bluetooth is crippled at least slightly. A custom ROM resolves the issue on HTC devices so I'm guessing it will be fine with us as well once we get Cyanogen on it.
Click to expand...
Click to collapse
thanks for the info. here's to petitioning for cm6 on the fascinate...
i have been reading online and found a few of the how to guides on how to do this but unfortunatley the download links are broken i was wondering if anyone here would be willing to put an up to date guide together .... i was also wondering is if you always need your evo conected to the ps3 for it to work or is a one time thing ...also would like to know by doing this would i loose the ability to play games online with the ps3
with any console modding you may lose the ability to play online. I say may only because some games and consoles like the wii dont have checks to make sure you are not modded. the ps3 however i am sure has checks built in and will make it so you have to run a certain version to be able to play online, however there are some fixes to get the latest versions and still maintain modding functionality. This is my experiance with modding the wii but i am sure most still applies across all consoles.
yea i already have the wii mod .... pointless since the wii isnt ever used in my house id much rather have the ps3 mod and if possible to still play online that would be great knowledge
I wouldn't risk playing online with a mod. One update from sony will **** you up. Just like it did for hundreds of thousands of xbox owners. Not only did their live account get terminated, but they also got their hwid blacklisted.
whats hwid?
diggsnicca said:
whats hwid?
Click to expand...
Click to collapse
Hardware ID
diggsnicca said:
i have been reading online and found a few of the how to guides on how to do this but unfortunatley the download links are broken i was wondering if anyone here would be willing to put an up to date guide together .... i was also wondering is if you always need your evo conected to the ps3 for it to work or is a one time thing ...also would like to know by doing this would i loose the ability to play games online with the ps3
Click to expand...
Click to collapse
no it doesnt need to stay connected. the files are out there an there are guides on this very forum and if your running 3.42 your screwed for the moment.
Firmware 3.42 means you're already SOL and have updated too far.
If you were 3.41 you could still use the jailbreak. You just need to be running the jailbreak kernel on your phone momentarily while you start up the PS3. Once it's on you can unplug the phone and return it to normal, but you will have to repeat every time you turn the PS3 off and on.
Also the workarounds for remaining able to play online have been defeated as well, so basically you have to have 3.41 or older and you can no longer go online at all (well do stuff that needs PSN)
Hi there! I bought a Tegra Note7 which is equipped with Tegra4 Chipsets.Now I want to play games with DualShock3 via SIXAXIS CONTROLLER. The thing is that the app worked very well on my Moto Droid Bionic,but it did not work on my Tegra Note7. When I clicked "start" with every necessary steps done and the screen displayed address of bluetooth and listening for controllers,the "bluetooth" icon did not appear on the top status bar. So the DS3 controller was continuous flashing its 4 red lights,then no other things took place.
I have restored original android 4.3 rom,no changes. Could*you*please*tell me how to work it out? Thank you!
Before I rooted tablet I was able to plug ps3 controller in and was able to map buttons m8 I also used sixaxis enabler and everything fine until rooted then lost all ps3 controller mappings there's very little info on this subject I asked before ,something to do with Bluetooth drivers !
Sent from my TegraNote-P1640 using XDA Premium 4 mobile app
How about open your eyes, read old threads, use the search function. this issue has been discussed a hundred times now..
e: for the lazy ones..
http://forum.xda-developers.com/showthread.php?t=2633221
http://forum.xda-developers.com/showthread.php?t=2541873&page=3
cars10k said:
How about open your eyes, read old threads, use the search function. this issue has been discussed a hundred times now..
e: for the lazy ones..
http://forum.xda-developers.com/showthread.php?t=2633221
http://forum.xda-developers.com/showthread.php?t=2541873&page=3
Click to expand...
Click to collapse
Yeah,you are right.It does has been discussed for 100 times.,but no one exactly figure it out.
generalradec said:
Yeah,you are right.It does has been discussed for 100 times.,but no one exactly figure it out.
Click to expand...
Click to collapse
There's really nothing to figure out. The bluetooth stack on the stock ROM just doesn't work with PS3 controllers. Until someone can make a custom ROM with some sort of changes to bluetooth (or until Nvidia releases a ROM with decent bluetooth support), it's just not going to work, and there's nothing we can do to change that.
rchrdcrg said:
There's really nothing to figure out. The bluetooth stack on the stock ROM just doesn't work with PS3 controllers. Until someone can make a custom ROM with some sort of changes to bluetooth (or until Nvidia releases a ROM with decent bluetooth support), it's just not going to work, and there's nothing we can do to change that.
Click to expand...
Click to collapse
Thank you for your definite answer! Anyway I now understand what is going on with Tegra Note7, and I have substituted DS3 for wamo pro2 .I hope it can function on my device via bluetooth.
generalradec said:
Thank you for your definite answer! Anyway I now understand what is going on with Tegra Note7, and I have substituted DS3 for wamo pro2 .I hope it can function on my device via bluetooth.
Click to expand...
Click to collapse
The 4.4 Update is supposed to address controller usage.
e8hffff said:
The 4.4 Update is supposed to address controller usage.
Click to expand...
Click to collapse
Yeah,wamoPro can work on TN7 via BT now.But there is a pity for Sixaxis controller still not functioning in TN7.
I've had some success using the USB/BT Joystick Center app with an otg cable and a Bluetooth dongle.
Sent from my TegraNote-P1640 using Tapatalk
PS3 SixAxis controller - USB/BT Joystick Center
yes USB/BT Joystick Center GOLD worked wired with PS3 sony.
H T T P jaredmorgs.github.io/#FAQ_PS3_Sixaxis
Wireless PS need dongle CSR bluetooth
Ragnorok64 said:
I've had some success using the USB/BT Joystick Center app with an otg cable and a Bluetooth dongle.
Sent from my TegraNote-P1640 using Tapatalk
Click to expand...
Click to collapse
Please send Link of bluetooth dongle and USB-BT apk version
anilmaurya said:
Please send Link of bluetooth dongle and USB-BT apk version
Click to expand...
Click to collapse
Not 100% sure what you're asking for but hopefully this is it.
http://www.ebay.com/itm/321254758547?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649
https://play.google.com/store/apps/details?id=com.poke64738.usbjoygolddemo
https://play.google.com/store/apps/details?id=com.poke64738.usbjoygold
I can't get it to work as consistently on my tablet as Better DS3 works on my PC though.
rchrdcrg said:
There's really nothing to figure out. The bluetooth stack on the stock ROM just doesn't work with PS3 controllers. Until someone can make a custom ROM with some sort of changes to bluetooth (or until Nvidia releases a ROM with decent bluetooth support), it's just not going to work, and there's nothing we can do to change that.
Click to expand...
Click to collapse
Any Idea if this is actually possible? sitting with a rooted TN7 which I spent a while figuring out how to root (not particularly learned in android atm) and pretty pissed off that my dreams of having a nice practical ghetto shield without cables have been crushed.
admiralaverage said:
Any Idea if this is actually possible? sitting with a rooted TN7 which I spent a while figuring out how to root (not particularly learned in android atm) and pretty pissed off that my dreams of having a nice practical ghetto shield without cables have been crushed.
Click to expand...
Click to collapse
It's technically possible, but there has been almost no developer interest in this device. There are no custom ROMs available, and there's only one alternative kernel available, though I never did try a Sixaxis with that kernel... I do know that it broke support for my Moga, so that's not exactly promising. I'll have to give the Sixaxis a try here in a bit.
rchrdcrg said:
It's technically possible, but there has been almost no developer interest in this device. There are no custom ROMs available, and there's only one alternative kernel available, though I never did try a Sixaxis with that kernel... I do know that it broke support for my Moga, so that's not exactly promising. I'll have to give the Sixaxis a try here in a bit.
Click to expand...
Click to collapse
Assuming you mean shaky156 kernel I can confirm that it doesn't help the bluetooth issue
Just tried the latest version of Sixaxis with the latest OTA. And it seems to finally work on the built in blutooth stack without a usb dongle!