简体   繁体   中英

Arduino sending serial data to Hololens 2(Unity) via USB C

im trying to find my Arduino on my hololens with the Windows.Devices.Enumeration.DeviceWatcher.Added event but it doesnt come up, on my pc the uwp console app works and i can read the arduino serial data.

DeviceInformation.FindAllAsync(SerialDevice.GetDeviceSelector()) also does not work as it only returns the hololens itself. Looking specificly for the device using its VID an PID also returns device.Count == 0:

string selector = SerialDevice.GetDeviceSelectorFromUsbVidPid(vid,pid); DeviceInformationCollection devices = await DeviceInformation.FindAllAsync(selector, null);

all these methods work and have been tested on pc, Hololens seems to not add the arduino to the DeviceInformation list. the weird thing is when you go to Setting/Devices on the hololens you can see the arduino even with name(Seeeduino nano in my case) but it gets disconnected and reconnected every other second.

also when you put this in the uwp Package.appxmanifest the unity app wont start on the hololens, but this has nothing to do with finding the device in the list only with creating the SerialDevice.

<DeviceCapability Name="serialcommunication"/>

Does anyone know if it is possible to read the serial data from arduino using usb c connected to the hololens?

Currently, it is recommended you try to communicate with Arduino over Network such as Bluetooth or Wi-Fi. 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM