Page 1 of 1

Drivers loaded and running but receiving NO_DRIVER error

Posted: Tue 24. Sep 2019, 23:16
by bwhelan
Hi,

I have the Peak drivers for my PCAN-PCI/104-Express FD board loaded onto the CPU of my PC/104 stack. I can confirm these drivers are running with devcon.exe status.

However, when I set up a test program to try using the PCANBasic library to initialize my PCAN board, It returns a NO_DRIVER error (seen below)
http://prntscr.com/pai7cc

Is there a step I have missed in enabling the driver? It says it is running and I have restarted the system to be sure.

Thanks for your help.

Re: Drivers loaded and running but receiving NO_DRIVER error

Posted: Wed 25. Sep 2019, 08:38
by K.Wagner
Hello,

are you trying to create a universal app? Please note that our drivers are "Desktop drivers" and are not compatible with the universal platform. You will always get the error NO_DRIVER when doing so.

Re: Drivers loaded and running but receiving NO_DRIVER error

Posted: Wed 25. Sep 2019, 14:15
by bwhelan
Yes I am using a UWP app. So even though they say they are running on the system they won't work with UWP when I have the PCANBasic.cs API in it as well?

What is the reason for this incompatibility? is it .NET Core or a .NET Framework incompatibility? What would the best solution to not stray too far from my current implementation goals?

I am not sure what you mean by Desktop drivers specifically. In what configuration would I be able to use these drivers? Since the PCI/104 board that I am using them on is not a desktop, what OS or software platform could I use them on?

Thanks!

Re: Drivers loaded and running but receiving NO_DRIVER error

Posted: Wed 25. Sep 2019, 14:59
by K.Wagner
Hello,
bwhelan wrote:Yes I am using a UWP app. So even though they say they are running on the system they won't work with UWP when I have the PCANBasic.cs API in it as well?
Correct. They are installed and available for the desktop platform, not for UWP.
bwhelan wrote:What is the reason for this incompatibility? is it .NET Core or a .NET Framework incompatibility?
Windows desktop applications and UWP applications work different, i.e. they target different "frameworks". UWP works in a kind of sandbox, with less resources and more restrictions than normal desktop applications. For this reason each platform needs some special treatment. For a device this means having a driver for each, windows desktop platform and/or universal Windows platform.
bwhelan wrote:What would the best solution to not stray too far from my current implementation goals?
I don't know your goals, but if you want to use C# for programming and XAML for design, then the best you can use is Windows Presentation Foundation (WPF).
bwhelan wrote:I am not sure what you mean by Desktop drivers specifically. In what configuration would I be able to use these drivers? Since the PCI/104 board that I am using them on is not a desktop, what OS or software platform could I use them on?
You can use these drivers in following operating system: Windows 7, Windows 8.1 Windows 10, and Windows IoT Enterprise.
You cannot use these drivers on: Windows IoT

You can use following Technologies for accessing the device drivers: Windows Forms, Windows Presentation Foundation, Win32.
You cannot use following .NET technologies for accessing the device drivers: Universal Windows Platform (UWP)

Re: Drivers loaded and running but receiving NO_DRIVER error

Posted: Wed 25. Sep 2019, 15:06
by bwhelan
Thank you for the very detailed response. I know I had a lot of questions. I very much appreciate your time. :D

Just to confirm then, if I were to use Windows 10 IoT Enterprise, the drivers would work. Just not with UWP? I would have to select another platform?

Re: Drivers loaded and running but receiving NO_DRIVER error

Posted: Wed 25. Sep 2019, 16:00
by K.Wagner
Hello,
bwhelan wrote:Thank you for the very detailed response.
you're welcome.
bwhelan wrote:Just to confirm then, if I were to use Windows 10 IoT Enterprise, the drivers would work. Just not with UWP? I would have to select another platform?
Yes