[Q] Wii Remote Accelerometer Data - Android Software Development

I am in the process of writing an Android app that will receive the accelerometer data from the Wii Remote. I know that a few developers have created excellent apps to receive button press events, so it looks like 90% of the work has been figured out. If possible, could one of these developers please share their knowledge of establishing the Bluetooth connection? Are you using the Android Native Development Kit or the BT Java SDK? Are you using the Bluez library or an alternative? Any pointers or source code is appreciated.

Related

PS3 Control on Android Devices?

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.

Upnp help

Hi!
I have been writing android programs for a while now, and I have decided to make a remote controller to control fooobar2000. I used to have one working which just ran command line arguments, but most of these are no longer supported (after foobar2000 version 0.8 something). I have checked out the foo_upnp plugin, which seems to work nice with some android apps (e.g. Andromote). The problem is, I cant seem to find any information on how to actually implement the remote controlling in the source code.
Does anyone know where to start looking?
I have already tried Google without satisfying results.
Thanks in advice!
//smaaland

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.

Android bluetooth game development

Hello,
I started developing games for android a month ago, now Im wondering am I able to create a game such as super smash bros. for android that uses Bluetooth to communicate and play? The game will be mainly for tablet but will be adapted toward Mobile Phones.
Regards,
Tripplemin
tripplemin said:
Hello,
I started developing games for android a month ago, now Im wondering am I able to create a game such as super smash bros. for android that uses Bluetooth to communicate and play? The game will be mainly for tablet but will be adapted toward Mobile Phones.
Regards,
Tripplemin
Click to expand...
Click to collapse
Yes you can - Android supports standard Bluetooth API for peer-to-peer communication, typically using sockets over bluetooth l2cap protocol. This means you could also communicate with non-Android devices but not iOS - it does not support these API's.
Implementation is not too difficult, particularly if you are familiar with doing sockets in Java.
On the other hand, you will probably encounter wonkiness. One issue is various implementation bugs, which are different on the different manufacturers because they implement their own Bluetooth drivers and stacks.
Also, the Bluetooth protocol supports a master-slave architecture. A master can coordinate communication with up to 7 slaves, but operates poorly/inefficiently if it is simultaneously operating as a slave to another master (or the master of 2 piconets at the same time).
In practical terms this means that it will work best if none of the devices playing the game are simultaneously using Bluetooth for e.g. tethering, controller, headset, google glasses....
Also, what happens if the master of the piconet (probably the person who initiated the first connection) stop laying and leaves... how quickly and with what prodding from your app will a new piconet form?
Looking at what I have written I realize I am probably putting you off the idea, and I'm not sure if that is fair - while I've done Bluetooth on Android and have done all the weird piconet stuff on raw Linux, I have not personally encountered the issues I'm describing on Android (just Linux). So I'm partially conjecturing and would be happy if someone else who had tried these permutations on Android wanted to correct me...
QUESTION?
Thank you so much for yur reply and I would like to contact you in the future so would you please give me your email address?
Regards,
tripplemin
tripplemin said:
Thank you so much for yur reply and I would like to contact you in the future so would you please give me your email address?
Regards,
tripplemin
Click to expand...
Click to collapse
Ask in the forum. This is what this is made for.
Everyone knows different things. You will get the best help here because there are many people seeing your question here.
THAN YOU!
Oh ok....and I love XDA, it brings developers to help each other..
Regards,
tripplemin

[Q] Sending data over wifi

I want to use the screen of android phone/tablet as a remote input device.
I want to get the position of the finger(s) and send that using udp socket to a pc/laptop.
Later I'd also like to add more input possibilities and add the option to send data (text/images) to the phone and displaying that.
I've already created a simple server that receives messages in C++ but my knowledge about java/android development revolves around the hello world program, so I'd need a lot of tips and pointers for this one.
Anyone knows about a good(detailed) tutorial about this?
Perhaps try reposting this in C++ forum? I don't know much about it and I'm sure other may be the same way, especially since we're in the Java section. Although i really like this idea!
Sent from SPH-L710 (using XDA app)

Categories

Resources