UWP App GpioController.GetDefault() always returns null
up vote
1
down vote
favorite
What can be the reason that in my App GpioController.GetDefault()
always returns null? The app is running on a RPI3b (as other Apps have done before.... never ran into this?!)
var gpioController = GpioController.GetDefault();
// gpio controller is null ... why?!
ServiceContainer.Instance.Register(new IO(gpioController));;
c# uwp gpio
add a comment |
up vote
1
down vote
favorite
What can be the reason that in my App GpioController.GetDefault()
always returns null? The app is running on a RPI3b (as other Apps have done before.... never ran into this?!)
var gpioController = GpioController.GetDefault();
// gpio controller is null ... why?!
ServiceContainer.Instance.Register(new IO(gpioController));;
c# uwp gpio
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
What can be the reason that in my App GpioController.GetDefault()
always returns null? The app is running on a RPI3b (as other Apps have done before.... never ran into this?!)
var gpioController = GpioController.GetDefault();
// gpio controller is null ... why?!
ServiceContainer.Instance.Register(new IO(gpioController));;
c# uwp gpio
What can be the reason that in my App GpioController.GetDefault()
always returns null? The app is running on a RPI3b (as other Apps have done before.... never ran into this?!)
var gpioController = GpioController.GetDefault();
// gpio controller is null ... why?!
ServiceContainer.Instance.Register(new IO(gpioController));;
c# uwp gpio
c# uwp gpio
asked Sep 7 '17 at 13:42
bas
7,51594896
7,51594896
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
3
down vote
accepted
Found the issue. It was in Windows IoT configuration itself. There is a "default controller driver" in the devices tab. It was set to a DMA driver. Changing it to "Inbox driver" and rebooting the Pi solved the problem.
add a comment |
up vote
1
down vote
If you want to use the DMA driver which offers better performances, you need to activate/declare it to the API before querying the GpioControleler
// This needs the following capabilities
// <iot:Capability Name="lowLevelDevices" />
// <DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>
if (LightningProvider.IsLightningEnabled)
{
LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
}
var gpioController = GpioController.GetDefault();
// gpioController is valid
See Lightning Providers
for more details
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Found the issue. It was in Windows IoT configuration itself. There is a "default controller driver" in the devices tab. It was set to a DMA driver. Changing it to "Inbox driver" and rebooting the Pi solved the problem.
add a comment |
up vote
3
down vote
accepted
Found the issue. It was in Windows IoT configuration itself. There is a "default controller driver" in the devices tab. It was set to a DMA driver. Changing it to "Inbox driver" and rebooting the Pi solved the problem.
add a comment |
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Found the issue. It was in Windows IoT configuration itself. There is a "default controller driver" in the devices tab. It was set to a DMA driver. Changing it to "Inbox driver" and rebooting the Pi solved the problem.
Found the issue. It was in Windows IoT configuration itself. There is a "default controller driver" in the devices tab. It was set to a DMA driver. Changing it to "Inbox driver" and rebooting the Pi solved the problem.
answered Sep 7 '17 at 13:59
bas
7,51594896
7,51594896
add a comment |
add a comment |
up vote
1
down vote
If you want to use the DMA driver which offers better performances, you need to activate/declare it to the API before querying the GpioControleler
// This needs the following capabilities
// <iot:Capability Name="lowLevelDevices" />
// <DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>
if (LightningProvider.IsLightningEnabled)
{
LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
}
var gpioController = GpioController.GetDefault();
// gpioController is valid
See Lightning Providers
for more details
add a comment |
up vote
1
down vote
If you want to use the DMA driver which offers better performances, you need to activate/declare it to the API before querying the GpioControleler
// This needs the following capabilities
// <iot:Capability Name="lowLevelDevices" />
// <DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>
if (LightningProvider.IsLightningEnabled)
{
LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
}
var gpioController = GpioController.GetDefault();
// gpioController is valid
See Lightning Providers
for more details
add a comment |
up vote
1
down vote
up vote
1
down vote
If you want to use the DMA driver which offers better performances, you need to activate/declare it to the API before querying the GpioControleler
// This needs the following capabilities
// <iot:Capability Name="lowLevelDevices" />
// <DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>
if (LightningProvider.IsLightningEnabled)
{
LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
}
var gpioController = GpioController.GetDefault();
// gpioController is valid
See Lightning Providers
for more details
If you want to use the DMA driver which offers better performances, you need to activate/declare it to the API before querying the GpioControleler
// This needs the following capabilities
// <iot:Capability Name="lowLevelDevices" />
// <DeviceCapability Name="109b86ad-f53d-4b76-aa5f-821e2ddf2141"/>
if (LightningProvider.IsLightningEnabled)
{
LowLevelDevicesController.DefaultProvider = LightningProvider.GetAggregateProvider();
}
var gpioController = GpioController.GetDefault();
// gpioController is valid
See Lightning Providers
for more details
answered Nov 11 at 20:53
Vincent
2,99411627
2,99411627
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46097961%2fuwp-app-gpiocontroller-getdefault-always-returns-null%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown