Project

General

Profile

Actions

Emulator Issues #13443

closed

wiimote wont reconnect in windows 11 22h3 after first connection and disconnection

Added by Guitarkory1 4 months ago. Updated about 2 months ago.

Status:
Working as intended
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

Game Name?

all games, occurs using continuous scanning

What's the problem? Describe what went wrong.

my wiimote (official) and wiimote plus (also official) only connect to dolphin once per PC start. I have to restart my PC if I want to reconnect the same remote.

What steps will reproduce the problem?

  1. open dolphin
  2. press sync button or 1+2
  3. remote is paired
  4. disconnect remote
  5. attempt to reconnect remote
  6. remote wont reconnect.

In windows the device manager displays the following error messages in event viewer:
This device cannot start. (Code 10) {Conflicting Address Range} The specified address range conflicts with the address space.

Currently, this hardware device is not connected to the computer. (Code 45)

the dolphin console produces the following logs:

18:10:056 Core\HW\WiimoteReal\IOWin.cpp:1011 N[Wiimote]: Removing remembered Wiimote.
18:19:321 Core\HW\WiimoteReal\IOWin.cpp:947 N[Wiimote]: Found Wiimote (37:f0:35:f7:6b:d8). Enabling HID service.
18:28:527 Core\HW\WiimoteReal\IOWin.cpp:1011 N[Wiimote]: Removing remembered Wiimote.
18:31:681 Core\HW\WiimoteReal\IOWin.cpp:947 N[Wiimote]: Found Wiimote (37:f0:35:f7:6b:d8). Enabling HID service.
18:40:909 Core\HW\WiimoteReal\IOWin.cpp:1011 N[Wiimote]: Removing remembered Wiimote.
19:51:606 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:51:606 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:51:606 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:606 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:51:607 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:607 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:607 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:51:608 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:51:608 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:608 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:54:675 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:54:675 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:54:676 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:54:676 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:54:676 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:54:676 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:54:676 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:54:677 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:54:677 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:54:677 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:57:742 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:57:742 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:57:743 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:57:743 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:57:743 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:57:743 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:57:743 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:57:743 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:57:744 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:57:744 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
20:00:812 Core\HW\WiimoteReal\IOWin.cpp:947 N[Wiimote]: Found Wiimote (37:f0:35:f7:6b:d8). Enabling HID service.
20:03:817 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
20:03:817 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
20:03:817 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
20:03:817 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
20:03:817 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
20:03:817 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
20:03:818 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
20:03:818 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
20:03:818 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
20:03:818 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.

all builds from stable to the latest development build (20840), I also tried last months beta, and last years beta.

let me know if I can provide any additional information. I have a Intel Bluetooth wireless driver with the latest (2022) drivers installed. Running on windows 10 22h2 and windows 11 22h2 had no issues. I am using a portable. version of dolphin with each test.

Actions #1

Updated by Dentomologist 4 months ago

FYI for anyone debugging this, the incorrect function and parameter logs are probably unrelated to the problem. When scanning for Wii Remotes on Windows Dolphin sends status requests to any devices it finds, which is apparently necessary to connect to the DolphinBar but produces that spam from unrelated Bluetooth devices.

I've created https://github.com/dolphin-emu/dolphin/pull/12146 to address that.

Actions #2

Updated by Guitarkory1 3 months ago

I don't know if this helps. but I noticed Windows throws a driver issue in Bluetooth devices when this occurs (under the wii controller).

2 devices show up on Windows - a Bluetooth device called RVL-CNT-001, and a generic HID device (this is the device that throws error 10 (conflicting address range) and error 45 when the Wiimote shuts off (right before it and the Bluetooth device is removed from device manager/Bluetooth devices).

Dolphin shows this in its logs
18:31:681 Core\HW\WiimoteReal\IOWin.cpp:947 N[Wiimote]: Found Wiimote (37:f0:35:f7:6b:d8). Enabling HID service.
18:40:909 Core\HW\WiimoteReal\IOWin.cpp:1011 N[Wiimote]: Removing remembered Wiimote.
19:51:606 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:606 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
19:51:607 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:607 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: The parameter is incorrect.
19:51:607 Core\HW\WiimoteReal\IOWin.cpp:302 W[Wiimote]: IOWrite[WWM_WRITE_FILE]: Error on WriteFile: Incorrect function.
etc.

event viewer shows that the same device has been successfully removed, and no errors are provided.

The devices (I have 2, both official Wiimotes - one is a regular Wiimote and the other has MotionPlus support) do connect correctly the first time I attempt to connect them. Once disconnected, they will not reconnect until I restart my PC. Sleep mode is not enough. I have tried uninstalling the drivers for both Bluetooth devices, rolling back my Bluetooth drivers, and a clean install of Dolphin. I am using the latest dev version but have tried versions as early as the latest master. I've also tried connecting the Wiimote via Windows instead of Dolphin, but it asks for a PIN.

Actions #3

Updated by Guitarkory1 2 months ago

weird thing. wiimotes are suddenly working again as of 5.0-21174. unsure if a windows/driver update fixed it or if it was a recent dolphin update. this can be closed

Actions #4

Updated by Billiard26 about 2 months ago

  • Status changed from New to Working as intended

Closing per request.

Actions

Also available in: Atom PDF