Giter Club home page Giter Club logo

samples's Introduction

samples's People

Contributors

alanch-ms avatar alecont avatar arturl avatar bfjelds avatar davidshoe avatar dotmorten avatar iotgirl avatar javiddhankwala avatar jessekaplan avatar jimgaleforce avatar jordanrh1 avatar jplafonta avatar jslobodzian avatar karaottewell avatar kcc1988 avatar kusumamurthy avatar maglims avatar mahmoudgsaleh avatar mattgosline avatar mskalra avatar nicogbg avatar ooeygui avatar paulmon avatar rachitb777 avatar slavymihov avatar stephenhuang avatar sumahitha avatar trmck avatar tychosnose avatar zhuridartem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samples's Issues

Display sleeping?

I couldn't find anything regarding display sleeping, and as long as I'm running any of my apps the display doesn't sleep. I think I recall it sleeping with the IoTCoreDefaultApp, though.

Any chance of a code sample for manually setting the display to sleep/standby?

MessageDialog not working.

Hello Developers, I'm trying to display a message box in rpi2 I take the code from THIS (C#) and deploy it on rpi2 running windows 10 iot but it does not works. But it works on my pc (windows 10 pro insider preview build 10074 64bit + visual studio 2015 rc).

If this code not compatible with windows iot core then provide me a sample code please.
I'm planing to write an app interfacing with PLC and display its information in headed mode.

Thank you.
Wisitchai.

Cannot deploy app to Raspberry Pi 2 (win10 IOT Core)

In Visual Studio 2015 RC (Windows 10 Preview) an error occures while deploying:
Error : DEP0800 : The required framework "C:\Program Files\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.NET.CoreRuntime\1.0.\AppX\ARM\Microsoft.NET.CoreRuntime.1.0.appx" failed to install.

Add screensaver to DefaultApp

When the default app runs for a long time, it has the risk of burning itself into the LCDs we connect to the devices.
It would be good to have a screensaver for the app to prevent this - I already have a sample done (and will be posting on hackster.io soon), so I would be happy to contribute this to the app, but before doing the work want to know if this is something that you agree on would be a good idea?

There is one down side of course: If you don't have a mouse, keyboard or functional touchscreen, once the screen saver has started, it's not possible to disable it again. However it might be possible to detect if any of these devices are available, and only if so, enable the screensaver.

open source DefaultApp

open source the DefaultApp so developers can extend/customise the experience including extending the web pages for remote management.

IoTCoreDefaultApp is unusable on small IoT screens

I have an IoT LCD screen at the typical 800x480 resolution. At this resolution the default app is pretty much unusable, and several settings aren't possible because you just can't scroll to the content. The default app doesn't adapt it's layout very well at all to small screens.

BlinkyWebServer is failing because the appService connection is empty

