Unity Load Media Files From PC At Runtime - unity3d

I'm developing an app for HoloLens 2 with Unity version 2020.3.3f1
This app should be able to load some medical data from a PC at runtime, thus I need to implement a connection with a PC when running the application on HoloLens, and to take some files from it.
I'm struggling a lot in finding some useful information to do this, thus I'd be really glad if someone can give me some suggestions on how to achieve this.
Thanks a lot.

The most direct way to do that, you can establish a TCP connection between HoloLens 2 and PC, then build a PC server app to respond to the file request from HoloLens Client App.
Another way, instead of coding your own server app, creating a file-sharing using the SMB protocol on your PC, and access this drive from HoloLens, for more detail please refer to this thread: Issue with using StorageFolder in a Unity UWP App deployed on a Hololens

Related

How to share computer desktop to HoloLens2?

I need to share my desktop on Hololens2 in real time.
All the methods I have found deal with synchronizing the HoloLens2 screen to the PC side, instead of the PC side to HoloLens2. I want to try the Unity plug-in FMETP STREAM, but it doesn't seem to meet my requirements. What should I do to synchronize the PC screen to HoloLens2 in real time?
Please excuse my poor English. I would be grateful if you could answer my question.
FMETP STREAM should satisfy this use case, I find this post the developer replied, this package supports the case desktop Unity app stream the content to the VR headset. I believe it should also work for HoloLens.
Besides, the MixedReality-WebRTC release from Microsoft can help you enable real-time audio/video/data communication with a remote peer. It also meets your requirements. You can get it starts with this doc:Unity library overview
You can modify Hololens Remoting player. It streams desktop app to Hololens in real time.
https://learn.microsoft.com/en-us/windows/mixed-reality/develop/platform-capabilities-and-apis/holographic-remoting-player

HoloLens sharing with UWP application for PC

The idea is to create a HoloLens application that displays a hologram which can then be manipulated through the UWP application run on the desktop. The desktop application would contain various UI elements that manipulate the hologram(ie. a rotation button to turn it 45 degrees) and of course, see the same object as in the HoloLens. Naturally, I arrived at the 240 academy tutorial, but that seems a bit outdated compared to the current version of the Holotoolkit. It also doesn’t really fit my scenario, since I am not sharing between two HoloLens devices, but a desktop and a HoloLens. I figured that that shouldn’t really matter since you are still targeting for the UWP, but I wasn’t sure.
So what I tried so far was trying to edit the example scene “SharingSpawnTest” and target it for the PC to see what would happen, but I thought this wasn’t the way to do it since the project settings are set for Mixed Reality and not a regular UWP application for the desktop.
My question is basically if this is even possible and if so, how do I achieve this? Do I have to create two separate projects, one for the desktop and one specifically for the HoloLens and communicate that way?
Add a NetworkManagerHUD component to your NetworkManager object. Once you add it, type in the HoloLens IP address and connect to it. Currently, this only works for HoloLens to be the host and the desktop to be the client.

To make bluetooth connection pc between device through web app, pc side program, what is it made from?

I almost understand how to send message device to device.
But, I don't know how to do this with pc.
I tried to find it, but the most curious thing is,
'How can I make server side program on pc?'
I know how to provide web service by server, but for that, I have to make environment like APM on PC.
But, that's not what I want. Because it means, someone who want to use that program should make environment like that I have.
Actually, I tried to make remote controller application like X-remote...
That kind of applications, just download program and install it on pc, then pc act as a server.
what is it made from? C#? php? Java swing?? I have no idea about that...
Device is Tizen, so we will make a web app.
How can I make pc program like other remote application?
It seems that right now you cannot emulate Bluetooth on Emulator. As far as I remember when developing some sample applications, we have been using some fixed data. You could also write whole application using simple PHP server, and change the communication from HTTP to Bluetooth at the end of development.
Please analyze BluetootchChat sample application in the SDK, it should give you an overview about the BT communication in JavaScript.
Remember about the privileges in config.xml file.

iPhone interaction between PC app and iPhone app using USB

I know since the 3.0 SDK we can use accessories, so my question is simple, what is the process to make an iPhone app and PC (or Mac) app interact, using the USB ?
I don't ask you any code, but just the paths and the keys for making that work.
Have I to access the iPhone disk through SSH and work with files ?
Or can I send data from the iPhone app and intercept (get) it on the PC app (and send data from PC to iPhone) ?
Thanks, and if this question is stupid, just tell me, I didn't find on Dev Center (I don't really know what I have to looking for...) !
Edit : I read some news from Microids, they will synchronize PC and iPhone games (i.g here), and somewhere (I can't find it again) they say connecting the iPhone on the USB, so I think this is possible
USB access on the phone is only supported via the External Accessory Framework. You cannot hook the iPhone up to arbitrary USB devices, the devices actually have to support the EA protocol. You can get more details about it via the Made for iPhone program.
Other than that there is no USB access available on to applications.
You want the External Accessory Framework. Having said that, I'm not sure that Apple's intention was for you to communicate with an application on a PC/Mac. It's really for talking to accessories such as iPod docks, remote controls, etc. Apple may not allow an application that talks to a PC in this manner in the App Store.
You might be interested in ssh_relay (earlier called iphone_tunnel).
There is a /System/Library/Lockdown/Services.plist on your iPhone and you can start any such services via AMDeviceStartService and then communicate with it.
The ssh_relay demonstrates how to do that by having a simple port forwarder as a service on the iPhone site and the client application on your PC, so you can forward any local iPhone port to your PC. This is not exactly what you wants here (it is handy in the case you have already another service running on the iPhone which communicates via simple TCP and you want to access that; for example SSH) but based on this example, it should be straight-forward to have any communication between the service (in Services.plist) and your PC.

WiFi iPhone Application

im working on an iPhone application which requires communication between 2 devices through WiFi.
Can somebody please help me by providing a simple iphone application code for the same which is able to communicate data between the devices...i hv gone through the "witap application" available on the developers site but wasnt able to understand it...
please help..
There's a great 2-part tutorial at MacResearch:
Part One
Part Two
Use the Bonjour , let Device A as the server, and publish service via Bonjour; and in Device B,use the NSNetServiceBrowser to search the published service via device A in the same local network,and connect by socket to send data.
there is a demo here.download.And you can read this article go>>.It helped me before.