Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Snafu

Pages: 1
1
Applications / Getting started
« on: March 16, 2008, 07:26:56 PM »
Hi!
I'm new to the real application programming as I have only done websites (php + mysql, css, html, js, as) before. I'd like to know how to get things started with the wiimote.
I somehow seem not to be able in finding a proper guide on how to get going with the wiimote.
I've figured out to set up 2 bluetooth connections for input and output to the wiimote both with l2cap  with one running on psm 0x11 and one on psm 0x13.
However, that is as far as I got until now.
Does the wiimote have any handshake that you have to go through at startup? If yes, what data does it expect / send?
As far as I've understood the wiibrew wiimote site you have to send commands as the first byte containing the report id and the following bytes containing the data.
So turning on the 1st LED should be in C like ...
Goddamn no wonder it didn't work. Forgot the bluetooth header all the time. I've you have any handy tutorials / links please still post them.
Code: [Select]
unsigned char buf[3];
buf[0] = 0x52; // data output
buf[1] = 0x11; // LED reportID
buf[2] = 0x10; // player 1 LED

send(out_socket, &buf, 3, 0); // out_socket = outgoing bluetooth connection socket
... correct?

Have mercy, I'm a newbie :)

Cheers
Snafu

2
Say Hi! / Hello from Austria!
« on: March 16, 2008, 04:04:58 PM »
Hi!
I've got a Nintendo Wii and I'd like to use the Wiimote for other stuff as well.
For example I'm about to make a ROV which will be controlled via Laptop.
The ROV can be controlled either by clicking buttons on the control app GUI or pressing keyboard buttons. I'd like to implement the Wiimote as an additional steering device.
I'm running Linux (Debian Lenny) and Windows XP Prof (and XP x64 Prof) and would like to learn how to communicate with the Wiimote.
I know how to scan for nearby devices and how to connect to a bluetooth device (with sockets) but thats all.
Can you please post me links on how to communicate with the Wiimote? I've read this article http://www.wiili.org/index.php/Wiimote but I still don't know on what port (psm for l2cap) to connect to and how to set the report type and how to request data.
I want to do the programming in c and c++.

Thanks!

Cheers
Snafu

Pages: 1