Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can`t pair wiimote #73

Open
mpyatishev opened this issue Dec 13, 2016 · 1 comment
Open

Can`t pair wiimote #73

mpyatishev opened this issue Dec 13, 2016 · 1 comment

Comments

@mpyatishev
Copy link

Hello!
I can`t pair my wiimote. Wiimote device is not original Nintendo device - it is DBPower.
Bluez version is 5.43.
Here is the command outputs:

~>hcitool inq --iac=liac
Inquiring ...
        00:17:AB:39:49:CF       clock offset: 0x5880    class: 0x002504
~>sudo hcitool info 00:17:AB:39:49:CF
Requesting information ...
        BD Address:  00:17:AB:39:49:CF
        OUI Company: Nintendo Co., Ltd. (00-17-AB)
        Device Name: Nintendo RVL-CNT-01
        LMP Version: 3.0 (0x5) LMP Subversion: 0xc
        Manufacturer: IACA electronique (771)
        Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
                <encryption> <slot offset> <timing accuracy> <role switch>
                <sniff mode> <RSSI> <power control> <enhanced iscan>
                <interlaced iscan> <interlaced pscan> <AFH cap. slave>

What would you recommend to do?

@testos77
Copy link

Same problem here with another device

hcitool inq --iac=liac
Inquiring ...
	1A:04:64:00:XX:XX	clock offset: 0x0136	class: 0x002504
hcitool info 1A:04:64:00:XX:XX
Requesting information ...
	BD Address:  1A:04:64:00:XX:XX
	Device Name: Nintendo RVL-CNT-01
	LMP Version: 3.0 (0x5) LMP Subversion: 0xc
	Manufacturer: IACA electronique (771)
	Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
		<encryption> <slot offset> <timing accuracy> <role switch> 
		<sniff mode> <RSSI> <power control> <enhanced iscan> 
		<interlaced iscan> <interlaced pscan> <AFH cap. slave>

I opened two consoles one for hcitool commands in the second terminal I opened bluetoothctl. The moment you use hcitool info you can pair the device. Took me some attempts for the correct timing.

Device 1A:04:64:00:XX:XX not available
[NEW] Device 1A:04:64:00:XX:XX Nintendo RVL-CNT-01
[bluetooth]# pair 1A:04:64:00:XX:XX
Attempting to pair with 1A:04:64:00:XX:XX
[CHG] Device 1A:04:64:00:XX:XX Connected: no
[CHG] Device 1A:04:64:00:XX:XX Paired: yes
[bluetooth]# trust 1A:04:64:00:XX:XX
[CHG] Device 1A:04:64:00:XX:XX Trusted: yes
Changing 1A:04:64:00:XX:XX trust succeeded
[CHG] Device 1A:04:64:00:XX:XX Class: 0x002504
[CHG] Device 1A:04:64:00:XX:XX Icon: input-gaming
[CHG] Device 1A:04:64:00:XX:XX Connected: yes
[CHG] Device 1A:04:64:00:31:A6 Connected: no
[Nintendo RVL-CNT-01]# 

in /var/lib/bluetooth/XXXXXX/1A:04:64:00:XX:XX/info file is created

[General]
Name=Nintendo RVL-CNT-01
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
Class=0x002504

[LinkKey]
Key=79729418FEDXXXXXXXXXXXXXXXX
Type=0
PINLength=0

Now the device automatically connects to the bluetooth controller for 5 sec when pressing any button and then disconnects.
modprobe hid-wiimote

Now I'm stuck at actually using the device.

 wminput 1A:04:64:00:XX:XX                                                                                                    
Put Wiimote in discoverable mode now (press 1+2)...
Invalid packet type
Unknown message type

hcidump:

> HCI Event: Command Status (0x0f) plen 4
    Create Connection (0x01|0x0005) status 0x00 ncmd 1
> HCI Event: Connect Complete (0x03) plen 11
    status 0x00 handle 1 bdaddr 1A:04:64:00:31:A6 type ACL encrypt 0x00
> HCI Event: Command Status (0x0f) plen 4
    Read Remote Supported Features (0x01|0x001b) status 0x00 ncmd 1
> HCI Event: Read Remote Supported Features (0x0b) plen 11
    status 0x00 handle 1
    Features: 0xbc 0x02 0x04 0x38 0x08 0x00 0x00 0x00
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x00 ncmd 1
> HCI Event: Remote Name Req Complete (0x07) plen 255
    status 0x00 bdaddr 1A:04:64:00:31:A6 name 'Nintendo RVL-CNT-01'

Maybe you've got more luck...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants