Channels swapping at boot with 2 cards installed

CAN-Interface for PCI Express Mini
Post Reply
alienarcdn
Posts: 1
Joined: Wed 14. Mar 2018, 14:48

Channels swapping at boot with 2 cards installed

Post by alienarcdn » Wed 14. Mar 2018, 15:06

Is there a known issue with the drivers swapping the order it assigns channels to physical cards?

I am running on Windows 10 and using the PCAN Basic dll.

I have a system with 2 miniPCIe cards installed. I'm using the API to access the cards. With the two cards installed I have 4 channels available: (card 1) 0x41 & 0x42, & (card 2) 0x43 & 0x44

I have code that issues a connect to channel 0x41 & 0x42 that are physically connected to two external networks. On reboot I find that the assignment of channels is swapped between card 1 and 2, so my physical connections are now reversed in the API (i.e. I have to either physically move the cables from card 1 to card 2, or swap 0x41 with 0x43 and 0x42 with 0x44 in code). on another reboot they swap back.

I'm still testing to see if this happens every time, or randomly, but I wanted to see if this is a known issue with either the drivers or PCAN Basic.

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

Re: Channels swapping at boot with 2 cards installed

Post by M.Maidhof » Wed 14. Mar 2018, 16:33

Hi,

yes, when using several cards, it could happen that during a reboot, Windows will enumerate the cards in a different order. To fix the enumeration, please see the following post:

http://www.peak-system.com/forum/viewto ... f=15&t=998

regards

Michael

Post Reply