NSLU2-Linux
view · edit · print · history

HowTo.ConnectWiimote History

Hide minor edits - Show changes to markup

January 25, 2008, at 08:43 PM by fcarolo -- info about wiili.org
Changed line 10 from:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) -- There was a report that this page triggered a malware filter, but I was not able to verify it. fcarolo January 25, 2008, at 08:43 PM
to:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) -- There was a report that this page triggered a malware filter, but I was not able to verify it. fcarolo January 25, 2008, at 08:43 PM
January 25, 2008, at 08:43 PM by fcarolo -- in
Changed line 10 from:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) -- ''There was a report that this page triggered a malware filter, but I was not able to verify it. fcarolo January 25, 2008, at 08:43 PM
to:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) -- There was a report that this page triggered a malware filter, but I was not able to verify it. fcarolo January 25, 2008, at 08:43 PM
January 25, 2008, at 08:43 PM by fcarolo -- info about wiili.org
Changed line 10 from:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) [WARNING: URL Triggered Malware Filter]
to:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) -- ''There was a report that this page triggered a malware filter, but I was not able to verify it. fcarolo January 25, 2008, at 08:43 PM
January 25, 2008, at 06:40 AM by Fiesch --
Changed line 10 from:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote)
to:
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote) [WARNING: URL Triggered Malware Filter]
August 09, 2007, at 08:23 AM by Sébastien Colas --
Added lines 121-127:

To know

It seems that the libwiimote doesn't work perfectly. I think this lib is written for a little endian architecture (iX86) but NSLU2 is a Big endian Architecture.

To do

Find the way to convert the library from littlen endian to big endian (compilation parameter ???)

August 08, 2007, at 02:02 PM by fcarolo -- fixed false wikilinks
Changed line 9 from:
  • NLSU2? with openslug 3.10 beta
to:
  • NLSU2 with openslug 3.10 beta
Changed line 11 from:
to:
  • Bluetooth adapter Intuix BTDU100
August 03, 2007, at 05:04 PM by Sébastien Colas --
Changed lines 119-120 from:

Note

to:

From the bin directory launch test1 with the wiimote address.

Note

August 03, 2007, at 05:03 PM by Sébastien Colas --
Changed line 114 from:
  1. You can download the library from here: http://colas.sebastien.free.fr/download/libwiimote-0.4.tgz
to:
  1. You can download the library from here: http://colas.sebastien.free.fr/download/libwiimote-0.4.tar.gz
August 03, 2007, at 04:55 PM by Sébastien Colas --
Changed lines 115-119 from:
  1. Compile the library
to:
  1. Compile the library
    make

Run the test program

August 03, 2007, at 04:54 PM by Sébastien Colas --
Changed line 110 from:
  1. Compile the library :
to:
  1. Compile the library : \\
August 03, 2007, at 04:53 PM by Sébastien Colas --
Added lines 110-112:
  1. Compile the library :

make

Changed lines 114-115 from:
to:
  1. You can download the library from here: http://colas.sebastien.free.fr/download/libwiimote-0.4.tgz
  2. Compile the library
August 03, 2007, at 04:52 PM by Sébastien Colas --
Changed line 67 from:

@@\\

to:

@@

August 03, 2007, at 04:51 PM by Sébastien Colas --
Changed line 79 from:
  1. You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz\\
to:
  1. You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz
Changed line 88 from:
  1. You must patch all Makefile files correcting variable $(variable_name) ==> ${variable_name} \\
to:
  1. You must patch all Makefile files correcting variable $(variable_name) ==> ${variable_name}
August 03, 2007, at 04:50 PM by Sébastien Colas --
Changed lines 79-80 from:

You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz
You must rename all file ending with .in delete .in\\

to:
  1. You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz
    # You must rename all file ending with .in delete .in\\
Changed lines 88-89 from:

You must patch all Makefile files correcting variable $(variable_name) ==> ${variable_name}
Finaly you must rewrite /test/Makefile:\\

to:
  1. You must patch all Makefile files correcting variable $(variable_name) ==> ${variable_name}
    # Rewrite /test/Makefile:\\
Changed line 108 from:

delete the following line from src/Makefile:

to:
  1. Delete the following line from src/Makefile: \\
August 03, 2007, at 04:49 PM by Sébastien Colas --
Added lines 107-109:

delete the following line from src/Makefile: @ar rs $(LIBDIR)/$@ *.o

August 03, 2007, at 04:47 PM by Sébastien Colas --
Changed lines 94-95 from:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm
all: test1 test2 test3 test4
\\

to:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm
all: test1 test2 test3 test4 \\

August 03, 2007, at 04:47 PM by Sébastien Colas --
Changed line 95 from:

all: test1 test2 test3 test4 \\

to:

all: test1 test2 test3 test4 @@ \\

August 03, 2007, at 04:46 PM by Sébastien Colas --
Changed line 94 from:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm \\

to:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm @@\\

Changed line 96 from:

test1: test1.c @@ \\

to:

test1: test1.c \\

August 03, 2007, at 04:45 PM by Sébastien Colas --
Changed line 96 from:

test1: test1.c \\

to:

test1: test1.c @@ \\

August 03, 2007, at 04:45 PM by Sébastien Colas --
Changed lines 90-91 from:

@@topdir:=..
include ${topdir}/config.mk\\

to:

@@topdir:=..
include ${topdir}/config.mk \\

Changed line 93 from:

CFLAGS:=${CFLAGS} #-static\\

to:

CFLAGS:=${CFLAGS} #-static \\

Changed lines 95-105 from:

all: test1 test2 test3 test4\\ test1: test1.c\\

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}\\ 

test2: test2.c\\

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}\\ 

test3: test3.c\\

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}\\ 

