windows-10-iot-core

How to get the processor serial number of Raspberry PI 2 with Windows IOT

徘徊边缘 提交于 2019-12-10 01:59:07
问题 I need to get the processor serial number of a Raspberry Pi2 that is running windows 10 IoT. 回答1: Usually this is within the Windows.System.Profile.HardwareIdentification namespace. Unfortunately, that's one of the unsupported namespaces with Win10 IoT Core. Instead, to identify the metal, I'm using info from the network adaptor(s): public static HashSet<string> NetworkIds() { var result = new HashSet<string>(); var networkProfiles = Windows.Networking.Connectivity.NetworkInformation

Network connection with UWP Apps

天大地大妈咪最大 提交于 2019-12-08 22:32:15
问题 I got two Windows UWP Apps. One of them (the "server") is running on a Raspberry Pi 2 on Windows IoT (10586.0). The other (the "client") is running on any Windows 10 device within the same network. What I want is to get the apps to "talk" to each other. For the moment I just want to send simple String from the client to the server. Later on, serialized data should be transferred trough the network. This is the code for the server App: namespace LCARSHomeAutomation { /// <summary> /// Eine

Screen resolution issues with Win 10 IoT and R Pi Official 7" touchscreen

非 Y 不嫁゛ 提交于 2019-12-08 18:43:47
问题 The official Raspberry Pi 7" Touchscreen Display (https://www.raspberrypi.org/products/raspberry-pi-touch-display/) works really well with Windows 10 IoT Core running on my Raspberry Pi 2 B since support was added back in an Insider Preview (display and touch are functional). Except for the screen resolution. It is almost right, but everything on the screen appears slightly stretched horizontally which gives the app UI a cheap feel. Most notable are circular shapes that are stretched

Asp .Net Core RC2 on Windows IoT and Raspberry Pi 3

点点圈 提交于 2019-12-08 15:56:19
问题 I'm trying to create an Asp.Net Core RC2 site running on a Raspberry Pi 3 using Windows IoT. I found the following tutorial: https://www.hackster.io/iddi/windows-10-iot-core-publish-asp-net-web-application-d9dcd4 But this is for RC1. So is there already a tutorial for RC2, did anybody do so already? And the Second question is, can you debug an asp.net core site on Windows IoT? Thanks for your help. Greetings Markus 回答1: As far I know, it's not supported yet. Like @davidfowl said: This isn't

LDAP queries using UWP on Windows 10 IoT

℡╲_俬逩灬. 提交于 2019-12-08 14:48:32
问题 After several hours of searching it appears that there is no way to query a local LDAP directory (Microsoft Active Directory or otherwise) from a UWP app. This seems like a rather bizarre hole in the UWP offering, and so I'm hopeful that I'm just missing the obvious. What (if anything) is the functional equivalent of System.DirectoryServices in the Universal Windows Platform world? 回答1: This thread is a little older, but you have 3 options today: Use the Windows Compatibility Pack for

UWP AppServiceConnection - SendResponseAsync returns AppServiceResponseStatus.Failure

一世执手 提交于 2019-12-08 12:48:28
问题 I'm trying to create a UWP service app on the Raspberry Pi3 which provides the access to the on board UART. I'm facing an issue about the AppConnection Request/response. this is the service method that handles the incoming requests from client apps internal class Inbound { public static async void OnRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args) { var messageDeferral = args.GetDeferral(); var response = new ValueSet(); bool success = false; var msg =

Calculate CPU Usage in Percentage UWP Application Windows 10 IOT

你离开我真会死。 提交于 2019-12-08 08:19:51
问题 I want to calculate CPU usage in percentage. Currently I am using ProcessDiagnosticInfo to get kernal time and user time. How can I convert this time to percentage or suggest me any other method to find it, if there is any. private TimeSpan GetTotalCpuTime() { var totalKernelTime = new TimeSpan(); var totalUserTime = new TimeSpan(); var pdis = ProcessDiagnosticInfo.GetForProcesses(); foreach (var pdi in pdis) { var cpuUsage = pdi.CpuUsage; var report = cpuUsage.GetReport(); totalKernelTime +=

UWP Unpaired Paired Bluetooth devices

偶尔善良 提交于 2019-12-08 03:36:47
问题 I am developing in Visual Studio 2015 in C# for a Raspberry PI 2 device running Windows IoT Core. For my application I need to pair and unpair Bluetooth devices. Can I get a list with paired / unpaired / all Bluetooth devices? Like what can be seen on the Bluetooth page of the built-in management website (http://[deviceip]:8080/bluetooth.htm) I found a example (https://github.com/Microsoft/Windows-universal-samples), but this is to much for me! For now I just want to get a list with paired /

windows 10 iot raspberry pi 3 wifi hotspot

假装没事ソ 提交于 2019-12-07 23:14:17
问题 I am trying to make my RPi 3 an AP using Windows 10 IoT core. RPi is connected with internet through Ethernet port and I want to make RPi 3 builtin WiFi to share internet with other devices. I have read documentation page but it is not working for me. I have tried with Windows IoT Onboarding and from PowerShell also. After selecting adapters from IoR Onboarding, clicked on start sharing service and a message appears which says "internet conncetion sharing has started" but I can't find network

Windows 10 UAP determine if device is IoT (e.g. Raspberry Pi 2)

ぃ、小莉子 提交于 2019-12-07 19:09:28
问题 I was wondering how to determine if the device belongs to the IoT-family, in my case a Raspberry Pi 2, but I don't need to know if it is specifically a Raspberry, just an IoT device. I tried the following code: //if(ApiInformation.IsApiContractPresent("DevicesLowLevelContract ", 1)) if (ApiInformation.IsTypePresent("Windows.Devices.Gpio")) { this.InitializeSensor(); return; } Both wont be true on my notebook, but wont be true as well on my Rasbperry Pi. Has someone an idea or knows how to do