windowsiot

How do I log events in Windows IoT?

♀尐吖头ヾ 提交于 2019-12-17 20:29:43
问题 WebUI for Windows IoT (as seen on Raspberry PI) features the following Event Tracing screen: How do I write into an event log from a uwp program and then later examine what's written there? This answer (which is not about Windows IoT) suggests that you need to use standard System.Diagnostics.Tracing classes for it. The sample that this answer is referring to is to demonstrate logging to a file . I'm more after logging to a built-in facility, such as ETW. Following similar logic as in the

No ToastNotification on Windows 10 IoT (RPI2)

五迷三道 提交于 2019-12-13 02:59:01
问题 How to get the ToastNotification working on Windows 10 IoT? (Raspberry Pi 2). ToastBindingGeneric binding = new ToastBindingGeneric(); binding.Children.Add(new AdaptiveText() { Text = "Foo" }); binding.Children.Add(new AdaptiveText() { Text = "Trying to do something here hello!!!" }); ToastContent content = new ToastContent() { Visual = new ToastVisual() { BindingGeneric = binding } }; ToastNotificationManager.CreateToastNotifier().Show(new ToastNotification(content.GetXml())); I'm using this

Windows IoT - Mongodb - Raspberry

无人久伴 提交于 2019-12-12 19:21:54
问题 Is it possible to install mongodb on Windows 10 IoT? I've mounted a Windows 10 IoT disk on my Raspberry PI3 and would like to install a nodejs app that connects to a mongodb database. Do you have any advice? or what would be the database the more appropriated? 回答1: The answer is yes and no. Either from the MongDB download page or build-from-source page, it only has x86 and x64 versions available, which are all targeting Intel/AMD processors. Depending on the CPU architecture your windows IoT

Visual Studio 2017 fails to deploy UWP apps to IoT device

坚强是说给别人听的谎言 提交于 2019-12-12 17:24:19
问题 Visual Studio (VS 2017) has started failing to deploy to my IoT device ... I recently started using a more recent version of Windows 10 IoT Core (upgraded from build 17134 to insider build 17692) and Visual Studio can no longer deploy UWP apps. The reported error is: DEP6957: Failed to connect to device [IP Address] using Universal Authentication. Please verify the correct remote authentication mode is specified in the project debug settings. COMException - Exception from HRESULT: 0x801C0003

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

SQLite.Net Won't Create In Win IoT Library

蹲街弑〆低调 提交于 2019-12-12 01:43:58
问题 I have been struggling to find a way of persisting an SQLite database on a Pi under Win IoT which can be accessed by different background applications (not concurrently). I thought I had the answer when I discovered Libraries (Music, Pictures, Videos - but perversely not Documents, without more work). I can create a text file in one app and write it to the Pictures library's default folder. I can then read the text file with another app. File.Exists returns true. Bingo (I thought)! However,

Windows IoT error on driver install: Could not start update, (0x8024A10F)

烂漫一生 提交于 2019-12-11 17:49:29
问题 I created .cab package using a manual: https://docs.microsoft.com/en-us/windows/iot-core/learn-about-hardware/peripheraldrivers I copied the file, staged the update, but get error on commit: [192.168.1.17]: PS C:\Data\USERS\DefaultAccount\Documents> applyupdate -stage .\Contoso.Drivers.oem6.cab Microsoft (C) C:\windows\system32\ApplyUpdate.exe INFO: Start staging .\Contoso.Drivers.oem6.cab INFO: UpdateStateIdle INFO: Check status... INFO: No past issues to report INFO: ProgressStateNone: 0

Working powershell script won't run as scheduled task (Windows IOT - RPI 3)

Deadly 提交于 2019-12-11 13:28:00
问题 We want to make our app to upgrade automatically. Since Windows IOT doesn't have Windows Store we have to do manually. Here is our solution. Our app checks every 7 days if there is new version on our web server. If it is, app download it in folder \LocalState\Install. Next part is powershell script that checks every hour if there is files in that folder. If it is she install it. Problem is that we cannot start script as scheduled task and also we cannot run it with powershell -File (we tried

Webserver on windows 10 IOT?

ぐ巨炮叔叔 提交于 2019-12-11 05:42:15
问题 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? 回答1: Can I create a webapplication on my windows 10 IOT running device (R-PI 3)? Yes,

Windows IoT and DS3231 RTC clock

与世无争的帅哥 提交于 2019-12-10 09:48:48
问题 For my project I need the current time & date. Unfortunately the RP2 loses everything when it's turned off. The next thing is, that I won't have an internet connection to use NTP. For this reasing I need to implement a DS3231 RTC module. The communication of all devices runs over I2C (Raspberry <-> Arduino <-> DS3231). At the moment my Arduino communicates with the module and stores the date and time in char-arrays. The RP2 communicates with the Arduino to get the date/time. That actually