Page 1 of 1

Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Posted: Tue 20. Feb 2018, 11:31
by ranjithreddy
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.

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Posted: Tue 20. Feb 2018, 12:02
by K.Wagner
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.

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Posted: Tue 20. Feb 2018, 12:33
by ranjithreddy
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.

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Posted: Tue 20. Feb 2018, 13:44
by K.Wagner
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.

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Posted: Sun 22. Nov 2020, 20:54
by mate0117
Hello,

Is there any news on supporting UWP in the driver?

Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project

Posted: Mon 23. Nov 2020, 08:44
by K.Wagner
Hello,

UWP stays unsupported. We have no plans right now to give support on this.