MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

Hololens 2 remoting : ProtocolVersionMismatch

Open ninjanoka opened this issue 6 years ago • 7 comments

Overview

Problem when connecting to the HoloLens over WIFI & also USB with the app

Expected behavior

Connect to the HoloLens 2 without problems

Actual behavior

Console error message: Disconnected with error ProtocolVersionMismatch

Steps to reproduce

(Links to sample github project preferred) Windows > Holographic emulation > Select Remote to device > Select HoloLens 2 > Fill in ip > Press connect

Unity editor version

2019.3.13f1

Mixed Reality Toolkit release version

2.3.0

ninjanoka avatar May 19 '20 10:05 ninjanoka

This isn't MRTK related, but I believe there's currently a bug around the error Unity reports when remoting is unable to connect. If I'm remembering correctly, ProtocolVersionMismatch maps to the error when the IP address you're trying to connect to is unreachable. I'd recommend double checking the IP address and ensuring your remoting player is running on the HoloLens and up to date from the store.

It also might be worth making sure your Windows package is up to date in the Unity Package Manager, as some remoting issues have been fixed in the last few releases.

keveleigh avatar May 19 '20 16:05 keveleigh

I've been using Unity for years, never seen this issue before. I started using the MRTK a day ago with Unity and I get this error constantly. It's frustrating to deal with because a restart of Unity is required.

I find the MRTK very buggy and causes Unity to be extremely unresponsive.

Has there been any other reports of this?

Does the MRTK work best on any earlier versions of Unity, I am using 2019.2.21f1

InitusJames avatar May 20 '20 18:05 InitusJames

I am having the same error, but fixed it by reopening the Holographic tab.

I have a Hololens2. Unity 2018.4.21f1. Developer mode is enabled on HL2 and I can access the device portal through my browser. HL2 is running Holographic Remoting app, over Wifi.

The error is identical if a wrong IP address is provided; but it looks different than the IP error given if I tell Unity to connect to Hololens1 vs Hololens2.

Here's my exploration:

  1. In the Holographic tab, select "Remote to Device", select "Hololens2", enter correct IP address. Click "Connect". See error "Disconnected with error ProtocolVersionMismatch"
  2. Enter an incorrect IP address, click "Connect". The operation takes a bit longer but the same error is displayed: "Disconnected with error ProtocolVersionMismatch"
  3. Select "Hololens1 (1st Gen)", click "Connect". See different error "Disconnected with error Unreachable".

I was able to fix the problem by closing the Holographic tab and reopening it via Window>XR>Holographic Emulation menu.

iuli4n avatar Jul 01 '20 16:07 iuli4n

It seemed to be the usb 3.0 connections. Sometimes a build worked, mostly it didn't. Using usb2 is fixing this issue but my laptop only has usb3.0 connectors so that's a loss

ninjanoka avatar Jul 02 '20 09:07 ninjanoka

I don't know about the USB cable - my issue happens over Wifi without using any USB.

iuli4n avatar Jul 02 '20 15:07 iuli4n

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar Dec 24 '20 11:12 stale[bot]

This issue has been closed by an automated process because it is stale. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar Apr 18 '22 23:04 stale[bot]