test4: test4.c
${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}
clean:
rm -f *.o *~ ${BINDIR}/*\\

to:

all: test1 test2 test3 test4 \\ test1: test1.c
${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}
test2: test2.c
${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}
test3: test3.c
${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}
test4: test4.c
${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}
clean:
rm -f *.o *~ ${BINDIR}/* \\

August 03, 2007, at 04:44 PM by Sébastien Colas --
Changed line 94 from:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm\\

to:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm \\

August 03, 2007, at 04:43 PM by Sébastien Colas --
Changed lines 94-95 from:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm@@\\ \\

to:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm\\

Deleted line 95:

\\

Deleted line 97:

\\

Deleted line 99:

\\

Deleted line 101:

\\

Deleted line 103:

\\

Changed lines 105-106 from:
        rm -f *.o *~ ${BINDIR}/*@@\\
to:
        rm -f *.o *~ ${BINDIR}/*
@@
August 03, 2007, at 04:42 PM by Sébastien Colas --
Changed line 94 from:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm\\

to:

LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm@@\\

August 03, 2007, at 04:42 PM by Sébastien Colas --
Changed line 91 from:

include ${topdir}/config.mk@@\\

to:

include ${topdir}/config.mk\\

Changed lines 111-112 from:
        rm -f *.o *~ ${BINDIR}/*
@@\\
to:
        rm -f *.o *~ ${BINDIR}/*@@\\
August 03, 2007, at 04:41 PM by Sébastien Colas --
Changed lines 90-91 from:

topdir:=..
include ${topdir}/config.mk\\

to:

topdir:=..
include ${topdir}/config.mk
\\

August 03, 2007, at 04:41 PM by Sébastien Colas --
Changed line 90 from:

@@topdir:=..\\

to:

topdir:=..\\

August 03, 2007, at 04:40 PM by Sébastien Colas --
Changed lines 90-92 from:

@@\# test/Makefile\\ \\ topdir:=..\\

to:

@@topdir:=..\\

August 03, 2007, at 04:40 PM by Sébastien Colas --
Changed line 114 from:

@@

to:

@@\\

August 03, 2007, at 04:39 PM by Sébastien Colas --
Changed line 90 from:

@@ # test/Makefile\\

to:

@@\# test/Makefile\\

August 03, 2007, at 04:39 PM by Sébastien Colas --
Changed line 90 from:

@@# test/Makefile\\

to:

@@ # test/Makefile\\

August 03, 2007, at 04:39 PM by Sébastien Colas --
Changed lines 89-113 from:

Finaly you must rewrite /test/Makefile: \\

to:

Finaly you must rewrite /test/Makefile:
@@# test/Makefile\\ \\ topdir:=..\\ include ${topdir}/config.mk\\
CFLAGS:=${CFLAGS} #-static\\ LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm\\
all: test1 test2 test3 test4\\
test1: test1.c\\

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}\\ 


test2: test2.c\\

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}\\ 


test3: test3.c\\

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}\\ 


test4: test4.c
${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}

clean:
rm -f *.o *~ ${BINDIR}/*\\

Deleted lines 114-138:
  1. test/Makefile

topdir:=.. include ${topdir}/config.mk

CFLAGS:=${CFLAGS} #-static LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm

all: test1 test2 test3 test4

test1: test1.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

test2: test2.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

test3: test3.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

test4: test4.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

clean:

        rm -f *.o *~ ${BINDIR}/*    

@@

August 03, 2007, at 04:35 PM by Sébastien Colas --
Changed lines 88-115 from:

You must patch all Makefile correcting variable $(variable_name) ==> ${variable_name}

to:

You must patch all Makefile files correcting variable $(variable_name) ==> ${variable_name}
Finaly you must rewrite /test/Makefile:
@@

  1. test/Makefile

topdir:=.. include ${topdir}/config.mk

CFLAGS:=${CFLAGS} #-static LIBS:=${LIBS} -L${LIBDIR} -lcwiimote -lbluetooth -lm

all: test1 test2 test3 test4

test1: test1.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

test2: test2.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

test3: test3.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

test4: test4.c

        ${CC} ${CFLAGS} ${INCLUDES} -o ${BINDIR}/$@ $< ${LIBS}                                        

clean:

        rm -f *.o *~ ${BINDIR}/*    

@@

August 03, 2007, at 04:34 PM by Sébastien Colas --
Added line 81:

\\

Changed lines 87-88 from:

@@

to:


You must patch all Makefile correcting variable
$(variable_name) ==> ${variable_name} @@

August 03, 2007, at 04:32 PM by Sébastien Colas --
Changed lines 86-87 from:

@@

to:

@@

August 03, 2007, at 04:32 PM by Sébastien Colas --
Added line 87:
August 03, 2007, at 04:31 PM by Sébastien Colas --
Deleted line 67:
Changed line 81 from:

@@./configure.in ==> ./configure\\

to:

@@./configure.in ==> ./configure\\

Changed lines 83-85 from:

./src/Makefile.in ==> ./src/Makefile
./Makefile.in ==> ./Makefile
./config.mk.in ==> ./config.mk\\

to:

./src/Makefile.in ==> ./src/Makefile
./Makefile.in ==> ./Makefile
./config.mk.in ==> ./config.mk\\

August 03, 2007, at 04:30 PM by Sébastien Colas --
Changed lines 82-87 from:

@@ ./configure.in
./test/Makefile.in
./src/Makefile.in
./Makefile.in
./config.mk.in\\

to:

@@./configure.in ==> ./configure
./test/Makefile.in ==> ./test/Makefile
./src/Makefile.in ==> ./src/Makefile
./Makefile.in ==> ./Makefile
./config.mk.in ==> ./config.mk\\

August 03, 2007, at 04:29 PM by Sébastien Colas --
Changed lines 80-83 from:

You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz

From Sebastien's Site

to:

You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz
You must rename all file ending with .in delete .in
@@ ./configure.in
./test/Makefile.in
./src/Makefile.in
./Makefile.in
./config.mk.in
@@
!! From my Site

August 03, 2007, at 04:23 PM by Sébastien Colas --
Added line 79:

From sourceforge

Added lines 82-83:

From Sebastien's Site

August 03, 2007, at 04:21 PM by Sébastien Colas --
Changed lines 79-80 from:
to:

You can download the library from here: http://downloads.sourceforge.net/libwiimote/libwiimote-0.4.tgz

August 03, 2007, at 04:19 PM by Sébastien Colas --
Changed lines 75-77 from:

Please note the address of the bluetooth adapter return

to:

Please note the address of the bluetooth adapter return. This address is the address of the wiimote.

Install the libwiimote

August 03, 2007, at 04:18 PM by Sébastien Colas --
Changed lines 69-72 from:

You can scan for the presence of Bluetooth nodes in your vicinity:

to:

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:

Changed lines 75-77 from:

To prove that the low-level link is up, try pinging the other Bluetooth adapter (using the address hcitool inq returned):

to:

Please note the address of the bluetooth adapter return

August 03, 2007, at 04:15 PM by Sébastien Colas --
Changed lines 65-66 from:

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

to:

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

August 03, 2007, at 04:15 PM by Sébastien Colas --
Changed line 65 from:

@@ /etc/init.d/bluetooth stop

to:

@@/etc/init.d/bluetooth stop

Changed lines 67-70 from:

@@

to:

@@

August 03, 2007, at 04:14 PM by Sébastien Colas --
Changed line 65 from:

@@/etc/init.d/bluetooth stop

to:

@@ /etc/init.d/bluetooth stop

August 03, 2007, at 04:14 PM by Sébastien Colas --
Changed lines 63-65 from:

You'll need to go to /etc/init.d and issue the commands ./bluetooth stop; ./bluetooth start in order for these settings to take effect. Without this I was unable to connect to my BT GPS receiver.

to:

You'll need to restart bluetooth adapter:

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

August 03, 2007, at 04:12 PM by Sébastien Colas --
Added line 59:

\\

August 03, 2007, at 04:12 PM by Sébastien Colas --
Changed lines 58-60 from:

For that change the auth and encrypt lines in /etc/bluetooth/hcid.conf to: @@auth disable; encrypt disable;

to:

For that change the auth and encrypt lines in /etc/bluetooth/hcid.conf to:
@@auth disable;
encrypt disable;\\

August 03, 2007, at 04:11 PM by Sébastien Colas --
Changed line 59 from:

auth disable;

to:

@@auth disable;

Added line 61:

@@\\

August 03, 2007, at 04:11 PM by Sébastien Colas --
August 03, 2007, at 04:10 PM by Sébastien Colas --
Added lines 56-63:

Desactivate authentication and cryptage

For that change the auth and encrypt lines in /etc/bluetooth/hcid.conf to: auth disable; encrypt disable; You'll need to go to /etc/init.d and issue the commands ./bluetooth stop; ./bluetooth start in order for these settings to take effect. Without this I was unable to connect to my BT GPS receiver.

August 03, 2007, at 04:08 PM by Sébastien Colas --
August 03, 2007, at 04:07 PM by Sébastien Colas --
Added lines 19-62:

Basic Installation

  1. Install OpenSlug 3.10 or later.
  2. Run the following to install the basic packages:

    ipkg install \
    kernel-module-bluetooth \
    kernel-module-l2cap \
    kernel-module-rfcomm \
    kernel-module-bnep \
    kernel-module-hci-usb \
    bluez-utils-nodbus

    Then register all modules by:

    depmod -a

Test your work

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: 00:03:0D:00:07:8A 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

The `BDAddr` (short for `BD Address`) is the unique hardware address of the Bluetooth adapter.

You can scan for the presence of Bluetooth nodes in your vicinity:

hcitool inq

To prove that the low-level link is up, try pinging the other Bluetooth adapter (using the address hcitool inq returned):

August 03, 2007, at 04:06 PM by Sébastien Colas --
Changed line 8 from:

My Hardware is

to:

My Hardware is

Changed lines 14-15 from:
to:
  • USB storage disk

The usb hub is connecto to "disk2". On the hub there is my usb key and my usb storage disk. On "disk1" there is my bleutooth adapter

Note

On my configuration I must connect bluetooth adapter directly to the slug. USB Hub 2.0 doesn't work. You can try with a USB Hub 1.1...

August 03, 2007, at 04:03 PM by Sébastien Colas --
Changed line 8 from:

My Hardware is

to:

My Hardware is

Changed lines 11-12 from:
to:
  • Bluetooth adapter Intuix BTDU100?
  • USB Hub 2.0 Connectland
  • USB key 1Go with openslug
August 03, 2007, at 03:58 PM by Sébastien Colas --
Added lines 6-12:
  • http://www.wiili.org

My Hardware is

  • NLSU2? with openslug 3.10 beta
  • Nintendo Wiimote (http://www.wiili.org/index.php/Wiimote)
August 03, 2007, at 03:55 PM by Sébastien Colas --
Changed lines 4-5 from:
to:
August 03, 2007, at 03:52 PM by Sébastien Colas -- How to connect a Wiimote on your NLSU2 (openslug)
Added lines 1-4:

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

This Document is based on

view · edit · print · history · Last edited by fcarolo.
Based on work by fcarolo, Fiesch, and Sébastien Colas.
Originally by Sébastien Colas.
Page last modified on January 25, 2008, at 08:43 PM