windows-10-iot-core

How to Full Control (Read/Write) of custom resource resw file (Universal Windows)

眉间皱痕 提交于 2019-12-12 05:04:06
问题 How can I read/write Keys/Values on a custom Resource File (resw) (storing string and conditional resources) ? I added Resource File(resw) for storing settings of app. And Then ? private void button1_Click(object sender, RoutedEventArgs e) { ResourceContext resourceContext = ResourceContext.GetForViewIndependentUse(); ResourceMap resourceMap = ResourceManager.Current.MainResourceMap.GetSubtree("Resources");//resources.resw accessing in root is ok. var resourceValue = resourceMap.GetValue(

How to use PowerShell to set the time on a remote device?

拥有回忆 提交于 2019-12-12 03:17:50
问题 I want to set the Date and Time of a remote device ( Raspberry Pi 2 running Windows IoT ) to the value of the Date Time of a local device. I create a variable $dateTime to hold the local DateTime. I assign a password to connect to a remote device to a variable $password. I create a credential object. I connect to the remote device using Enter-PSSession. Now that I'm connected I try assigning the remote devices DateTime using Set-Date = $dateTime | Out-String. I get cannot convertvalue "=" to

Multiple (4x) SPI device on rasberry pi 2 running windows 10 iot

折月煮酒 提交于 2019-12-12 01:45:45
问题 I had successfully communicate single SPI device (MCP3008). Is that possible running multiple (4x) SPI device on raspberry pi 2 with windows 10 iot? I'm thinking to manually connect the CS(chip select) line and activate it before calling spi function and in-active it after done the spi function. Can it be work on windows 10 iot? How about configure the spi chip select pin? Change the pin number during the SPI initialization? Is that possible? Any smarter way to use multiple (4 x MCP3008 ) SPI

WinIot Core v.10.0.16299.15 - RP3 - Microsoft Visual Studio Remote Debugger, MSVSMON not running

血红的双手。 提交于 2019-12-11 16:29:38
问题 This isnt my first project with WinIoT on a Pi. I have been using the WinIot image since its first version. I decided to update all my Pis to the latest WinIoT image. My VS is updated to the latest version 2017 15.15.2. When I go to remote debug my application, It fails during the deploy process with this error: 1>Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named '[iphere]'. The Visual Studio 2017 Remote Debugger (MSVSMON.EXE) does not appear to be running on the

Cannot deploy UWP app to raspberry pi from VS2017

不羁的心 提交于 2019-12-11 15:25:18
问题 ok so i have the same problem as this guy, im trying to deploy an UWP app with VS2017 15.5.4 to Raspberry pi 3 using my PC but getting this error: 1>------ Build started: Project: SerialSample, Configuration: Debug ARM ------ 1>C:\Users\sco1o\OneDrive\Skripsi\Research\SerialUART\CS\MainPage.xaml.cs(220,42,220,45): warning CS0168: The variable 'tce' is declared but never used 1> SerialSample -> C:\Users\sco1o\OneDrive\Skripsi\Research\SerialUART\CS\bin\ARM\Debug\SerialSample.exe 2>------

How to launch javascript universal windows application from another UWP app in windows IoT?

戏子无情 提交于 2019-12-11 15:13:57
问题 My requirement is to launch UWP app from another UWP app.And i made it but its working in windows 10 desktop system not on Windows IoT OS,Kindly help me to fix this. $(document).on('click', '.openTAT', function () { var testAppUri = new Windows.Foundation.Uri("test-app2app:"); var options = new Windows.System.LauncherOptions(); options.TargetApplicationPackageFamilyName = "TATApp_ehke6zp0mbebr"; Windows.System.Launcher.launchUriAsync(testAppUri, options).then( function (success) { if (success

Run External exe from UWP app, workaround sandboxed mode

倖福魔咒の 提交于 2019-12-11 10:57:59
问题 I have a program where i want to have the ability to launch a local application (for example Spotify) from my UWP App. I have searched the web for a solution as (Process.Start()) doesn't work. As i have understood the UWP applications is kind of sandboxed for saftey and stability reasons. But is there a (simpel) way to work around this. I only want the ability to start and close a program inside my own frame/Window. No need to interact/send/recive data between my applications and the external

Windows IoT - USB Printer

♀尐吖头ヾ 提交于 2019-12-11 10:20:04
问题 The question is similar to question in this thread Windows IoT - Zebra Bluetooth Printer . I have a Zebra GX420d printer. The only difference is, it is not connected via Bluetooth but via USB. I can't seem to get it paired with my raspberry pi 2. I need to print something out (like "Hello world"). Please help. Update: So, i installed the usb driver for the printer, now the Raspberry can see it, but i still can't write anything to the printer. Now i get the "Attempted to read or write

How to detect running on a real device?

亡梦爱人 提交于 2019-12-11 09:06:06
问题 I am working on a universal application, and I am trying to detect whether it runs on a desktop computer or on a real IoT device (Raspberry PI 2). Following the recommendation, I am trying to use API contract checks, however this returns true even on the desktop machine: ApiInformation.IsApiContractPresent( "Windows.Devices.DevicesLowLevelContract", 1, 0 ); Obviously when I try to call GpioController.GetDefault() , it fails on the desktop, but strangely with a FileNotFoundException : "The

How to create windows 10 iot core application icon

廉价感情. 提交于 2019-12-11 07:39:55
问题 I have created an windows 10 iot core application and i created the app bundle in appx format. That's installing properly in windows 10 machine. But i want to install in IOT core board The package file which i have created like below: ABC_1.0.9.0_AnyCPU_Debug.appxbundle I have created through visual studio 回答1: You can follow this tutorial to create the the appxbundle. Then in the windows iot device portal, select add button to install your app like this: After that, you will see this Dialog: