psmoveservice / PSMoveService

A background service that communicates with the psmove and stores pose and button data.
Apache License 2.0
593 stars 147 forks source link

Yesterday PsMoveService could pair my controllers succesfully, now it´s stuck at step 4 #757

Closed NunexGT closed 3 years ago

NunexGT commented 3 years ago

Yesterday I went trying to pair the PsMove controllers on my PC. I already had two PSMove Mini USB PS3 version and two PSEye´s so I bought a Bluetooth 4.0 Tp-Link UB4A adapter and I could pair both the controllers succesfully. I have followed every step in this YouTube tutorial https://youtu.be/XiLYa1EZL04.

After some time, when I was doing the PSEye color calibration I went away for 1 hour. I left my PC turned on with one controller only connected via Bluetooth and the other connected via Bluetooth and the cable plugged in. When I came back I realised that the one that was only connected via Bluetooth disconnected, so I plugged the cable and tried to connect and it wasn´t working it was just stuck at step 4, so I grabbed it and put it to charge on my PS4.

Because only one was connected, I closed the prgram, plugged the other PSMove controller to charge on my PS4 and then restarted the computer so I could try later.

Once they were charged I came back to my PC and tried to normally connect them, but nothing. It was just at step 4, then it would sometimes jump to step 6 and the step 4 again. So I tried to troubleshoot this by doing the following:

1-Reset the controller with a clip 2-The the Bluetooth adapter on another USB Port 3-Tried to install the Win7 drivers for the Bluetooth dongle (It actually got worse, it couldn´t detect the dongle in anyways, it would only say something like "Couldn´t Pair" 4-Tried to execute a System Restore Point (Wasn´t successful because it´s giving me an error (0x80070026)) 5-Tried to remove the "Motion Controllers" from "Devices and Printers" in the controll panel and then tried to pair again

Here is the log file text:

2021-01-17 10:56:28.450]: main - Starting PSMoveService v0.9-alpha 9.0.1 (protocol v0.9-alpha 9.0.0) [2021-01-17 10:56:28.462]: USBAsyncRequestManager::startup - Requested LibUSBApi [2021-01-17 10:56:28.463]: USBAsyncRequestManager::startup - Creating LibUSBApi [2021-01-17 10:56:28.467]: USBAsyncRequestManager::startup - Initialized USB API [2021-01-17 10:56:28.473]: DeviceManager::startup - Platform Hotplug API is ENABLED [2021-01-17 10:56:28.664]: bluetooth_get_host_address - Found a bluetooth radio [2021-01-17 10:56:28.666]: bluetooth_get_host_address - Retrieved radio info [2021-01-17 10:56:28.769]: PS3EyeTracker::open - Opening PS3EyeTracker(USB\VID_1415&PID_2000\b1_p3, camera_index=0) [2021-01-17 10:56:28.973]: SharedMemory::initialize() - Allocating shared memory: tracker_view_0 [2021-01-17 10:56:29.222]: DeviceTypeManager::update_connected_devices - Device device_id 0 (PSEYE) opened [2021-01-17 10:56:29.223]: PS3EyeTracker::open - Opening PS3EyeTracker(USB\VID_1415&PID_2000\b1_p4, camera_index=1) [2021-01-17 10:56:29.439]: SharedMemory::initialize() - Allocating shared memory: tracker_view_1 [2021-01-17 10:56:29.448]: DeviceTypeManager::update_connected_devices - Device device_id 1 (PSEYE) opened [2021-01-17 10:56:39.354]: PSMoveController::open - Opening PSMoveController(\\?\hid#vid_054c&pid_03d5&col01#7&e25449f&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}) [2021-01-17 10:56:39.357]: PSMoveController::open - with EMPTY serial_number [2021-01-17 10:56:39.525]: testMagnetometer - Failed to open read initial controller state after 10 attempts. [2021-01-17 10:56:39.527]: WorkerThread::start - Starting worker thread: PSMoveSensorProcessor [2021-01-17 10:56:39.530]: DeviceTypeManager::update_connected_devices - Device device_id 0 (PSMove) opened [2021-01-17 10:56:55.939]: ClientConnection::start - Starting client connection id 0 [2021-01-17 10:56:55.941]: ClientConnection::send_connection_info - Sending connection id to client 0 [2021-01-17 10:56:57.723]: AsyncBluetoothPairDeviceRequest - Found a bluetooth radio [2021-01-17 10:56:57.724]: AsyncBluetoothPairDeviceRequest - Retrieved radio info [2021-01-17 10:56:57.727]: AsyncBluetoothPairDeviceRequest - Assigned host address 00:1a:7d:da:71:15 to controller id 0 [2021-01-17 10:56:57.729]: ServerRequestHandler - Async bluetooth request([Pair] ID: 0 Conn: 0) started. [2021-01-17 10:56:57.730]: AsyncBluetoothPairDeviceRequest - Making radio discoverable [2021-01-17 10:56:59.44]: AsyncBluetoothPairDeviceRequest - No Bluetooth device found matching the given address: 00:13:8a:98:71:2b [2021-01-17 10:57:00.467]: AsyncBluetoothPairDeviceRequest - Bluetooth device found matching the given address: 00:13:8a:98:71:2b [2021-01-17 10:57:00.469]: AsyncBluetoothPairDeviceRequest - Bluetooth device matching the given address is the expected controller type [2021-01-17 10:57:00.472]: AsyncBluetoothPairDeviceRequest - Connection attempt: 0/80 [2021-01-17 10:57:00.473]: AsyncBluetoothPairDeviceRequest - Patching the registry ... [2021-01-17 10:57:00.475]: AsyncBluetoothPairDeviceRequest - Failed to open registry key, it does not yet exist [2021-01-17 10:57:00.476]: AsyncBluetoothPairDeviceRequest - Checking HID service [2021-01-17 10:57:00.478]: AsyncBluetoothPairDeviceRequest - HID service not enabled, attempting to enable [2021-01-17 10:57:03.492]: AsyncBluetoothPairDeviceRequest - Patching the registry ... [2021-01-17 10:57:03.494]: AsyncBluetoothPairDeviceRequest - Failed to open registry key, it does not yet exist [2021-01-17 10:57:03.496]: AsyncBluetoothPairDeviceRequest - Verification attempt 0 / 5 [2021-01-17 10:57:03.498]: AsyncBluetoothPairDeviceRequest - Device Remembered [2021-01-17 10:57:03.499]: AsyncBluetoothPairDeviceRequest - HID service enabled [2021-01-17 10:57:03.500]: AsyncBluetoothPairDeviceRequest - HID service not enabled [2021-01-17 10:57:03.501]: AsyncBluetoothPairDeviceRequest - Verified failed. Re-establish connection [2021-01-17 10:57:03.503]: AsyncBluetoothPairDeviceRequest - Connection attempt: 0/80 [2021-01-17 10:57:03.505]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:03.811]: AsyncBluetoothPairDeviceRequest - Connection attempt: 1/80 [2021-01-17 10:57:03.812]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:04.124]: AsyncBluetoothPairDeviceRequest - Connection attempt: 2/80 [2021-01-17 10:57:04.125]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:04.427]: AsyncBluetoothPairDeviceRequest - Connection attempt: 3/80 [2021-01-17 10:57:04.429]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:04.744]: AsyncBluetoothPairDeviceRequest - Connection attempt: 4/80 [2021-01-17 10:57:04.746]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:05.62]: AsyncBluetoothPairDeviceRequest - Connection attempt: 5/80 [2021-01-17 10:57:05.63]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:05.365]: AsyncBluetoothPairDeviceRequest - Connection attempt: 6/80 [2021-01-17 10:57:05.367]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:05.681]: AsyncBluetoothPairDeviceRequest - Connection attempt: 7/80 [2021-01-17 10:57:05.683]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:05.997]: AsyncBluetoothPairDeviceRequest - Connection attempt: 8/80 [2021-01-17 10:57:05.999]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:06.300]: AsyncBluetoothPairDeviceRequest - Connection attempt: 9/80 [2021-01-17 10:57:06.302]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:06.618]: AsyncBluetoothPairDeviceRequest - Connection attempt: 10/80 [2021-01-17 10:57:06.620]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:06.933]: AsyncBluetoothPairDeviceRequest - Connection attempt: 11/80 [2021-01-17 10:57:06.935]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:07.248]: AsyncBluetoothPairDeviceRequest - Connection attempt: 12/80 [2021-01-17 10:57:07.250]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:07.553]: AsyncBluetoothPairDeviceRequest - Connection attempt: 13/80 [2021-01-17 10:57:07.554]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:07.867]: AsyncBluetoothPairDeviceRequest - Connection attempt: 14/80 [2021-01-17 10:57:07.869]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:08.183]: AsyncBluetoothPairDeviceRequest - Connection attempt: 15/80 [2021-01-17 10:57:08.185]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:08.501]: AsyncBluetoothPairDeviceRequest - Connection attempt: 16/80 [2021-01-17 10:57:08.503]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:08.819]: AsyncBluetoothPairDeviceRequest - Connection attempt: 17/80 [2021-01-17 10:57:08.820]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:09.136]: AsyncBluetoothPairDeviceRequest - Connection attempt: 18/80 [2021-01-17 10:57:09.138]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:09.449]: AsyncBluetoothPairDeviceRequest - Connection attempt: 19/80 [2021-01-17 10:57:09.451]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:09.753]: AsyncBluetoothPairDeviceRequest - Connection attempt: 20/80 [2021-01-17 10:57:09.754]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:10.71]: AsyncBluetoothPairDeviceRequest - Connection attempt: 21/80 [2021-01-17 10:57:10.72]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:10.375]: AsyncBluetoothPairDeviceRequest - Connection attempt: 22/80 [2021-01-17 10:57:10.377]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:10.692]: AsyncBluetoothPairDeviceRequest - Connection attempt: 23/80 [2021-01-17 10:57:10.693]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:10.995]: AsyncBluetoothPairDeviceRequest - Connection attempt: 24/80 [2021-01-17 10:57:10.996]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:11.313]: AsyncBluetoothPairDeviceRequest - Connection attempt: 25/80 [2021-01-17 10:57:11.315]: AsyncBluetoothPairDeviceRequest - Patching the registry ... [2021-01-17 10:57:11.316]: AsyncBluetoothPairDeviceRequest - Failed to open registry key, it does not yet exist [2021-01-17 10:57:11.318]: AsyncBluetoothPairDeviceRequest - Checking HID service [2021-01-17 10:57:11.320]: AsyncBluetoothPairDeviceRequest - Verification attempt 0 / 5 [2021-01-17 10:57:11.321]: AsyncBluetoothPairDeviceRequest - Device Connected [2021-01-17 10:57:11.322]: AsyncBluetoothPairDeviceRequest - Device Remembered [2021-01-17 10:57:11.324]: AsyncBluetoothPairDeviceRequest - HID service enabled [2021-01-17 10:57:11.325]: AsyncBluetoothPairDeviceRequest - Connected, Remembered, and HID service enabled [2021-01-17 10:57:11.633]: AsyncBluetoothPairDeviceRequest - Verification attempt 1 / 5 [2021-01-17 10:57:11.635]: AsyncBluetoothPairDeviceRequest - Device Remembered [2021-01-17 10:57:11.636]: AsyncBluetoothPairDeviceRequest - HID service enabled [2021-01-17 10:57:11.637]: AsyncBluetoothPairDeviceRequest - HID service not enabled [2021-01-17 10:57:11.639]: AsyncBluetoothPairDeviceRequest - Verified failed. Re-establish connection [2021-01-17 10:57:11.641]: AsyncBluetoothPairDeviceRequest - Connection attempt: 0/80 [2021-01-17 10:57:11.643]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:11.948]: AsyncBluetoothPairDeviceRequest - Connection attempt: 1/80 [2021-01-17 10:57:11.950]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:12.265]: AsyncBluetoothPairDeviceRequest - Connection attempt: 2/80 [2021-01-17 10:57:12.266]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:12.579]: AsyncBluetoothPairDeviceRequest - Connection attempt: 3/80 [2021-01-17 10:57:12.580]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:12.882]: AsyncBluetoothPairDeviceRequest - Connection attempt: 4/80 [2021-01-17 10:57:12.884]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:13.196]: AsyncBluetoothPairDeviceRequest - Connection attempt: 5/80 [2021-01-17 10:57:13.198]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:13.514]: AsyncBluetoothPairDeviceRequest - Connection attempt: 6/80 [2021-01-17 10:57:13.515]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:13.829]: AsyncBluetoothPairDeviceRequest - Connection attempt: 7/80 [2021-01-17 10:57:13.831]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:14.144]: AsyncBluetoothPairDeviceRequest - Connection attempt: 8/80 [2021-01-17 10:57:14.145]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:14.447]: AsyncBluetoothPairDeviceRequest - Connection attempt: 9/80 [2021-01-17 10:57:14.449]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:14.764]: AsyncBluetoothPairDeviceRequest - Connection attempt: 10/80 [2021-01-17 10:57:14.766]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:15.78]: AsyncBluetoothPairDeviceRequest - Connection attempt: 11/80 [2021-01-17 10:57:15.79]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:15.381]: AsyncBluetoothPairDeviceRequest - Connection attempt: 12/80 [2021-01-17 10:57:15.383]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:15.698]: AsyncBluetoothPairDeviceRequest - Connection attempt: 13/80 [2021-01-17 10:57:15.700]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:16.1]: AsyncBluetoothPairDeviceRequest - Connection attempt: 14/80 [2021-01-17 10:57:16.3]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:16.315]: AsyncBluetoothPairDeviceRequest - Connection attempt: 15/80 [2021-01-17 10:57:16.317]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:16.633]: AsyncBluetoothPairDeviceRequest - Connection attempt: 16/80 [2021-01-17 10:57:16.635]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:16.950]: AsyncBluetoothPairDeviceRequest - Connection attempt: 17/80 [2021-01-17 10:57:16.952]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:17.267]: AsyncBluetoothPairDeviceRequest - Connection attempt: 18/80 [2021-01-17 10:57:17.268]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:17.584]: AsyncBluetoothPairDeviceRequest - Connection attempt: 19/80 [2021-01-17 10:57:17.586]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:17.901]: AsyncBluetoothPairDeviceRequest - Connection attempt: 20/80 [2021-01-17 10:57:17.903]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:18.219]: AsyncBluetoothPairDeviceRequest - Connection attempt: 21/80 [2021-01-17 10:57:18.220]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:18.537]: AsyncBluetoothPairDeviceRequest - Connection attempt: 22/80 [2021-01-17 10:57:18.539]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:18.853]: AsyncBluetoothPairDeviceRequest - Connection attempt: 23/80 [2021-01-17 10:57:18.855]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:19.168]: AsyncBluetoothPairDeviceRequest - Connection attempt: 24/80 [2021-01-17 10:57:19.169]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:19.471]: AsyncBluetoothPairDeviceRequest - Connection attempt: 25/80 [2021-01-17 10:57:19.473]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:19.774]: AsyncBluetoothPairDeviceRequest - Connection attempt: 26/80 [2021-01-17 10:57:19.776]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:20.90]: AsyncBluetoothPairDeviceRequest - Connection attempt: 27/80 [2021-01-17 10:57:20.92]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:20.406]: AsyncBluetoothPairDeviceRequest - Connection attempt: 28/80 [2021-01-17 10:57:20.408]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:20.720]: AsyncBluetoothPairDeviceRequest - Connection attempt: 29/80 [2021-01-17 10:57:20.722]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:21.37]: AsyncBluetoothPairDeviceRequest - Connection attempt: 30/80 [2021-01-17 10:57:21.39]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:21.354]: AsyncBluetoothPairDeviceRequest - Connection attempt: 31/80 [2021-01-17 10:57:21.357]: AsyncBluetoothPairDeviceRequest - Patching the registry ... [2021-01-17 10:57:21.359]: AsyncBluetoothPairDeviceRequest - Failed to open registry key, it does not yet exist [2021-01-17 10:57:21.362]: AsyncBluetoothPairDeviceRequest - Checking HID service [2021-01-17 10:57:21.364]: AsyncBluetoothPairDeviceRequest - HID service not enabled, attempting to enable [2021-01-17 10:57:24.375]: AsyncBluetoothPairDeviceRequest - Patching the registry ... [2021-01-17 10:57:24.377]: AsyncBluetoothPairDeviceRequest - Failed to open registry key, it does not yet exist [2021-01-17 10:57:24.380]: AsyncBluetoothPairDeviceRequest - Verification attempt 0 / 5 [2021-01-17 10:57:24.382]: AsyncBluetoothPairDeviceRequest - Device Remembered [2021-01-17 10:57:24.383]: AsyncBluetoothPairDeviceRequest - HID service enabled [2021-01-17 10:57:24.384]: AsyncBluetoothPairDeviceRequest - HID service not enabled [2021-01-17 10:57:24.386]: AsyncBluetoothPairDeviceRequest - Verified failed. Re-establish connection [2021-01-17 10:57:24.387]: AsyncBluetoothPairDeviceRequest - Connection attempt: 0/80 [2021-01-17 10:57:24.389]: AsyncBluetoothPairDeviceRequest - Device not connected [2021-01-17 10:57:24.693]: AsyncBluetoothPairDeviceRequest - Connection attempt: 1/80 [2021-01-17 10:57:24.694]: AsyncBluetoothPairDeviceRequest - Device not connected

I tried to search for this error, but nothing worked.

Thank You for your support.

endasil commented 3 years ago

As you can see in the log it says patching the registry and then it fails to open the key, meaning it has trouble writing to the registry. This is a known issue that has been fixed by others in the master repository but, the author of this project does not want to spend the time it takes to set up, build, and test the code and release the new binaries himself. You can however build the code yourself by following the instructions here. https://github.com/psmoveservice/PSMoveService/wiki/Building-from-source

Since I needed this myself I have built the code and I guess you could use my copy of the files if you want. Just download this, and unzip the files to replace the PSMoveService.exe and PSMoveServiceAdmin.exe in your folder. https://www.dropbox.com/s/8mw731itkvznqbj/psmovepatch.zip?dl=0

after this, you should no longer have an issue with the registry key.

If the controller exists in the list of Bluetooth devices I would recommend removing it before running this again, it seems like it can be registered in some faulty state. Press Windows key + K then click "Find other types of devices". In the list there, click on "Motion Controller" and then "remove".

NunexGT commented 3 years ago

@endasil thank you for your reply.

I have downloaded your patch files, replaced the files that were in the PsMoveService directory, removed them from "Devices and Printers" and it worked, now I can pair them succesfully.

Thank your for your assistance. :)

Have a nice day.