PS3 Control on Android Devices? - Android Software Development

So I was running through the source code for the Behold 2 Kernel.
I found: kernel\drivers\ps3
with files inside to control/manage the PS3 system. (Turn on, off, etc)
Is there a way to activate those drivers and actually connect your phone through bluetooth to the PS3 and control it? On, Off and move around in the menu?
That would be pretty interesting... specially if you can get Remote Play to work on an android device!

Wow, if this is true then i'll definitely get an android phone to play with!

I guess not many people with ps3's around here. I'd love to have some sort of interaction with my ps3.

I'd really like this functionality too.

mrandroid said:
So I was running through the source code for the Behold 2 Kernel.
I found: kernel\drivers\ps3
with files inside to control/manage the PS3 system. (Turn on, off, etc)
Is there a way to activate those drivers and actually connect your phone through bluetooth to the PS3 and control it? On, Off and move around in the menu?
That would be pretty interesting... specially if you can get Remote Play to work on an android device!
Click to expand...
Click to collapse
I think that the catch with android and bluetooth keyboard/mouse support was the lack of the HID profile. If the behold actually has that built in custom it would unlock a lot more than just ps3 support, but I'd love that too.

They have managed to port the Remote Play features to MS Windows so it must be possible to port it to a Linux based OS (i.e.. Android)

Tawm said:
They have managed to port the Remote Play features to MS Windows so it must be possible to port it to a Linux based OS (i.e.. Android)
Click to expand...
Click to collapse
There has to be a way. The Kernel source codes come with PS3 Modules built by sony. The PS3 itself runs on linux (original ps3s even support installing linux operating systems)
I believe someone would need to activate those modules and rebuild a kernel, then someone needs to build an APP to take advantage of those features.
For sure we can connect through bluetooth and turn on/off the system and navigate the menu... That much the modules tell you. But again we need an APP for it too.

Thats cool if you can controller the ps3 i would buy an app for that

me too!

mistake. please delete

I'm eagerly waiting for this functionality to reach the Android platform too. Perhaps, now when SonyEricsson is focusing on the Android platform we'll see this kind of functionality implemented into a Android based device soon, and perhaps then ported to other devices.
Best case scenario would in my eyes of course be that the Android platform itself would support necessary HID profiles. I know that Android 2.X supports more Bluetooth stacks than previous versions, but that doesn't help I suppose..?

This company is making an app to use external bluetooth keyboards as an input device for Android. Maybe we can see if they could also make one for Android to control other devices such as the PS3. I just posted on their forum to ask if they could do this (if even possible):
http://www.teksoftco.com/forum/viewtopic.php?p=5247#5247
I for one can't wait for the day that I can use my Android phone to input text on my PS3.
EDIT: they already replied. that was fast! ...so it's do-able but need "community interest" before investing. [hint, hint]

jasnmb said:
..so it's do-able but need "community interest" before investing.
Click to expand...
Click to collapse
*shows interest*

xPatriicK said:
*shows interest*
Click to expand...
Click to collapse
we all should post to that forum to show as much interest as possible.

yeah, this would be great, if not by blutooth, even if we had to plug it in usb I would be fine with that.
*shows interest*

bluemaemo should work as the N900 is running on linux too:
http://www.valeriovalerio.org/?page_id=174

Turn your android mobile device into a bluetooth keyboard huh... *shows money*

maybe we should start a poll and link them to it... id pay to use my G1 as a bluetooth keyboard & touchpad on my ps3

Is there a way to do the contrary? I mean, control your phone with a PS3 controller, for games?

