NSLU2-Linux
view · edit · print · history

HowTo.ConnectWiimoteDebian History

Hide minor edits - Show changes to markup

October 23, 2008, at 06:12 PM by automake --
Changed line 17 from:

The UDB key is connected to "disk2".

to:

The USB key is connected to "disk2".

October 23, 2008, at 05:43 PM by automake -- \\\\\\\\
Changed line 85 from:
  1. configure
to:
  1. ./configure
October 22, 2007, at 04:39 PM by spyingwind --
Changed lines 29-30 from:
to:


October 22, 2007, at 04:39 PM by spyingwind --
Changed lines 23-24 from:
  • Install Debian and update via
to:
  • Install Debian and update via:
Changed line 29 from:

\\

to:
October 22, 2007, at 04:36 PM by spyingwind --
Changed lines 100-103 from:

I think you can't use a bluetooth adapter from a USB hub...
I should test this
!To do I should actualy connect a wiimote...\\

to:

I think you can't use a bluetooth adapter from a USB hub. I should test this.

To do

I should actualy connect a wiimote.

Changed lines 105-106 from:

all but connecting a wiimote have been done.

to:

all but connecting a wiimote have been done.

October 22, 2007, at 04:35 PM by spyingwind --
Changed line 12 from:
  • NLSU2 with DebainSLUG? (Linux version 2.6.18-5-ixp4xx (Debian 2.6.18.dfsg.1-13etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)))
to:
  • NLSU2 with Debain (Linux version 2.6.18-5-ixp4xx (Debian 2.6.18.dfsg.1-13etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)))
Changed lines 15-16 from:
to:
  • USB key 2GB with Debian
Changed lines 23-24 from:
to:
  • Install Debian and update via
October 22, 2007, at 04:34 PM by spyingwind --
Changed lines 23-24 from:
  1. Install DebianSLUG? and update via
to:
Changed lines 30-32 from:

Then reboot

  1. Run the following to install the needed packages:\\
to:
  • Then reboot
  • Run the following to install the needed packages:\\
October 22, 2007, at 04:33 PM by spyingwind --
Changed lines 26-29 from:

@@sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade @@\\

to:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
\\

October 22, 2007, at 04:32 PM by spyingwind --
Changed line 77 from:

From sourceforge

to:

Download from sourceforge\\

Changed line 81 from:

tar -xzvf libwiimote-0.4.tgz\\

to:

tar -xzvf libwiimote-0.4.tgz

Changed lines 96-99 from:

From the bin directory launch test1 with the wiimote address. @@./bin/test1

To know

to:

From the bin directory launch test1 with the wiimote address.
./bin/test1

To know

October 22, 2007, at 04:31 PM by spyingwind --
Changed line 99 from:

To know

to:

To know

Changed line 102 from:

To do

to:

To do

October 22, 2007, at 04:26 PM by spyingwind --
Changed lines 26-27 from:

@@ sudo apt-get update

to:

@@sudo apt-get update

Changed lines 34-37 from:

@@ sudo apt-get install autoconf automake gcc pkg-config libbluetooth2 libbluetooth2-dev bluez-utils @@

to:

sudo apt-get install autoconf automake gcc pkg-config libbluetooth2 libbluetooth2-dev bluez-utils

October 22, 2007, at 04:24 PM by spyingwind --
Changed line 1 from:

Copied from http://www.nslu2-linux.org/wiki/HowTo/ConnectWiimoteDebian

to:

Copied from http://www.nslu2-linux.org/wiki/HowTo/ConnectWiimoteDebian\\

October 22, 2007, at 04:24 PM by spyingwind --
Added lines 1-111:

Copied from http://www.nslu2-linux.org/wiki/HowTo/ConnectWiimoteDebian Edited for the Debian Slug

In this page I will describe how to connect a Nintendo wiimote on your slug.

This Document is based on

My Hardware is

  • NLSU2 with DebainSLUG? (Linux version 2.6.18-5-ixp4xx (Debian 2.6.18.dfsg.1-13etch4) (dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)))
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote)
  • Bluetooth adapter
  • USB key 2GB with DebianSLUG?

The UDB key is connected to "disk2". On "disk1" there is my bleutooth adapter

Basic Installation

  1. Install DebianSLUG? and update via


@@ sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade @@
Then reboot

  1. Run the following to install the needed packages:

    @@

sudo apt-get install autoconf automake gcc pkg-config libbluetooth2 libbluetooth2-dev bluez-utils @@

Setup Bluetooth Adapter


Plugin your bluetooth adapter.

You should now be able to do:

hciconfig hci0 up

to make the Bluetooth interface available to the Bluetooth protocol stack.

Run hciconfig by itself again should give something like this:

hci0: Type: USB
BD Address: xx:xx:xx:xx:xx:xx ACL MTU: 192:8 SCO MTU: 64:8
UP RUNNING PSCAN ISCAN
RX bytes:8567 acl:125 sco:0 events:409 errors:0
TX bytes:4518 acl:128 sco:0 commands:130 errors:0

Config Bluetooth


sudo vim /etc/bluetooth/hcid.conf
change the security auto; to security none;
You'll need to restart bluetooth adapter:

/etc/init.d/bluetooth stop
/etc/init.d/bluetooth start


! Find the wiimote

You can scan for the presence of the Wiimote. You must first Press A and B buttons on the wiimote. The leds of the wiimote will fash after you can type:

hcitool inq

Please note the address of the wiimote is returned. This number is the address of the wiimote.

Install the libwiimote

From sourceforge

  1. You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz
    wget http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz
    # extract to a folder
    tar -xzvf libwiimote-0.4.tgz
    # cd libwiimote-0.4
  2. autoconf
  3. configure
  4. make
  5. sudo make install

Pair the wiimote

Now we pair the wiimote.
hcitool cc xx:xx:xx:xx:xx:xx
Where the xx:xx:xx:xx:xx:xx use the address of the wiimote.

Run the test program

From the bin directory launch test1 with the wiimote address. @@./bin/test1

To know

I think you can't use a bluetooth adapter from a USB hub...
I should test this
! To do I should actualy connect a wiimote...
! Note all but connecting a wiimote have been done.

Done

All Done

view · edit · print · history · Last edited by automake.
Based on work by automake and spyingwind.
Originally by spyingwind.
Page last modified on October 23, 2008, at 06:12 PM