Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

USB to CAN Interface
Post Reply
ranjithreddy
Posts: 2
Joined: Tue 20. Feb 2018, 11:04

Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Post by ranjithreddy » Tue 20. Feb 2018, 11:31

Hello,

Currently I am working on Porting existing Windows Forms project to Windows 10 (UWP) Project. The programming language is C#. UWP-> Universal Windows Platform. When I am trying to use same piece of code which was used earlier I am receiving the PCAN_ERROR_NODRIVER error. Do PCAN has support for Windows 10 UWP?

If i try the same piece of sample code in winforms it works fine but not in UWP.
for (int i = 0; i < m_HandlesArray.Length; i++)
{
// Includes all no-Plug&Play Handles
if (m_HandlesArray <= PCANBasic.PCAN_DNGBUS1) { }
// cbbChannel.Items.Add(FormatChannelName(m_HandlesArray));
else
{
// Checks for a Plug&Play Handle and, according with the return value, includes it
// into the list of available hardware channels.
stsResult = PCANBasic.GetValue(m_HandlesArray, TPCANParameter.PCAN_CHANNEL_CONDITION, out iBuffer, sizeof(UInt32));
if ((stsResult == TPCANStatus.PCAN_ERROR_OK) && (iBuffer == PCANBasic.PCAN_CHANNEL_AVAILABLE))
// I dont get iBuffer =1 that is what the reason I am suspecting
FormatChannelName(m_HandlesArray);
}
}


private void InitPCANDriver_Click(object sender, RoutedEventArgs e)
{
TPCANStatus stsResult;
m_PcanHandle = 81;
m_Baudrate = TPCANBaudrate.PCAN_BAUD_500K;

// Connects a selected PCAN-Basic channel

//stsResult = PCANBasic.Initialize(
// m_PcanHandle,
// m_Baudrate,
// m_HwType,
// Convert.ToUInt32(cbbIO.Text,16),
// Convert.ToUInt16(cbbInterrupt.Text));

stsResult = PCANBasic.Initialize(m_PcanHandle, m_Baudrate);

if (stsResult != TPCANStatus.PCAN_ERROR_OK)
{ }
//MessageBox.Show(GetFormatedError(stsResult));
else
{ }

}
Also i am using the Latest PEAK-Drivers 4.1.3. Also attached the .cs files for your reference.
Please do the needful at the earliest.
Attachments
PCANBasic.cs
PCANBasic dll
(32.31 KiB) Downloaded 387 times
MainPage.xaml.cs
TestFile
(6.15 KiB) Downloaded 383 times

K.Wagner
Software Development
Software Development
Posts: 767
Joined: Wed 22. Sep 2010, 13:36

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Post by K.Wagner » Tue 20. Feb 2018, 12:02

Hello,

Neither PCAN-Basic nor the drivers 4.1.3 are suitable for UWP development. We are already working in new versions that support UWP. There is still no tentative release date for this.
Best regards,
Keneth

ranjithreddy
Posts: 2
Joined: Tue 20. Feb 2018, 11:04

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Post by ranjithreddy » Tue 20. Feb 2018, 12:33

Could you please tell us the time frame as we have started working on UWP Project and we may be required to commit to our Stakeholders. Tentative timelines also should be ok so that we will align our Project Planning.

K.Wagner
Software Development
Software Development
Posts: 767
Joined: Wed 22. Sep 2010, 13:36

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Post by K.Wagner » Tue 20. Feb 2018, 13:44

As I wrote, I cannot give this information. This depends on several internal projects. Any date that I can tell you will be potentially wrong.

Subscribe to our RSS feed to stay automatically informed. News about product releases as well as software, API, and driver updates are published regularly.
Best regards,
Keneth

mate0117
Posts: 1
Joined: Sun 22. Nov 2020, 20:47

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Post by mate0117 » Sun 22. Nov 2020, 20:54

Hello,

Is there any news on supporting UWP in the driver?

K.Wagner
Software Development
Software Development
Posts: 767
Joined: Wed 22. Sep 2010, 13:36

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Post by K.Wagner » Mon 23. Nov 2020, 08:44

Hello,

UWP stays unsupported. We have no plans right now to give support on this.
Best regards,
Keneth

Post Reply