Hololens 2 to Arduino Over USB COM port

zach hamel 1 Reputation point

Hello. I am having issues with Hololens 2. I have developed a simple script which reads the messages from the Serial Port. I have an arduino Uno plugged into the HL2 over USB-C and the Arduino sends a message "hello" every 1 second. The script works in the window unity "game" section however it breaks in the HL2 and it seems to be unable to connect. I have added usb and serialCOmmunication to the deviceCapabilites in the manifest and still no luck. Does anyone know how to solve this issue?

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
277 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hernando Ren 2,151 Reputation points

    Hello, Welcome to Microsoft Q&A,

    HoloLens doesn’t support establishing a TCP/IP connection over USB, and IPOverUSB is only used by VS debugging or Device Portal. All classes of USB-C devices HoloLens2 supports have been listed in this link: https://learn.microsoft.com/en-us/hololens/hololens-connect-devices#hololens-2-connect-usb-c-devices.

    Currently, you are recommended to communicate with Arduino over the network. Besides, you can provide more information about your request and submit a feature request via feedback hub on new feature request to be considered in future releases of HoloLens OS and devices. If it's a hot impacted feature, it will be possible to be given priority to jump in the development schedule.

    For how to post feedback request, you can follow this doc: Send feedback to Microsoft with the Feedback Hub app.

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.