mrandroid said:
So I was running through the source code for the Behold 2 Kernel.
I found: kernel\drivers\ps3
with files inside to control/manage the PS3 system. (Turn on, off, etc)
Is there a way to activate those drivers and actually connect your phone through bluetooth to the PS3 and control it? On, Off and move around in the menu?
That would be pretty interesting... specially if you can get Remote Play to work on an android device!
Click to expand...
Click to collapse
I do/did some research and worked on a Linux OS based on some code from the PS3-Linux project, a collaboration between Sony and the open-source community to help port Linux to the Cell Broadband Engine architecture and the Playstation 3. If you look, on the XrossMediaBar of old "fat" PS3's, under Settings > System Settings, there's an option for "Install Other OS" and "Select Default System". It was dropped/suspended indefinitely on development of the slim PS3's, to save time and money (since the slim PS3 re-does some central things in the I/O architecture, requiring a new hypervisor to be programmed.)
I'm actually considering porting the Android OS to the Playstation 3 sometime in the future, as a media-center, games and apps environment alternative to the PS3's OS. It will likely be based on my experience with the Electricsheep android firmware, another one of my projects.
Android, though built with touch in mind, works fine with a directional control and menu keys, not unlike the PS3 controller. A virtual mouse built on the right analog stick won't hurt either. Sixaxis provides the accelerometer, too. Not sure how it'll fare at 1080p resolution, but I'll wait 'till I get it ported to test that.
What I'm guessing, is that either someone else was considering the same thing, and pushed the drivers for the PS3's hypervisor and I/O from the mainline kernel into Android, or just left that in there and forgot to remove it.
But no, I don't believe said drivers are actually for remote-controlling the PS3 either by Bluetooth or Remote Play. They're likely not even compiled on builds for mobile phones (unless someone makes a Cell-phone.. hehe... eh.. *ahem*)
Anyway, if someone else already said this, I'm sorry, but I didn't read the entire thread. It's kinda long.
Also:
blackplatypus said:
bluemaemo should work as the N900 is running on linux too:
http://www.valeriovalerio.org/?page_id=174
Click to expand...
Click to collapse
Maemo could and probably would run on the G1: the basis for my Utopia Pocket Linux project.

Related

Connecting WiiMote

Hi, I'm a student of IT. My final project is on remote monitoring of patients. One of the features is the detection of falls and I have to use two types of accelerometers (Witilt and WiiMote).
Market applications that use the Wiimote does not work in our i9000.
And my question is: Is it possible with the standard ROM to perform a program that connects to the Wiimote?
If so could someone guide me a little about how to start, or put some link where I can see the starting point for this part of my project?
If it is not possible, would appreciate an explanation of why this happens.
Thanks in advance
Nobody can help me? =)
Can't you just use the accelerometer and orientation sensors built into the phone? If you have to use the external hardware in conjunction with the phone I would say use an Arduino, which has a lot of Wiimote and Wiichuck interface code available, with a Bluetooth module to talk to the phone; look at the Amarino project for interface code.
Alternatively the wiimote IME developer had the problem with the SGS and HTC because they were using a native library as most phones didn't have Bluetooth HID support, and the Bluetooth native library didn't behave the same way on all phones. Because the SGS with Froyo has Bluetooth HID support you may be able to interface with the Wiimote at a higher level and avoid the native libraries, if you take care of its quirky pairing behavior, but you will have to do more work with the Wiimote low-level protocol, which is quite well documented.

A7+usb mouse=?

I read yesterday in the online owners manual that the A7 is compatible with both a mouse and keyboard, however when I plug my mouse in I don't get a cursor. I can select stuff but I have to completely guess where the pointer is
Does anyone know how to enable the cursor or maybe an app in the market that will do this? Thanks!
There is no cursor. I don't believe android has a way of supporting a mouse like a regular computer either.
netstat_EVO said:
There is no cursor. I don't believe android has a way of supporting a mouse like a regular computer either.
Click to expand...
Click to collapse
it actually works perfect on Folio100, Toshiba enabled the Nvidia framebuffer mouse, which also exists on A7, but is not enabled and embedded into framework for use.
but mouse is fully supported, but depends on distributor to enable it correctly.
I cannot fix it, as it require framework source additions i guess, i can only do limited smali coding.. too complex smali makes it impossible to add.
Dexter_nlb said:
it actually works perfect on Folio100, Toshiba enabled the Nvidia framebuffer mouse, which also exists on A7, but is not enabled and embedded into framework for use.
but mouse is fully supported, but depends on distributor to enable it correctly.
I cannot fix it, as it require framework source additions i guess, i can only do limited smali coding.. too complex smali makes it impossible to add.
Click to expand...
Click to collapse
Hrmm learn something new every day I guess.
Any other manufacturers that you know of that have enabled it?
Thanks guys. Maybe whenever elocity stops messing around and decides to release the source code we can help you get some things sorted out. Love your mods Dexter!

[DEV][AADK] Google's Arduino based "ADK" Working on Nexus One

I managed to snag an Android Accessory Development Kit from Google IO.
After wrangling all the necessary code bits together I got the demo code running on the Arduino board and my Nexus One.
The first picture you can see the phone reading the sensors of the demo shield, button states, the temperature, a light sensor and the joystick position.
In the second picture the phone is controlling the led colors and has one relay turned on.
In the last picture you can see that the phone detects the board being plugged in, Android knows there is no app installed for the board and it cannot be found in market.
The Nexus One is running a rooted 2.3.4 ROM from this thread
P.S. Mod's can we get a forum section for Android Accessory Development?
Now for Pics.
Now that is bad a**!!! I was waiting for something like this!!
Hey, I've been attempting to hack in the support into CM7 (nightly, 2.3.4) on my EVO without much success. I've rebuilt the kernel with the necessary flag enabled and ripped the JAR/XML files from the Nexus S update.
I've monitored logcat and seen that it does find the framework JAR (the application wouldn't install otherwise since it's a needed feature) and a dmesg scan shows that the kernel driver is being initialized.
What's happening now is I plug in the ADK and the output from the Arduino board spams that it couldn't get a protocol version from the phone. The phone slows down to a crawl as its probably being spammed with requests from the ADK for a protocol version and doesn't know what to do.
I'm at a loss here as to what I could possibly be missing. If you have any insight through your own endeavors it would be much appreciated.
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.
And if you're feeling generous...the code?
badass. good ****
Well done mate...
Have tried it out with arduino UNO?...
uh uh, why i wasn't at the Google I/O
Google is doing really good s**t nowadays. I suppose that Arduino will guest in my house in some time as I am fascinated
I am Actually using the ADK with my Nexus One on an Arduino UNO and an USB-Host Shield from Sparkfun, it works equal but only take a fraction to buy it
My first project is an interface for my Audi, at the moment i only use it to start the Motor, but in future i want to try to build a CAN-BUS interface...
Sure here is the compiled ADK.
-Nik
bharathp666 said:
Well done mate...
Have tried it out with arduino UNO?...
Click to expand...
Click to collapse
The Arduino UNO doesn't have native USB Host support onboard like the megas.
You will need a USB Host shield and will have to modify the Arduino code.
SoyoBro said:
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.
And if you're feeling generous...the code?
Click to expand...
Click to collapse
You can find all the ADK instructions and code here.
Note: When you select your build target you must choose
Target Name - Vendor - Platform - API Level
"Google APIs" - "Google Inc." - "2.3.3" - "10"
Otherwise you will get errors trying to build on the new libs. The instructions on the ADK page wern't very clear about this. Took me awhile to figure that one out.
You will need to update your Android SDK if you don't see those options.
-Nik
As for the point of using an arduino uno, Oleg is providing an newer version of his USB lib, it now works with his shield and the ADK.
My car is almost starting with the ADK, i am only missing a few relays and stuff to get it completed but i posted a proof of concept on youtube. Text an explanation is all german, sorry for that
http://www.youtube.com/watch?v=FlvpMwSxgMg
if there are any questions Ill be here for you
Great stuff. I am really looking forward to this.
But what I don't get is which hard- and software is required:
- is 2.3.4 sufficient?
Answer: YES
- do other devices (running 2.3.4) than the Nexus 1/S work?
Answer: Pending
- will an Arduino Duemilanove board work?
Answer: NO
Thanks for your help, guys
Besides those questions I have one more:
- assuming I have a board that is connected to a power supply. will i be able to charge an Android device when connecting the board to the handset via USB?
Answer: depends on the boards and its power consumption/outlet. Basically, it should
Nikropht said:
P.S. Mod's can we get a forum section for Android Accessory Development?
Click to expand...
Click to collapse
+1 for a dedicated section.
I reckon it's gonna take off as soon as more USB host boards become available
My Arduino Duemilanove works perfectly

Emulating Other OS's on the TouchPad via qEMU

