Webserver on windows 10 IOT? - windows-10-iot-core

Can I create a webapplication on my windows 10 IOT running device (R-PI 3)?
On other PI's I've got Debian running with LightHttpd, but I can't seem to find anything on a webserver on Win10 IOT device.
I did see some examples on self creating a -very simple- webserver (ie listening on a port) but there should be more than that?
PS
I added 2 tages: Windows IOT and Windows-10-IOT-Core.... are these the same?

Can I create a webapplication on my windows 10 IOT running device
(R-PI 3)?
Yes, you can start with Hello blinky official sample. There are also Python and Node.js supported.
Using ASP.NET, you can publish Web Application on Windows IoT core. (Note the version of ASP.NET, more detailed information is here.)
And, restup is a HTTP server for universal windows platform (UWP) apps that can run on Raspberry Pi with Windows IoT core.
PS I added 2 tages: Windows IOT and Windows-10-IOT-Core.... are these
the same?
Windows IoT core is an edition of Windows 10 differs from desktop and mobile editions. It is optimized for smaller devices with limited resources, such as Raspberry Pi 2 and 3.
Window IoT is something about Internet of Things you can create with Windows.
For tags in SO, "Windows IoT core" and "Window IoT" have identical function.

There are a couple of ways to do this that I've come across which might interest you:
1) As you suggest, it is very simple as you suggest to write you're own server app or app service that listens on a port and responds. Here is a decent example which was easy to follow and implement:
https://sandervandevelde.wordpress.com/2016/04/08/building-a-windows-10-iot-core-background-webserver/
2) Also, it is possible to develop a plugin for Windows Device Portal (WDP) by following the instructions here:
https://learn.microsoft.com/en-us/archive/msdn-magazine/2017/october/windows-device-portal-write-a-windows-device-portal-packaged-plug-in
I have tried this and it works very nicely. It demonstrates how to serve static content and dynamic content either from the foreground or a background task.

Related

Is Windows Filtering Platform (WFP) Supported on Windows IoT Core

I have not been able to locate documentation indicating whether Windows 10 IoT Core supports WFP in any capacity. I am particularly interested in whether IoT Core supports WFP callout drivers.
Background on WFP
You may try to run the WFP sample on Windows IoT Core. It includes a driver project named WFPSamplerCalloutDriver. Since the the target of projectis for Windows Desktop, it may show error when compiling for Windows IoT Core. You need to change the DriverTargetPlatform to Universal which supports Windows IoT Core.
Windows Filtering Platform Sample
Update:
I have compiled the WFPSamplerCalloutDriver sample for Windows IoT Core successfully, and built/installed the driver package on my device(Raspberry PI) with no errors. But I can not find the installed drivers via command devcon driverfiles * after booting the device.

I get a Blank screen when using Windows IoT Remote Client

My Setup:
Windows 10 VM running in VirtualBox on Windows 7 Pro
Raspberry Pi 3 running Windows 10 IoT Core - 10.0.16299.19
The VM can see the RaspberryPi/Wionows IoT
I know this because:
On the VMI I can Install and Debug from Visual Studio 2017 to the Pi.
On the VM the IoT Dashboard detects the PI and allows me to change
settings
On the VM I can access the Pi's Device Portal
On the VM I can use Powershell to log in to the Pi.
What I can't do is use Windows IoT Remote Client. Which I want so I can see changes produced by my code.
When I start the client I get the spinning buffer animation followed by a blank, white screen.
I have tried the following as recommended in web articles:
Reset the Pi resolution to 800x600 - This killed the Pi's ability to
display at all; including on the attached HDMI.
Checked Enable Windows IoT Remote Server in Device Portal. - This is
set to On
Disconnected the HDMI from the Pi - Made no difference.
Typed the following into an Admin level PowerShell:
net start WinRM
Set-Item WSMan:\localhost\Client\TrustedHosts -Value
PiName
This allowed Powershell access but no change to Remote Desktop
What should I try next?
On version 16299,the Windows IoT Remote client does not work for Raspberry Pi. Please reference the know issue of release notes for Windows 10 IoT 16299.Currently you can attach a monitor for local display.
Try starting the NanoRDP server manually (not through the web interface) and see if that helps. That has solved a few issues for me.
I believe the executable is in c:\windows\ and is called nanordpserver.exe. just SSH or Powershell into the device, run nanordpserver.exe and try again.
The lightweight RDP protocol that IoT Core uses is not as robust as the version installed on the full Windows 10 OS.

Accessing USB devices from node-webkit?

I'm building a node-webkit app that needs to run on all 3 main desktop environments (windows, mac and linux) I need my app to connect to a plugged in USB device and I'm having a bit of trouble working out exactly how to go about this.
Is there an npm that would work across all OS's? Could I get one built in C++ that would work? Is there anything built in to node-webkit for interacting with devices (Devices API?)
Thanks in advance.
You're almost certain to need a C/C++ module to make this happen, which means a build process is required. The good news is that you can just do the build on your machine and distribute the resulting binaries (x86 and x64) for Windows and OS X. Linux might be a little trickier, but on the other hand it's more likely to have a working build environment.
There are a few approaches, in order of ease:
If your GPS device can present itself as a simple serial device (a COM port on Windows, or /dev/tty-usbserial on *nix), then you can just use serialport to connect to the device and receive raw data. There's a nmea module that can handle parsing the data. serialport works out of the box on all 3 platforms.
If the drivers don't have an official option to present the device as a serial device, you may be able to find an unsupported way to make it happen with some searching.
If the GPS device's drivers don't expose the device as a serial device, you'll need to write a C++ module that interfaces with the driver. You'll need to write code for all three platforms; the device manufacturer should provide documentation/an SDK. (See here for advice about getting started with native modules on Windows.)
Last resort: you may be able to use the usb module to communicate directly with the device. This will probably involve reverse engineering the protocol that the device uses to communicate with the computer.
I recommend you to execute a command line script for that. Caution, it is platform-specific.
Actually you don't need any module you can use chrome usb api its already available for node webkit and electron applications https://developer.chrome.com/apps/usb

Deploy to Windows Phone 8 device from VM (RDP/RemoteFX)

I would like to move my WP8 development to a virtual machine. I know that the emulator won't run on top of a VM, so I'm wondering if I can deploy & debug directly to the device (via regular old USB). RemoteFX allegedly performs "USB redirection" which I assume is supposed to magically connect the phone up to my RDP session, and thus enable deployment. I was able to establish a RemoteFX connection with my VM, however when I try to deploy to my phone Visual Studio (within the VM) claims it cannot find a phone. (yes, I verified my phone is connected to my local machine)
tl;dr Does anyone know how to deploy to a physical Windows Phone from within a VM?
I see that this is the first link that appears in google search for this problem. I am going to present you the solution from what it is there is Nokia development articles. Please go through link.
The only important thing is to enable Intel VT-x option.

Deploying a Windows Service along with the Windows Store app installation

I am planning to create a performance tune-up application for Windows 8 and would like to distribute it through the Windows Store.
Do Windows 8 applications (Metro apps) allows me to install a windows service onto the clients' system when he downloads my application through a Windows Store interface?
My idea was to have a service that does a constant tune-up and use Metro UI to control the service settings.
No, they do not allow you to install Services, unfortunately (well, kind-of fortunately, as that would be a large security risk). The Metro environment is a sandbox that allows data in and out only through specific guard systems and with specific, requested capabilities.
You may be able to have them install the service separately, but I'm not sure you'd be able to communicate with it or sell an app which does so on the store.
If you have your service hooked up to a WCF service or sending messages through Azure, then you could talk to it that way, but that'd be kind of roundabout.
Sorry I couldn't help you more, good luck.