Recent blog entries

From the category archives: Bruce Eitman

Windows 10 IoT Core

Windows 10 IoT Core: Why is My App Package Name a GUID?

Question: I am using Visual Studio 2015 to create my Windows Universal Application and when I build and deploy it, I can’t find it listed on device or it is listed but with a GUID instead of the human readable name that I carefully gave it.  How can I fix this? How can I see this problem? The picture below shows the web access to a Raspberry Pi running Windows 10 IoT Core.  The highlighted item is the app that we will fix by giving it a human readable name. In Visual Studio, the Build output window shows: 1>Deployment complete (13982ms). Full package name: "77fae4cd-630a-45ec-9927-a72b8129f477_1.0.0.0_arm__j932756y98c8a"   How can I fix this problem? You can edit the Package Manifest file, Package.appxmanifest, to change the Identity Name:   Original      <Identity     Name="77fae4cd-630a-45ec-9927-a72b8129f477"     Publisher="CN=bruce.eitman"     Version="1.0.0.0" />   Modi ...

Read the rest of entry »

Windows 10 IoT Core: Stop A Running Package

Building on my previous articles (Windows 10 IoT Core: Starting a Package on Raspberry Pi  and Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi) the following shows how to stop a running package. We start with the function StopApp(), which can be called either of the following ways:   StopApp("PushButton", true); StopApp("PushButton", false);   private async void StopApp(string appName, bool Force) {     String FullName = await GetPackageFullName(appName);     byte toEncodeAsBytes = System.Text.ASCIIEncoding.ASCII.GetBytes(FullName);     string appName64 = System.Convert.ToBase64String(toEncodeAsBytes);     String URL = "http://localhost:8080/api/taskmanager/stop?" + (Force ? "?forcestop=true&" : "") + "package=" + appName64;     System.Diagnostics.Debug.WriteLine(URL);     StreamReader SR = await PostJsonStreamData(URL); }   To stop the package ...

Read the rest of entry »

Windows 10 IoT Core: Shutdown and Reboot the Raspberry Pi

Building on my previous articles (Windows 10 IoT Core: Starting a Package on Raspberry Pi  and Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi) the following functions will shutdown and reboot the Raspberry Pi running Windows 10 IoT Core.

private
async void ShutdownComputer()

{

String URL = "http://localhost:8080/api/control/shutdown";

System.Diagnostics.Debug.WriteLine(URL);

StreamReader SR = await PostJsonStreamData(URL);

}

private async void RebootComputer()

{

String URL = "http://localhost:8080/api/control/reboot";

System.Diagnostics.Debug.WriteLine(URL);

StreamReader SR = await PostJsonStreamData(URL);

}

The function PostJsonStreamData() can be found in Windows 10 IoT Core: Starting a Package on Raspberry Pi.

 

 

Copyright © 2015 – Bruce Eitman and Embedded101.com
All Rights Reserved

Windows 10 IoT Core: Starting a Package on Raspberry Pi

Just for fun, I thought that I would build on my previous article (Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi) and this time use POST to send data to the web server.  I decided on starting a package.   To start a package, we need a some information, this includes:         1. The URL, in the case of starting packages it is “api/taskmanager/start”          2. How to POST the app to start.  We do this with the parameter “appid” which requires a Base 64 string         3. The name of the app – surprisingly this was the most challenging.  This required that we get the Relative Package ID, which is a very odd name for the app, not a user friendly name. I started with an function that handles the items above.   private async void StartApp( string appName ) {   ...

Read the rest of entry »

Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi

Never one to back down from a challenge, I decided to try to get the MAC address from my Raspberry Pi running Windows 10 IoT Core.  It was clear to me from doing some searching that Windows Universal Apps cannot get the MAC address, but all of that advice might just be wrong.   Conventional wisdom is that we don’t need to know the MAC address because it is just a unique number, and we can get a UUID associated with our system – but that is to ignore the reasons why we might want the MAC address, which include but are not limited to:      1.  We have a tradition of identifying systems using the MAC address of the on board Ethernet port, so changing it now would create unnecessary work.      2.  We need to show the user the MAC address so they can set up their router with a static IP for the device.      3.  Manufacturing needs a way to confirm the MAC address   Th ...

Read the rest of entry »

Bruce Eitman's blog

Search blog

TagCloud

Archive

Recent Comments

  1. Re: Windows 10 IoT Core: Shutdown and Reboot the Raspberry Pi

    Bruce, I noticed that you are sending a REST web request for controlling the pi. I looked online a for...

    -- Waleed Elmandouh

  2. Re: Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi

    Hi. This no longer works for me in the iot-core custom OEM-build/FFU. They have changed the access levels...

    -- GG

  3. Re: Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi

    Hi, since I am having trouble with this intervace in an OEM-custom Image/FFU scenario, I wonder, how...

    -- GG

  4. Re: Windows 10 IoT Core: Shutdown and Reboot the Raspberry Pi

    I like your project here, and I've used it, and at one time it worked, at least with an older version...

    -- integral

  5. Re: Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi

    Nifty, Bruce!

    -- David Jones

  6. Re: Windows 10 IoT Core: Getting the MAC Address from Raspberry Pi

    Hi Bruce, Good to know you are playing with Windows 10 IoT, and thanks for sharing these great finding...

    -- Samuel Phung

Turkish porno izle video site in rokettubeporno izle