The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Communication on real time with desktop application

I try to mirror what is happening on a desktop 4.5 framework based ( developed with Visual Studio) into an Universal App. For this I am trying to communicate with UDP but I cannot find the proper classes to do it. System.net.sockets is obsolete with Universal Apps and do not work. I try to use Windows.Networking.Sockets in the Universal App but the result is not good( I cannot connect both softwares) What I try to do is a real time communication( as fast as possible not needed a 100% accurate). Any suggestion is accepted not only UDP. Could be WCF a good option?
Best Answers
-
ahillier mod
Hello @DiegoV,
I would suggest taking a look at our Shared Holograms tutorial: https://developer.microsoft.com/en-us/windows/holographic/holograms_240
We have a HoloToolkit prefab for sharing, which uses sockets underneath. It works between multiple HoloLens devices, and also with other machines (like your PC or phone). It might be just what you need for cross-device communication, or at least give you a good starting point for writing your own solution.
Thanks,
~Angela6 -
DiegoV ✭✭
@ahillier said:
Hello @DiegoV,
I would suggest taking a look at our Shared Holograms tutorial: https://developer.microsoft.com/en-us/windows/holographic/holograms_240
We have a HoloToolkit prefab for sharing, which uses sockets underneath. It works between multiple HoloLens devices, and also with other machines (like your PC or phone). It might be just what you need for cross-device communication, or at least give you a good starting point for writing your own solution.
Thanks,
~AngelaHi @ahillier ,
Thanks for this help. I have implemented a WCF service based on TCP ( I will take a look into UDP based). I was able to transmitt an object based on a datacontract from my software in pc ( .net framework 4.5 ) and consume it in an Universal App( by now just in localhost but it should be the same in 2 different machines).
Before I was taking a look to UDP classical approach by it was impossible to make compatible DatagramScoket class from .netcore with System.Net.Sockets class.What do you think about my solution(WCF)? I am afraid of speed, anyway this solution is used for a LAN network... Please let me know your thinking!
5
Answers
Hello @DiegoV,
I would suggest taking a look at our Shared Holograms tutorial: https://developer.microsoft.com/en-us/windows/holographic/holograms_240
We have a HoloToolkit prefab for sharing, which uses sockets underneath. It works between multiple HoloLens devices, and also with other machines (like your PC or phone). It might be just what you need for cross-device communication, or at least give you a good starting point for writing your own solution.
Thanks,
~Angela
Hi @ahillier ,
Thanks for this help. I have implemented a WCF service based on TCP ( I will take a look into UDP based). I was able to transmitt an object based on a datacontract from my software in pc ( .net framework 4.5 ) and consume it in an Universal App( by now just in localhost but it should be the same in 2 different machines).
Before I was taking a look to UDP classical approach by it was impossible to make compatible DatagramScoket class from .netcore with System.Net.Sockets class.
What do you think about my solution(WCF)? I am afraid of speed, anyway this solution is used for a LAN network... Please let me know your thinking!
How fast is communication with hololens using UDP and how much data are you able to transmit?