question

zachhamel-6314 avatar image
0 Votes"
zachhamel-6314 asked HernandoRen-MSFT commented

Hololens 2 to Arduino Over USB COM port

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

HernandoRen-MSFT avatar image
0 Votes"
HernandoRen-MSFT answered HernandoRen-MSFT commented

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://docs.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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for replying. I see some people have said it isn't possible however on the Microsoft store I downloaded the app "Serial Debug Assistant" and my Arduino shows up and I am able to open the port and receive communication from it.... So there must be a way for it to work. Any ideas on how it could be possible to make it work?

0 Votes 0 ·

The Serial Arduino sample in Windows-universal-samples shows how to communicate with an Arduino device on UWP apps. Could you deploy this sample first to check whether SerialCommunication works fine on HoloLens so that we can narrow it down to your own code part?

0 Votes 0 ·