Hi everyone,
Been fiddling around with my 6P, and I'm trying to connect some HID devices to the phone via bluetooth (namely a sixaxis PS3 controller). I'm using the standard method of the app "Sixaxis controller" on the android market, but unlike this video here(https://youtu.be/xOkHr9cS3GU?t=8m48s) the driver does not start.
Here is a logcat of the attempt to start the driver, and the screencap is attached below displaying what happens in the app.
Logcat: http://www.megafileupload.com/e9nh/bluetoothtest.txt (just click free download twice its clean I promise)
I volunteer my device for any testing.
It seems that marshmallow has custom bluetooth stack support as per here, there are a few options:
https://source.android.com/devices/bluetooth.html
But it seems that our 6P linux kernel does not have support for the playstation controllers as a bluetooth device, but it's possible that we can create an update.zip to system files, settings, apks and/or kernel patch(with sony components or custom work) to allow bluetooth support for this device (as well as have better support for other HID devices in general). Keep in mind this is also something we could port to other android devices, so it would be a great project.
I myself am not familiar with kernel development, nor modding for the most part, but I've found a few sources that may be of use and I'm wondering if anyone here has experience in bluetooth related work.
Obviously standard linux projects like BlueZ won't work for android(found a BlueZ for android project with greater support!), but I do know that we use a linux kernel so I'm sure something can be done. Here's what I've found:
BlueZ for android:
https://01.org/bluez-android
Ubuntu kernel mods:
https://help.ubuntu.com/community/Sixaxis
Support as HID bluetooth joystick:
http://www.pabr.org/sixlinux/sixlinux.en.html#
Adding bluetooth HID profile to android:
http://i-miss-erin.blogspot.ca/2010/06/add-bluetooth-hid-profile-in-android.html
An example of an android bluetooth HID profile update.zip(for a different phone):
http://forum.xda-developers.com/showthread.php?t=2051273
Other Bluetooth HID implementation (cool):
http://hsc.com/blog/android-labs-bl...mentation-your-phone-as-a-mouse-voice-control
Anyone capable of figuring this out?
bump
Please someone. If we can have Bluez on our 6p, it will also mean we get aptx support for awesome Bluetooth audio!
Related
Hello guys,
I want to write an app that registers my android phone as a HID through bluetooth to my PC. I have found many descriptions how I can connect a bluetooth keyboard or mouse to an android phone but no working solution doing generally the opposite.
The most helpful so far was groups.google.com/group/android-developers/browse_thread/thread/73f03a22963b356d, but as you can see there also isn't any solution provided.
So is it currently even possible doing this with android? Could there be a way using the underlying BlueZ with the NDK?
Any hints and help would be much appreciated.
I'm currently working on something related, which is connecting an android phone to a PS3.
You can look in /system/etc/bluetooth, notably the main.conf file, in which you'll find a Device class definition. I yet have to try to change it, to see if it changes the way the device is recognized by others
Hope this will help.
Greetings! I've been lurking on XDA for quite some time, and first I would like to give a big thank you to all the developers. I would never have purchased a Kindle Fire if I didn't have faith in your ability to unlock the hardware's true potential. You guys/gals rock.
Here's my question: I develop and troubleshoot municipal and commercial wired/wireless networks and I would really like to be able to use the KF with backtrack. I understand that OTG support under ICS is very close to being a reality, would it be possible to support an external wifi adapter via OTG?
Drawing power is the first problem that comes to mind, so my thought is to mod a USB OTG adapter to draw from an external DC source instead of the KF.
This could have some awesome potential if it could work. I'm willing to do whatever I can to make this happen, so if one of you veteran developers could set me on the right track to backtrack it would be greatly appreciated.
I'm no wifi/kernel expert but as far as i have understood it:
It should be possible if you get the right wifi modules to work. Android uses a modified wpa_supplicant, so even if you have linux wifi drivers for usb you would need to patch them to get it running. The current kernel does not have mac80211/cfg80211 modules compiled it, but i think that you probably would need them (i think they are in the kernel source, they are just not set yet). The current module for the tiwlan is proprietary and is also uses some strange ibCustomWifi as wrapper around WEXT, not sure if they also did some changes there.
If the 3.0 kernel boots we should anyhow change to a mac80211 wifi driver and also use wpa_supplicant 0.8 instead of 0.6 so your chances should be a lot better with the 3.0 kernel.
So it strongly depends if your external wifi adapter is very well supported for linux (or better for Android ....) und if we get otg running. (There might be some hidden problems to discover).
Sengwall,
There are several threads in the xda forums for similar projects on different devices that might be useful as the steps are basically the same (assuming that somebody gets OTG working). Here's one of them:
http://forum.xda-developers.com/showthread.php?t=1484339
Thanks for the input...ill look and see if there has been success on other devices with the same board.... great suggestion.
Hey guys, new to the Rooting community, but I would first off like to thank each and every person that has put time into these projects. The possibilities that have been unlocked on different devices has been enormous and its all thanks to the dev community.
I do however have a question, I recently took my NC and installed Ginger Bread and then Ice Cream Sandwich onto it with no troubles. However upon reading everything that has to do with Bluetooth Audio Input and USB Hosting, theres something that doesn't quite add up.
I can successfully connect to my Bluetooth headset with both the built in Bluetooth and a Rocket Fish dongle that I used through USB Hosting. However I get no audio input, I know that this is a known problem and it has to do with a possible lack of audio codecs and some other ideas that I have seen thrown around.
What doesn't add up though, is that when I connect my Logitech USB Microphone using USB Hosting it works perfect and gets picked up by every app. So my question is, what is the difference between the USB built in drivers and the Bluetooth driver that was unlocked?
From my understanding the Audio input file, driver or whatever it may be sits as a separate file. So with that in mind wouldn't that mean that the file exists, because the USB Microphone is using, so why exactly doesnt the Bluetooth connection pick up the Bluetooth ear piece as a microphone and refer it to the same audio input file?
Once again this is basically me spit balling and asking some questions. I was looking through the source code for the Nook Tablet (Trying to find its internal mic driver) and noticed that there was an audio C file and was wondering if that is what is being used by the USB devices to recognize Audio Input.
Anyways, any response would be great, one of the last tweaks that I would love to help get worked out as I planned on making myself a lovely Voice Control app to run on my Nook Color, and a Huge USB headset is rather illogical.
vadlak said:
--SNIP--
the source code for the Nook Tablet (Trying to find its internal mic driver) and noticed that there was an audio C file and was wondering if that is what is being used by the USB devices to recognize Audio Input.
--SNIP--
Click to expand...
Click to collapse
Since you're apparently asking a question about a Nook Tablet, not a Nook Color, you should probably redirect it to that forum.
Audio on Linux and therefore Android is a huge can of worms that even most developers can't figure out. Bluetooth is yet another very difficult library and has its own way of dealing with audio in and out. A2DP media audio out protocol has no audio in capability. As far as I know, no one has ever sorted out or enabled hands-free protocol for the NC, which is what it would take to do a headset with mic.
If I understand it correctly, ant+ is the same 2.4 GHz as wifi and I see there is an ant+ driver on the play store. So will ant+ networking work on the n10 (or any android 4.2 tablet) or is it something the manufacturer need to hardwire into the hardware?
I have several devices including several heart rate monitors and a bike cadence / speed sensor I would like to use with my tablets. I use them on another android device and the frequency is there... So there should be a way to get then n10 to recognize it?
Ant+ driver on play store: https://play.google.com/store/apps/details?id=com.dsi.ant.service.socket
Anyone got ideas or a solution.?
Thanks!
The 2.4Ghz band is used by many different wireless products (ANT+, Wi-Fi, Bluetooth, cordless phones, car alarms etc), but they will not run on your tablet without the correct firmware and drivers to run them. The N10 does not have ANT+ firmware or drivers (there's a list of devices on the Play Store page you link to) on the hardware it includes. So yes, the manufacturer must build a device that has ANT+ built in to it.
However, you can still use ANT+ on your device. As the N10 supports the USB Host feature, you should be able to connect an ANT USB stick with the ANT USB Service (play.google.com/store/apps/details?id=com.dsi.ant.usbservice) and a USB OTG cable.
Hopefully this is a solution which works for everyone until there are more devices available with built in ANT+!
metaled222 said:
If I understand it correctly, ant+ is the same 2.4 GHz as wifi and I see there is an ant+ driver on the play store. So will ant+ networking work on the n10 (or any android 4.2 tablet) or is it something the manufacturer need to hardwire into the hardware?
I have several devices including several heart rate monitors and a bike cadence / speed sensor I would like to use with my tablets. I use them on another android device and the frequency is there... So there should be a way to get then n10 to recognize it?
Ant+ driver on play store: play.google.com/store/apps/details?id=com.dsi.ant.service.socket
Anyone got ideas or a solution.?
Thanks!
Click to expand...
Click to collapse
iRant said:
The 2.4Ghz band is used by many different wireless products (ANT+, Wi-Fi, Bluetooth, cordless phones, car alarms etc), but they will not run on your tablet without the correct firmware and drivers to run them. The N10 does not have ANT+ firmware or drivers (there's a list of devices on the Play Store page you link to) on the hardware it includes. So yes, the manufacturer must build a device that has ANT+ built in to it.
However, you can still use ANT+ on your device. As the N10 supports the USB Host feature, you should be able to connect an ANT USB stick with the ANT USB Service (play.google.com/store/apps/details?id=com.dsi.ant.usbservice) and a USB OTG cable.
Hopefully this is a solution which works for everyone until there are more devices available with built in ANT+!
Click to expand...
Click to collapse
Using the otg+USB on the N10 is an option at the gym on a stationary bike or stair climber. Just have to be REAL careful about the USB port and doing any damage. Using it with my Samsung Tab 2 7.0 and my bike would be a little trickier since I have a weather-proof case that mounts to the handlebars. Getting a USB stick or cable into it would not work. Such a shame since there are so many great sport/fitness programs for Android that do support ant+. A little surprising that Google would note code it into their hardware since they are all about tracking/obtaining data.
Could it be done with a custom ROM or is it even deeper in the hardware?
Going to have to do some real hard research for my next tablet.... Find something that does it all?
Thanks for the insight!
The N10 ANT+ hardware has been enabled with the "ANT+ Enabler": http://forum.xda-developers.com/hardware-hacking/hardware/ref-devices-ant-hardware-t2879990
Any chance to use an USB DVB-T DONGLE with NEXUS PLAYER?
Maybe. You want "TV" on your Set top box ?
Software is the tricky part. Does this work ? : http://www.geniatech.com/pa/pt115m.asp
I recall a decent thread here on XDA somewhere but can't find it right now and seem to recall the app wasn't going anywhere too fast.
And there's at least one 3 star app on Play, but doesn't work for many people.
I'll be happy just to get FM radio, with SDR Touch or whatever...
thanks, can be a thing like that but I want to use any usb dongle that I want and not a single choose like that.
For example I'v build for my daily use, a mini barebone with a small debian distro with VDR, in this way I can play divx and dvb-t as I want but, if my dongle usb dvb-t for any reason broke........I can buy the first dongle usb that I found on any market online, compile kernel module for that dongle and put in usb port it, it's so simple.......
I love nexus player, 99$ about, remote control, android marke, playing game, youtube, and more infinite possibility, but at TV DVB side I want be free to use any usb dongle DVB for desktop pc as I made today
There's any chance to get, nexus player kernel, enable DVB module for dongle, put inside usb port of nexus player, and watch tv?
At software side, is need an app or Android TV S.O. is capable to manage DVB correctly?
Thanks in advance!
Do you have any other Android devices? If you're already comfortable recompiling a kernel to support your hardware, I'd suggest trying that on a different Android device first. Then you would know if the Android framework could handle such a device.
EDIT: Here's a link to the Android TV developer site about supporting live TV in Android TV. It appears it's designed around that being possible, so if you can add your tuner hardware support to the kernel I don't see why it wouldn't be possible to make it work within Android.
ok tnx