Hello everyone.

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.
Options

Send data from MATLAB to UWP app via UDP

Hello guys,

For a project with the hololens, I want to transmit data udp via UDP from MATLAB to Hololens. As a preparation I am testing the UWP app in visual studio and matlab on the same machine.
I tried to send a string from MATLAB to a UWP app via UDP. On MATLAB a UDP server is running and on UWP a UDP Client. When I try to send data from the client to the server it works. But when I try to send data from the server to the client no data will be received. (the message received event won't be called).

MATLAB code:
%echoudp%('on',8000);
%unity_server=udp('localhost',8000);
unity_server=udp('localhost','RemotePort',56032,'LocalPort',8000);
fopen(unity_server);
disp(unity_server.status);

while(1)

  fprintf(unity_server,'Hallo Server');
  %A=fscanf(unity_server);
  %disp(A)

end
fclose(unity_server)
instrreset
clear all

%fclose(unity_server);
%instrreset

For the uwp app, I used the suggested one from the homepage (https://docs.microsoft.com/en-us/windows/uwp/networking/sockets)

Does anybody know a solution for that issue?

Thanks,
Chris

Sign In or Register to comment.