ALL CREDIT GOES TO GRAZZT519, HE CAN BE FOUND HERE: http://forum.xda-developers.com/member.php?u=4289767
UPDATE 10/10: .IPK of qEMU now on Grazzt's website.
WE WILL NOT SUPPLY YOU WITH .IMGs of OPERATING SYSTEMS, IT WOULD BE VIOLATING COPYRIGHT AS WELL AS XDA'S RULES!
Grazzt also has dosbox and GemRB for the touchpad on his website: http://touchpad.grazzt.com/
--------------------------------------------------------------------------------------------------------------------------------------------------
TESTED/WORKING OS's:
Windows 95: Working (tested by grazzt) (Video: http://www.youtube.com/watch?v=4CJ2mSToQS0)
Windows 98 SE: Working (tested by grazzt) (Video: http://www.youtube.com/watch?v=cfwsIWv1eW0)
FreeDOS: working (tested by grazzt)
Windows XP: Not working (tested by grazzt)
Windows NT: Not working (tested by me, it bluescreens and then qEMU crashes)
Windows ME: Working (tested by me)
Windows 3.1: Partially working (tested by me, needs to type "WIN" via a keyboard to launch GUI)
IBM OS/2: Partially working (Boots up, than spits out C:\IBMCOM\PROTOCOL\NETBEUI.OS2 on line 108 of CONFIG.SYS was not installed, Line 108 is ignored. Press Enter to Continue...) It may potentially boot up if we had a virtual keyboard.
--------------------------------------------------------------------------------------------------------------------------------------------------
FAQ:
Q: Did you make this?
A: No! It was made by a user known as Grazzt (he can be found here: http://forum.xda-developers.com/member.php?u=4289767)
Q: Where are the download links?!
A: If you're talking about a qEMU .IPK, it can be found here: http://touchpad.grazzt.com/qemu/ but if you're talking about operating systems,
you must find them by your own means, I would be violating copyright and XDA's rules if I posted them here. Grazzt won't supply you with these, either, so don't bother him or me about .IMGs.
Q: How do I use this?!
A: If you have to ask this question, you shouldn't be using this, but if you would really like to know: Place your hdd.img in /media/internal/qemu and open qEMU, it should attempt to boot the OS within the .img
Q: Does this run smoothly?
A: For me it does, but on my TouchPad, I have a ton patches to lighten up WebOS, as well as UberKernel, set at 1.5GHz, with the performance governor . It will probably not run as smoothly on a stock TouchPad, but I suggest giving it a try.
Q: Where's my keyboard?!?!
A: A virtual keyboard has not been implemented (yet?).
Q: Does this overtake WebOS?
A: No, it runs in a card, as an application.
Q: WTF is wrong with the mouse?!?!
A: Nothing, the mouse is simply set to relative instead of absolute.
Q: Does sound work?
A: Yes, however, on certain OS's you may have to repeatedly increase and decrease the volume (with the TouchPad's volume rocker) to get it to properly intialize.
qEMU is what used to run win95/98, it is real, but such a hassle to run an outdated OS...not to mention the mouse calibration is wayy off, and none of the internal hardware works (no sound, wifi, opengl etc.)
also, the entire package has to be compiled, it isnt ready to use just by dl'ing it and providing a ripped OS...
its a neat little PoC, but totally not worth it considering ARM Win8 dev is dropping soonishly (hopefully )
Solidus_n313 said:
qEMU is what used to run win95/98, it is real, but such a hassle to run an outdated OS...not to mention the mouse calibration is wayy off, and none of the internal hardware works (no sound, wifi, opengl etc.)
also, the entire package has to be compiled, it isnt ready to use just by dl'ing it and providing a ripped OS...
its a neat little PoC, but totally not worth it considering ARM Win8 dev is dropping soonishly (hopefully )
Click to expand...
Click to collapse
speak for yourself.
I'm a tinkerer.
I like diy projects
I do not like being hand-fed.
IT is worth it for me.
Im the "author" (well,ok, compiler) of the projects, and yeah, qemu is sort of lame for the enduser. Just wanted to see if it works and it does. Sound does work, and if I looked hard enough could probably change the mouse settings to be absolute instead of relative. Sad part is because Ive shut down win98 too many times ungracefully, I have registry errors, and too lazy to make a clean hdd image. lol
Cant really distribute it along with hdd imags of windows, Im sure you know why. I believe the freedos images from qemu.org work fine.
Dosemu has also seriously ticked me off, some games see mouse clicks, others dont, its frustrating. If you have a game that sees mouse clicks, I think it runs quite well.
Gemrb runs well, dont know what else can be said about it. Go for the eyes BOO!
grazzt519 said:
Im the "author" (well,ok, compiler) of the projects, and yeah, qemu is sort of lame for the enduser. Just wanted to see if it works and it does. Sound does work, and if I looked hard enough could probably change the mouse settings to be absolute instead of relative. Sad part is because Ive shut down win98 too many times ungracefully, I have registry errors, and too lazy to make a clean hdd image. lol
Cant really distribute it along with hdd imags of windows, Im sure you know why. I believe the freedos images from qemu.org work fine.
Dosemu has also seriously ticked me off, some games see mouse clicks, others dont, its frustrating. If you have a game that sees mouse clicks, I think it runs quite well.
Gemrb runs well, dont know what else can be said about it. Go for the eyes BOO!
Click to expand...
Click to collapse
WELCOME GRAZZT!
also, i wasnt bashing the project, its indeed clever, and ive see similar projects done befofe, but considering how low end some of the touchpad users here are (hopefully that doesnt last long!) its not novel for regular users.
having said that, it looks like the potential for winxp IS there, but we would have to resort to a minimalized "usb-stick" version with the media touch drivers slipstreamed (which really isnt a bad thing )
and scrizz, im the exact same as you , i dont buy, i diy! that post was more of an initial overview for ppl who just scrub through these posts and ask for links to complete projects and eta's but since the dev is here, im sure the project can advance by leaps and bounds with our help and testing
I cleaned up the original post a little.
"WE WILL NOT SUPPLY YOU WITH .IMGs of OPERATING SYSTEMS, IT WOULD BE VIOLATING COPYRIGHT AS WELL AS XDA'S RULES!"
Not fully true. You can post .img-files of Haiku and various Linux-distro's.
Vistaus said:
"WE WILL NOT SUPPLY YOU WITH .IMGs of OPERATING SYSTEMS, IT WOULD BE VIOLATING COPYRIGHT AS WELL AS XDA'S RULES!"
Not fully true. You can post .img-files of Haiku and various Linux-distro's.
Click to expand...
Click to collapse
but linux distros probably can be run chroot'd (better performance than qemu emulation)
grazzt519 said:
Im the "author" (well,ok, compiler) of the projects, and yeah, qemu is sort of lame for the enduser. Just wanted to see if it works and it does. Sound does work, and if I looked hard enough could probably change the mouse settings to be absolute instead of relative. Sad part is because Ive shut down win98 too many times ungracefully, I have registry errors, and too lazy to make a clean hdd image. lol
Cant really distribute it along with hdd imags of windows, Im sure you know why. I believe the freedos images from qemu.org work fine.
Dosemu has also seriously ticked me off, some games see mouse clicks, others dont, its frustrating. If you have a game that sees mouse clicks, I think it runs quite well.
Gemrb runs well, dont know what else can be said about it. Go for the eyes BOO!
Click to expand...
Click to collapse
Hey nice to meet you. You can retake my project, I don't have a Pre anymore also you can use my IMG's if you want, I like people like you . Email me and let's talk.

Using an Arduino via Bluetooth to Windows Phone

Hi Everyone,
I haven't been very active for awhile but only because I am trying to do big things for Windows Phone and Hardware Hackers alike. I've been making Hardware to interact with my Arduino/ATTiny/ATMega Projects.
Why use Arduino? They're very popular and one of most open Microcontrollers as well as VERY cheap. Besides that, my Robot Club here in Vegas uses it as the primary MC "base".
You can see it in action at (YouTube Tags didn't work...):
http://www.youtube.com/watch?v=JOMnmA0EwJo
If you'd like to see the Arduino Code, check out:
https://github.com/lanceseidman/Arduino-Bluetooth-WinPhone8/tree/master/Arduino
The Windows Phone Code (Coming shortly, also a NuGet Project + IR, TEMP., ETC):
https://github.com/lanceseidman/Arduino-Bluetooth-WinPhone8/tree/master/Windows Phone 8
I'll be talking about making Robots, RC Cars/Planes, TV Controllers, and more soon.
Nice.
I've been thinking about this these past few days, and figured several ways of doing it.
By the way, is this possible on 7.8 as well?
mcosmin222 said:
Nice.
I've been thinking about this these past few days, and figured several ways of doing it.
By the way, is this possible on 7.8 as well?
Click to expand...
Click to collapse
7.8 is not compatible with most Bluetooth functionality, it's extremely basic. Only 8 has actual decent functionality.
If you had 7.8, I would recommend using WiFi+Web Server and have a page with all the commands you want and would obviously be accepted/used via Web Browser.
FULL PROJECT ONLINE: https://github.com/lanceseidman/Arduino-Bluetooth-WinPhone8

Categories

Resources