Connecting WiiMote - Galaxy S I9000 General

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.

Related

PocketPC as MIDI controller?

This may be a stupid question, but is it possible to send real-time MIDI data over the USB link between PPC and computer (or via a wifi SD card for that matter)?
I've been playing with this Clanger Theremin app that turns your PPC touchscreen into a musical instrument of sorts - movement on the X axis changes pitch, movement on the Y axis changes volume.
It would be great if the entire touchscreen could be set up to send changes in MIDI values to a program running on the PC, also using the X and Y axes. Once MIDI data can be transferred, you could play the tuba via your PPC, or scratch virtual records like a dj, or really do just about anything.
There's already a program in development that allows you to do this with a Wacom drawing tablet (http://www.livelab.dk/tablet2midi.php), but a drawing tablet is already set up via USB to be a human input device or whatever you call it, so I wonder if the link between tablet and computer is at all similar to that between PPC and computer.
So would something like this be possible? Or is this just a pipe dream?
Wouldn't you just create a server on the desktop and get the client to connect to it through the Activesync network connection or bluetooth personal area network? The server would then have to behave like a MIDI device which might be the hard part. Would the PocketPC client produce MIDI events or send simpler x/y coordinates to the server which would then generate MIDI events?
this is a bloody excellent idea!!!
i can never have enough x/y pads!!!!!
anyone fancy a crack at it?
it should be pretty simple!
should have the option that when its touched it activates a switch (simple NOTE ON when pressed/ NOTE OFF when released). ive got annoyed with many xy pads for that reason!
i have a friend who may find this pretty easy.. sadly my code skills in that area are lacking severely.
i suspect he is too busy though..
i am quite liking the idea of the server/client method, with the ppc sending the data to a server that then converts that to midi data...
perhaps even a clever card export style driver emulation.. (only requires a pc driver instead of server program)
assignable hardware buttons!! great for activating effects..
anyone got any ideas?
edit: had another idea
great, i'm glad somebody else likes this idea! I guess the question is - how do you get a project like this started? I also don't have the coding experience that would allow me to make this myself.
Could I (or we, if there are more people that want this made) offer some sort of bounty for a finished app? Is there any system in place online for doing something like this? Something where you give a list of necessary specs and then post a reward for delivering a working app?
I certainly couldn't offer heaps, but if a bunch of people got together who wanted this and chipped in a bit of money each, perhaps it might motivate somebody to spend some time creating the thing. Programmers: how much would it take to convince you to spend some time creating something like this?
Or, if any experienced coders out there have a couple of ideas on how to do this and could point me in the right direction, perhaps I could do some research and eventually build this myself. As it is right now, I don't have a clue as to how to begin - can you send data of any kind down the USB link? Or over bluetooth, or wifi? What language should be used to program this?
Otherwise, if you're already interested in making a pocketpc into an x/y controller, and have the skills to do it, I can tell you that it'll be greatly appreciated.. Maybe I should post this topic outside of the Magician forum, as something like this could be useful for anybody with a pocketpc that has a touchscreen.
Anyway, I really hope that this can someday happen, it would be wonderful if it could. Perhaps focusing on MIDI data is a bad idea - if the touchscreen could be used to control anything on the PC then it might appeal to a wider range of users (and programmers). Imagine using your touchscreen via bluetooth to control Winamp from across the room, just moving your thumb up or down to raise or lower volume. I'm sure there are a huge variety of other uses that could come in handy as well. Assignable hardware buttons would be amazing...
There is already plenty of software that allows you to control your PC via your PPC (pocket VLC, winamp remote etc etc etc) but this doesnt neccesarily help matters.
If you have to have the controller on the screen of the host machine... you may as well be using a damn mouse.
I suggest a complete midi send system that will make the ppc work as if it is a real MIDI controller. This way you can use it as a system of control for elements that wont be controlled by devices you can have on-screen.
Im going to look into this later, im just about to do some important house related things
keep the ideas coming

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.

[Q] Wii Remote Accelerometer Data

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.

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!

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

Categories

Resources