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.
Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project
-
- Posts: 2
- Joined: Tue 20. Feb 2018, 11:04
Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project
- Attachments
-
- PCANBasic.cs
- PCANBasic dll
- (31.43 KiB) Downloaded 781 times
-
- MainPage.xaml.cs
- TestFile
- (5.97 KiB) Downloaded 776 times
Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project
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.
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
Keneth
-
- Posts: 2
- Joined: Tue 20. Feb 2018, 11:04
Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project
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
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.
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
Keneth
Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project
Hello,
Is there any news on supporting UWP in the driver?
Is there any news on supporting UWP in the driver?
Re: Getting PCAN_ERROR_NODRIVER on Windows 10 UWP Project
Hello,
UWP stays unsupported. We have no plans right now to give support on this.
UWP stays unsupported. We have no plans right now to give support on this.
Best regards,
Keneth
Keneth