Original issue found by BasVeenendaal in pull request (#24):

"There is one line of code:
This part should contain the information for appService.AppServiceConnection: var appService = taskInstance.TriggerDetails as AppServiceTriggerDetails;
The appService.AppServiceConnection is only empty buth the appService contains the values needed. So that’s how I came to my “fix” (maybe more a workaround)."

Workaround (lines highlighted with '-->'):

public void Run(IBackgroundTaskInstance taskInstance) 
{
...
          var appService = taskInstance.TriggerDetails as AppServiceTriggerDetails;
-->      appService.AppServiceConnection.PackageFamilyName = appService.CallerPackageFamilyName;  
-->      appService.AppServiceConnection.AppServiceName = appService.Name;  
...
}

C# DSB Adapter will create a device with 0 interfaces when you add 2 AdapterValue to AdapterDevice.Attributes property

I modified the DSB C# template (Adapter.cs) as following:

        public uint Initialize()
        {
            devices.Add(createTestDevice());
            return ERROR_SUCCESS;
        }
        private AdapterDevice createTestDevice()
        {
            string serial = new Random().Next().ToString();
            AdapterDevice result = new AdapterDevice("DeviceName", "Vendor", "Model", "version", serial, "description");
            AdapterProperty p1 = new AdapterProperty("P1", string.Empty);
            AdapterValue v1 = new AdapterValue("v1", 0);
            p1.Attributes.Add(v1);
            AdapterValue v2 = new AdapterValue("v2", 0);
            p1.Attributes.Add(v2);//this line will cause the DSB creates the device with 0 interfaces

            result.Properties.Add(p1);
            return result;
        }

it seems adding more than one AdapterValue will cause the device has 0 interfaces.

1
2

half font on ssd1306 128x32

hi
i've tried to use the library "spi display" with my oled ssd1306 128x32 (not 128x64) and not work
i've modified this line

    private const UInt32 SCREEN_WIDTH_PX = 128;                         /* Number of horizontal pixels on the display */
    private const UInt32 SCREEN_HEIGHT_PX = 32;                         /* Number of vertical pixels on the display   */
    private const UInt32 SCREEN_HEIGHT_PAGES = SCREEN_HEIGHT_PX / 4;    /* The vertical pixels on this display are arranged into 'pages' of 8 pixels each */

but this library don't work with my display
(see the photo) http://1drv.ms/1OjAP6p
all the font are "half"

can you help me?

GPIO OneWire timeout with DHT22

I have several DHT22 sensors and tried with different rpi2 in OS Version 10.010531.0 and also tried to change the wiring with a pullup and with different GPIOs too, but the code doesn't read the sensor, I always get timeout, seems that it doesn't have precission enough for the ms delays.

AllJoyn Explorer doesn't complete introspection of a local producer.

If I deploy a producer to a Pi, then I am able to inspect it and call its methods via AllJoyn Explorer. However, if the same producer is running on the same local machine then Explorer sees the producer fine but when trying to inspect its interfaces it times out or hangs. AllJoyn Explorer is a great tool but because of this, it has limited use for me in demos. Please fix or post the source code so that I can attempt to myself. Thanks!

Deployment of Win32 executables to c:\deploy

It may be better to change this to something like

c:\PROGRAMS\MyAppsDir\MyProject

for future expansion.

(The PROGRAMS directory is because that's where they always were and, look, no spaces!).

and a further question for the Visual Studio team I suppose

Why does the default project when choosing IoT Core Console Win32 C++ App required so much manual intervention in the Properties: Debugging Page.

Cannot these be filled in from the project settings (and the others defaulted correctly)?

SerialPort USB Object reference not set

I am trying to find a solution to the Known Issue Object Reference not Set to an instance of an object when the usb is connected for the first time, I know that if I disconect the usb and reconnect, the problem is gone, but my enviroment is that the USB will be always connected and I need an unattended enviroment, so Please could you help me find a solution for it? i was trying to disable the USB port and enable again but i didnt find any function to it.

Thank You and Kind Regards

Santiago Muñoz

License Conflict

I just noticed that the license for the IOTCoreDefaultApp is listed in its License.txt file as Lesser GPL, yet the code states that it is MIT-licensed. Which is it (and I really hope that the answer is MIT)? Thanks!

Serial sample -> No keyboard input on RPI2

Don't know if more people are experiencing this behavior, but using the serial sample I succeeded in using an USB to UART Bridge Controller based upon CP2102 and send/receive some bytes forth and back using xbees but I couldn't type in text in the write box when running the app on an RPI2 although the track pad mouse does work. Keyboard used is a Logitech K400r.

AllJoyn DSB configuration and CSP and MDM provider

Hi, based on the Microsoft's "AllJoyn -DSB whitepaper v1.0.pdf", it seems that System Center or InTune can use "MDM WMI bridge provider" -> AllJoyn Management "Configuration Service Provider" -> AllJoyn bus "com.microsoft.alljoynmanagement.config" to control the AllJoyn - DSB configuration.

Is this feature already implemented in the current release DSB sample codes?

I cannot find the corresponding "AllJoyn" CSP or MDM provider in the following 3 links:
https://msdn.microsoft.com/en-us/library/windows/hardware/dn920025%28v=vs.85%29.aspx
https://msdn.microsoft.com/en-us/library/dn905224(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/hardware/dn904985(v=vs.85).aspx .

Can anyone point me to the CSP and MDM WMI provider information about AllJoyn Management?

Thanks,
Chih-fan Hsin

AllJoyn DSB Adapter configuration and security

In my understanding, AdapterConfig::SetConfig() will overwrite "options.xml", that is used by OpenZWave SDK. I have the following 2 questions:

  1. After SetConfig(), the current implementation only updates “options.xml”. Shouldn’t the codes reset or restart the AllJoyn network to use the new configuration? I didn't see this part implemented in the codes.
  2. This options.xml file has a “NetworkKey” field that can be used for secure devices. See https://github.com/OpenZWave/open-zwave/wiki/Adding-Security-Devices-to-OZW . Not sure if current DSB implementation + ZWaveAdapterUAP demo codes support this or not for secure devices?
    Thanks,
    Chih-fan Hsin

DigitalSignageUAP will not deploy to Raspberry Pi

The döde compiles ok but I can't deploy it. I have set VS to ARM and Release and I was able to deploy the hello World APP.

This is my error:

Severity Code Description Project File Line
Error Error : DEP0800 : The required framework "C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs\Microsoft.Midi.GmDls\10.0.10240.0.\Appx\Neutral\MidiVoices.appx" failed to install.
error 0x800B010A: The root certificate and all intermediate certificates of the signature in the app package or bundle must be trusted. DigitalSignageUAP

Do I need to do something special with the included .pfx file? Or how can I get past this?

Thanks!

/Heidi Housten

IoTCoreDefaultApp Language Setting does not change input locale

IoTCoreDefaultApp Language Setting does not change input locale. For example the second part of the OOB Expirience is WIFI Network Password. All the UI there is presented in German language to me but I have to type in the Password as if i had an english Keyboard.

Windows Service for IoT ?

Is it possible to write a Service for the RPI 2 ? We want to automatically update our application from our repositorys.

AllJoyn DSB: BridgeRT codes

I am sorry about this post. This is not really an "issue", but a question. However, I don't know where else to post this question. The question is:
I am going through BridgeRT codes that come with DSB template. What are the relations between these codes and Windows.Devices.AllJoyn namespace APIs and the original AllJoyn framework SDK for Windows?
Are BridgeRT codes using AllJoyn framework SDK?
Since "searching in codes for Windows.Devices.AllJoyn" does not return any result, BridgeRT is probably not using Windows .Devices.AllJoyn APIs?
Are there some document about the overview design and interfaces and architecture of BridgeRT?
Thanks,
Chih-fan Hsin

Unnecessary value assignment in BlinkyWebServerExample - WebServerTask.cs#113

Issue

There is maybe an unnecessary value assignment at the BlinkyWebServerExample.

Source

 public HttpServer(int serverPort, AppServiceConnection appServiceConnection)
 {
            listener = new StreamSocketListener();
            port = serverPort; 
            appServiceConnection = appServiceConnection; //little bit confusing
            listener.ConnectionReceived += (s, e) => ProcessRequestAsync(e.Socket);
}

Links

IoTCoreDefaultApp does not deallocate allocated timer events

All the Pages with timers on them should change their code to correctly hook-up/un-hook the timer events.

Suggested code

    DispatcherTimer timer;

    public MainPage()
    {
        this.InitializeComponent();
        this.NavigationCacheMode = NavigationCacheMode.Enabled;

        timer = new DispatcherTimer();
        timer.Interval = TimeSpan.FromSeconds(30);

        this.Loaded += (sender, e) =>
        {
            timer.Tick += timer_Tick;
            timer.Start();
        };

        this.Unloaded += (sender, e) =>
        {
            timer.Stop();
            timer.Tick -= timer_Tick;
        };
    }

    private void timer_Tick(object sender, object e)
    {
        UpdateDateTime();
    }

AllJoyn DSB: OpenZWave library ported to WinRT?

Originally, OpenZWave library is a standard C/C++ library. Did Microsoft port the original OpenZWave library as a Static Library (C++/CX) to be used in UWP (Windows Runtime components)?
I am trying to figure out what tasks need to be done, if one wants to support other network protocol/framework for AllJoyn DSB. For example, if I want to expose 6LoWPAN devices to AllJoyn DSB, do I need to port the 6LoWPAN library to support UWP?

Thanks,
Chih-fan

DefaultApp - Network Information

The Network Information ListView layout is not good when IPv6 is enabled on network interfaces; and causes a wrap around layout issues.

433 Mhz sample

Hi guys,
a sample for receiving and sending 433 Mhz codes would be nice!

Any camera samples coming soon?

I'd like to interact with the Raspberry Pi camera but I don't see anything in the framework for this. Is there something I'm missing? Planning to release any examples soon on this?

If nothing available, would appreciate some info on how to get the Python library (https://github.com/waveform80/picamera) working with Windows 10. Thanks.

Only 1 AllJoyn background service can run on Win IoT at 1 time?

Originally, the in-box ZWaveBackgroundService is running. However, when I deployed the dummy AllJoyn AdapterBackgroundSerivce (created from DSBTemplate), ZWaveBackgroundService stoped automatically. I would imagine that multiple instances should be allowed to run, to support multiple devices. Can any one help on this issue?
Chih-fan

Working with MCP3008

In your convertToInt function of the TempSensor sample file, you have a comment that reads the following:

/*Uncomment if you are using mcp3208/3008 which is 12 bits output */

and actually, I read the MCP3008 is 10 bits... totally noob question here, but what should I use with the MCP3008? Is it a bug in the documentation or I just misunderstood what I've read so far?

Thanks

Vb Samples

I am having a terrible time attempting to convert the headless example (blinky) to vb.net . Is there any way to provide one example for vb that we can push from? For me, i have no plans to utilize the WPF portion and want to be able to use headless but just cannot seem to set it up correctly.

AllJoyn samples broken

ZWaveAdapter is not compiling now:

2>c1xx : fatal error C1083: Cannot open source file: '..\..\windows\winversion.cpp': No such file or directory

Latest AllJoynExplorer explorer app won't deploy when executing powershell script:

Windows cannot install package AJX.adff22a6-72bc-4137-be64-04899205e0a7 because this package depends on another package that couldn't be found. This package requires minimum version 1.0.23302.0 of framework Microsoft.NET.CoreRuntime.1.0 published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install; the frameworks with name Microsoft.NET.CoreRuntime.1.0 available to the user are Microsoft.NET.CoreRuntime.1.0_1.0.23302.0_x86__8wekyb3d8bbwe. Provide the correct framew
Windows cannot install package AJX.adff22a6-72bc-4137-be64-04899205e0a7 because this package depends on another package that couldn't be found. This package requires minimum version 1.0.23302.0 of framework Microsoft.NET.CoreRuntime.1.0 published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install; the frameworks with name Microsoft.NET.CoreRuntime.1.0 available to the user are Microsoft.NET.CoreRuntime.1.0_1.0.23302.0_x86__8wekyb3d8bbwe. Provide the correct framework along with this package.

Now if we only had source code instead of zips for the first one, we could see the history and fix it, and if we had actually source code for the second one, we could just F5-deploy from Visual Studio, but alas.

When to call AllJoyn AdapterLib::ZWaveAdapter::StartDeviceDiscovery()?

If my understanding is correct, AdapterLib::ZWaveAdapter::StartDeviceDiscovery() is only called in the following 2 situations:

  1. When the hosting app/service is starting up.
  2. When the ZWave SDK notifies Type_DriverRemoved/Failed.

What this means is that current DSB implementation (or at least this sample code) does not support "plug-and-play" type device addition. If a new ZWave device is added, after ZWaveAdapter hosting app/service is already running, then this new device won't be detected.

Is my understanding correct?
If my understanding is correct, is there any plan to modify current DSB implementation to support such "plug-and-play" scenario?

Thanks,
Chih-fan

AllJoyn DSB Template: AdapterBackgroundService deploy error.

I am trying to run the AllJoyn DSB template and follow the GpioDevice Sample Tutorial.
I can succesfully run AdapterHostApp on my Win10 PC. However, when I tried to deploy "AdapterBackgroundService" to a MBM Win IoT Core system, I got the following error:

Error : DEP0700 : Registration of the app failed. C:.......\App1AdapterBackgroundServiceVS.Debug_Win32.Tester\AppxManifest.xml(25,6): error 0x80070490: Cannot register the App1AdapterBackgroundService_1.0.0.0_x86__XXXXX package because the following error was encountered while parsing the App1AdapterBackgroundService application: Element not found. Try again and contact the package publisher if the problem persists. (0x80073cf6).

Can any one help?

Python libraries wingpio, winspi, wini2c not yet published?

Sorry if this is the wrong spot to raise an issue like this, but I'm hoping it can make it to the right folks. I'm checking out the Python IoT preview samples (PythonBlinky, PythonBlinkyServer) but I can't seem to find the source for the wingpio, winspi, and wini2c libraries that provide Python access to GPIO, SPi, I2C, etc. The readme.txt for the PTVS IoT preview mentions a repository that should be here:

To use GPIO, I2C or SPI from python project:
=============================================
Option 1 - Use source projects for extensions (useful in case you are building same app for multiple platforms)
=============================================
1. Enlist in http://github.com/ms-iot/python
2. Pull down entire project
3. Add projects (e.g. wingpio, winspi or wini2c) to your python solution
...

However it looks like http://github.com/ms-iot/python doesn't exist or is a private repo right now. If possible it would be great to make this available for folks to check out.

If the source isn't ready to be published yet, are there any docs that describe how to use those python libraries or their interface?

I'm curious to check them out because I create and maintain python modules for Adafruit that abstract away access to GPIO, I2C, SPI, etc. across multiple platforms and am curious about adding support for the new Windows IoT core system. The library (here) hides platform-specific hardware access behind a standard interface that other modules can code against and then easily run on various platforms (like the Raspberry Pi and Beaglebone Black). If I can add support for the Windows IoT core python libraries then a lot of fun hardware could easily work on win IoT, like TFT and OLED displays, LED matrices, temperature sensors, touch sensors, NFC readers and more.

Let me know if it's possible to share the Python windevices library code or at least interfaces. Thanks!

md files

Is it possible to have in each project a readme.md with a short project descriptions and dependencies?
:)Torsten

Memory leak in IoTCoreDefaultApp

iotcoredeafaultapp

iotcoredeafaultapp2

iotcoredeafaultapp3

Running IoTCoreDefaultApp on both the Pi and the Desktop creates a memory leak when navigating to/from the Tutorials page.

Reproduction:

Run IoTCoreDefaultApp and observe the memory used (via Visual Studio on the Desktop, http://192.168.1.19:8080/SystemPerformance.htm on the Pi).

Navigating between Tutorials and Device Info (and around inside Tutorials) causes memory to be allocated and never released. This is even true after GC.

AllJoyn Adapter Host App - Error a value of type "BridgeRT::IAdapterValue ^" cannot be used to initialize an entity of type "AdapterLib::AdapterValue ^" AdapterLib

Severity Code Description Project File Line
Error C2440 'initializing': cannot convert from 'BridgeRT::IAdapterValue ^' to 'AdapterLib::AdapterValue ^' AdapterLib D:\Projects\Windows-universal-samples\SampleAllJoynApp\SampleAllJoynApp\AdapterLib\Adapter.cpp 172

Severity Code Description Project File Line
Error IntelliSense: a value of type "BridgeRT::IAdapterValue ^" cannot be used to initialize an entity of type "AdapterLib::AdapterValue ^" AdapterLib d:\Projects\Windows-universal-samples\SampleAllJoynApp\SampleAllJoynApp\AdapterLib\Adapter.cpp 172

I2C Compass sample

Hey,

First off, thanks for the samples! Very helpful...

Time to give something back: an I2C Compass sample that uses the Honeywell HMC5883L magnetometer IC. I created the project from scratch with VS 2015 RTM.

I´m more of a TFS guy and I'm not sure how to submit the code over to you guys, so here´s the link from a repo I created: https://github.com/reneherrero/Windows10-IoT-Samples/tree/master/I2CCompass

I put it under an MIT license, let me know if that doesn´t work...

Hope it helps!

René

AllJoyn Explorer: slow to show info after clicking an adapter or a device

I am using Win 10 Pro Build 10074 64 bit and AllJoyn Explorer 1.0.0.0.
I have AllJoyn DSB (dummy virtual device and/or ZWave sample) running, on the same Win 10 Pro build. When I open AllJoyn Explorer, it finds the adapters and devices pretty fast. However, when I click the adapter or the device, it takes "A LONG TIME" for the AllJoyn Explorer to respond to get to the target information page.
Is this normal? This is too slow to be usable in real scenario.
Thanks,
Chih-fan

AllJoyn\ZWaveAdapter\ZWaveAdapterTestApp failed to run.

Hi, I am trying to do a local debug run of ZWaveAdapterTestApp on my Win 10 PC. It failed at Line 376 of ZWaveAdapterTest.cpp file, when it calls
status = this->adapter->GetConfiguration(&configData);

The error is:
WinRT information: An item cannot be found at the specified path (C:...........\localState\options.xml)...

Is the TestApp project missing some files?

A more general question: the document available does not talk about this TestApp project. What does this TestApp project do?

Chih-fan

Python Blinky docs wrong

Some (all?) of the Python example projects do not have a reference to _wingpio.pyd built in although the docs say that they do.

Either a ref needs adding to the projects or the docs need changing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.