windows-10-iot-core

Windows IoT Raspberry Pi 3 c# Create .txt file

两盒软妹~` 提交于 2019-12-01 12:15:29
I am using Rasp Pi 3 with Win IoT. I am trying to create a .txt file with Data & time as file name. However, it seems that I can't create .txt file. I am testing out by pressing a button to generate a log.txt file. After pressing the button, there is no error message. When I read the USB drive, the Log folder was created but there is not Log.txt file. private async void Btn_Click(object sender, RoutedEventArgs e) { var removableDevices = KnownFolders.RemovableDevices; var externalDrives = await removableDevices.GetFoldersAsync(); var drive0 = externalDrives[0]; var logFolder = await drive0

Windows IoT Raspberry Pi 3 c# Create .txt file

爱⌒轻易说出口 提交于 2019-12-01 11:36:41
问题 I am using Rasp Pi 3 with Win IoT. I am trying to create a .txt file with Data & time as file name. However, it seems that I can't create .txt file. I am testing out by pressing a button to generate a log.txt file. After pressing the button, there is no error message. When I read the USB drive, the Log folder was created but there is not Log.txt file. private async void Btn_Click(object sender, RoutedEventArgs e) { var removableDevices = KnownFolders.RemovableDevices; var externalDrives =

UWP get live webcam video stream

爷,独闯天下 提交于 2019-12-01 06:08:34
I was looking into the MediaCapture class, however it doesn't seem to expose what I'm looking for. I want the live Stream from the web cam - not to record it or preview it. I'm working on the Microsoft Cognitive Services Emotion API and I want to follow this example , but instead of getting a local video stream from the file system - I want to get a Stream from a web cam. The Microsoft Cognitive Services Video APIs, including Emotion, are REST APIs, not streaming APIs, so your scenario is not supported. What you can do instead is periodically capture a frame and make RESTful calls to one of

UWP get live webcam video stream

心不动则不痛 提交于 2019-12-01 03:23:05
问题 I was looking into the MediaCapture class, however it doesn't seem to expose what I'm looking for. I want the live Stream from the web cam - not to record it or preview it. I'm working on the Microsoft Cognitive Services Emotion API and I want to follow this example, but instead of getting a local video stream from the file system - I want to get a Stream from a web cam. 回答1: The Microsoft Cognitive Services Video APIs, including Emotion, are REST APIs, not streaming APIs, so your scenario is

Unable to use SerialDevice.ReadTimeout in Windows 10 IoT

大憨熊 提交于 2019-11-30 17:44:36
问题 I'm trying to implement a ModBus master on Windows 10 IoT on a Raspberry Pi 2. I'm using an external USB to RS-232 adapter since the internal serial port is reserved for Kernel Debugging. Serial port is working. My question is mainly about timeout when reading. Here is my code: // Initialization serialDevice.ReadTimeout = new TimeSpan(0, 0, 0, allowedTimeBetweenBytes); serialDataReader.InputStreamOptions = InputStreamOptions.Partial; // Reading uint bytesRead = await serialDataReader

How to set system time in Windows 10 IoT?

坚强是说给别人听的谎言 提交于 2019-11-30 08:54:03
Is there a way to set system time from my app running on a Raspberry Pi 2 in Windows 10 IoT Core Insider Preview? This doesn't work for lack of kernel32.dll [DllImport("kernel32.dll", EntryPoint = "SetSystemTime", SetLastError = true)] extern static bool Win32SetSystemTime(ref SystemTime sysTime); First, connect to your Pi 2 using PowerShell . Use the command set-date to set the time. For example, if you want to set the date to Saturday, October 3, 2015, 2:00PM, you would type set-date 10/3/2015 2:00PM . The command tzutil sets the time zone. Type tzutil /? for usage 1-New Universal Project 2

WinUSB driver on Windows 10 IoT

左心房为你撑大大i 提交于 2019-11-30 08:20:34
问题 I'm trying to use the WinUsb.sys driver that comes with Windows (including Windows 10 IoT of Raspberry Pi 2). Using devcon.exe I can see that the USB I'm trying to use is connected (it is named USB\VID_1234&PID_ABCD\5&3753427A&0&4 ), but I don't know how to force it to use the WinUsb.sys driver. I found some instructions on microsoft.com but that seems to be for a standard Windows installation where you have Device Manager available (which I don't have on IoT). The INF file example on this

update uwp app from usb drive on raspberry pi

本小妞迷上赌 提交于 2019-11-29 17:00:48
I have a Universal Windows App I created in visual studio 2017. I have deployed this app on my raspberry Pi and it is running good. I also have create a package using 2017. I want to add an update button to my app and when pressed it would look for a USB stick and check for a file. I it sees this file it will update the app just as if it was looking to the store to update. This unit has no connection to the internet and is for internal use only. But, I want to make sure that I can update these or give a USB stick with the update on it so a colleague can update it. I have no idea how to do this

windows IoT core on screen keyboard

房东的猫 提交于 2019-11-29 16:50:24
Have the latest releases to Windows IoT included an On Screen Keyboard? I am aware of other suggestions that use the webview to provide a keyboard, but I would prefer an OSK for my UWP app. Ideally internationalised. On Screen Keyboard is not mentioned in the latest release 14931 , so the answer is no at the moment. Part of the reason for this is that we don’t have a ‘shell’ like explorer that is there helping control what app is running or providing other services such as SIP / OSK as is handled on the desktop. Longer term I believe this is something that the product team is considering /

How to set system time in Windows 10 IoT?

拟墨画扇 提交于 2019-11-29 11:57:09
问题 Is there a way to set system time from my app running on a Raspberry Pi 2 in Windows 10 IoT Core Insider Preview? This doesn't work for lack of kernel32.dll [DllImport("kernel32.dll", EntryPoint = "SetSystemTime", SetLastError = true)] extern static bool Win32SetSystemTime(ref SystemTime sysTime); 回答1: First, connect to your Pi 2 using PowerShell. Use the command set-date to set the time. For example, if you want to set the date to Saturday, October 3, 2015, 2:00PM, you would type set-date 10