Page 1 of 1

Software reset of PCAN-USB using PCAN-Basic ?

Posted: Wed 11. Apr 2012, 09:47
by A.Kapp
Dear Sir or Madam,

I am using PCAN-USB together with PCAN-Basic (Windows 7, Python 2.6).

In the following situation I get a significant difference between PCAN-Basic and PCAN-View (using the developper package):
  • 1. external device (with CAN interface) is switched off
    2. computer and external device are connected using PCAN-USB
    3. external device is switched on
Messages can be sent via CAN using PCAN-Basic.
However, incoming messages are not recognized by PCAN-Basic, only by PCAN-View.
The problem is solved when the PCAN-USB adaptor is re-mounted.
  • Why can PCAN-View read the messages whereas PCAN-Basic cannot?
  • Is it possible to "reset" the PCAN-USB adaptor by the PCAN-Basic software (not by devcon)?
Regards,

Andreas

Re: Software reset of PCAN-USB using PCAN-Basic ?

Posted: Wed 11. Apr 2012, 10:49
by M.Maidhof
Hi,

which version of the PCANBasic.dll do you use? This problem looks like an application based issue, please check with PCAN-Status Display (from your PCAN-Developer package) the filter and queues settings of your application. Did your application receive a BUSOFF status message with CAN_Read()?

regards

Michael

Re: Software reset of PCAN-USB using PCAN-Basic ?

Posted: Wed 11. Apr 2012, 13:29
by A.Kapp
Hello,
which version of the PCANBasic.dll do you use?
I am using PCANBasic.dll dating from 17th August 2011 (PCAN-API-Version: 1, 2, 1, 31).
Did your application receive a BUSOFF status message with CAN_Read()?
From now on I will check first if I get a busoff status message.

Sorry, that my initial message was unclear: I do not have the PCAN-Developer package.
Is it possible to check and set the filter and queue settings with PCAN-Basic only?

Regards,

Andreas

Re: Software reset of PCAN-USB using PCAN-Basic ?

Posted: Wed 11. Apr 2012, 13:43
by M.Maidhof
Hi,

when you don't have the PCAN-Developer package you don't have those test tools available. Please check with one of our demo source samples(C, C#, etc.) if you have the same issue on your system. The date of the dll and the version you told us doesn't fit together, so please download the latest version 1.2.2.32 from the following link: http://www.peak-system.com/fileadmin/me ... -basic.zip

regards

Michael