Interface on PCAN USB X6 hangs completly

CAN Development Packages for Windows®
Post Reply
martinmoe
Posts: 7
Joined: Fri 19. May 2017, 11:58

Interface on PCAN USB X6 hangs completly

Post by martinmoe » Tue 6. Feb 2018, 08:03

I am using CANAPI 4.1.2, PCAN Driver 4.1.3 to run PCAN USB X6 FW 2.2.3 on Windows 7.

Symptom: After some time of operation the interfaces CAN 1 and CAN 2 are not working any more. Even after CAN_ResetHardware the problem persists and the interfaces are permanently in Bus-Off state. PCAN-View traces lots of bit errors. Only deactivating/reactivating the USB device in Windows or detaching/attaching USB cable restores the functionality to send messages.
Some time after this state and after some plugging around with the USB cable the computer finally blue-screened (crashed) with DRIVER_IRQL_NOT_LESS_OR_EQUAL in pcan_usb.sys.

Cause: I finally found out what caused the behaviour: Setting CAN_PARAM_LISTEN_ONLY on an interface that is currently in operation (receiving messages).

For now I must stop using CAN_PARAM_LISTEN_ONLY to "disable" interfaces and stick to CAN_DisconnectFromNet with the drawback introducing device-wide latency of 20 ms upon every activation.

I would appreciate:
  • Investigation of the exact reason
  • Suggestion of a proper temporary workaround

Thanks in advance,
Martin Mödlinger

M.Maidhof
Support
Support
Posts: 1300
Joined: Wed 22. Sep 2010, 14:00

Re: Interface on PCAN USB X6 hangs completly

Post by M.Maidhof » Tue 6. Feb 2018, 11:00

Hi,

thanks for the info. As a first step, please update the PCAN-USB X6 to the latest firmware version 3.2.0. Please send an email to our support address, to be able to send you the needed information.

Next please check the used USB3 drivers on your Windows 7 system and update it to the latest version

regards

Michael

martinmoe
Posts: 7
Joined: Fri 19. May 2017, 11:58

Re: Interface on PCAN USB X6 hangs completly

Post by martinmoe » Tue 6. Feb 2018, 11:08

Driver Version for USB 3.0 is Intel version 2.0.0.102. This version schould be OK as mentioned in this forum.

I will do the Firmware Update and report the results.


Martin

martinmoe
Posts: 7
Joined: Fri 19. May 2017, 11:58

Re: Interface on PCAN USB X6 hangs completly

Post by martinmoe » Tue 6. Feb 2018, 13:33

I have updated the Firmware of all 3 USB devices in the PCAN-USB X6 from 2.2.3 to 3.2.0.

Running the very same application now seems to work, even with setting the parameter CAN_PARAM_LISTEN_ONLY during operation.

Now I need to find a way of performing the Firmware Update programmatically out of our application with no user interaction.


Martin

M.Maidhof
Support
Support
Posts: 1300
Joined: Wed 22. Sep 2010, 14:00

Re: Interface on PCAN USB X6 hangs completly

Post by M.Maidhof » Tue 6. Feb 2018, 15:33

Hi,

why do you want to do this programmatically? Do you have hundreds of PCAN-USB X6 to flash?

regards

Michael

martinmoe
Posts: 7
Joined: Fri 19. May 2017, 11:58

Re: Interface on PCAN USB X6 hangs completly

Post by martinmoe » Tue 6. Feb 2018, 17:03

Hi,

not hundreds, but dozens. And it HAS to be automatically (scriptable or programmatically). There is no display, keyboard or mouse on the target machines, neither the possiblity of Windows Desktop remote access.

I can achieve the file copying and "ejecting the media". I would just need to know how to put a device into "bootloader mode". Must be some IOCTL.

The alternative is keeping the old Firmware 2.2.3 and working around the LISTEN_ONLY problem.


Regards,
Martin

M.Maidhof
Support
Support
Posts: 1300
Joined: Wed 22. Sep 2010, 14:00

Re: Interface on PCAN USB X6 hangs completly

Post by M.Maidhof » Wed 7. Feb 2018, 11:13

Hi,

ok, makes sense. If you are an owner of a PCAN-Developer 4 package, we can provide you with the needed information. Please contact our support by email, with reference to this thread and your PCAN-Developer 4 serialnumber.

regards

Michael

Post Reply