Tutorial: Fixed channel assignment with PCAN-PCI devices

This forum covers issues concerning multiple hardware products.
Post Reply
G.Lang
Support
Support
Posts: 164
Joined: Wed 22. Sep 2010, 14:58

Tutorial: Fixed channel assignment with PCAN-PCI devices

Post by G.Lang » Thu 24. Oct 2013, 15:56

IMPORTANT: This does not apply to PCIe based devices anymore.
The references given regarding PCIe based devices are outdated,
please see the following Forum-thread regarding this:

viewtopic.php?f=120&t=5914



When using multiple PCI or PCIexpress based cards on the same machine sometimes it is necessary to fix a net to a specific card/channel independent from the sequence these cards are initialized from the BIOS after power-up. The following steps must be taken to accomplish that:

Each PCI based card has a unique combination of Bus-ID, Device-ID (= Geräte-ID) and channel number. To get the necessary infos please start the PCAN2 icon from the control panel
pcan2.JPG
pcan2.JPG (9.08 KiB) Viewed 54944 times
get_device_infos.JPG
get_device_infos.JPG (53.02 KiB) Viewed 54944 times
or start the PCAN-View
get_device_infos1.JPG
get_device_infos1.JPG (51.64 KiB) Viewed 54944 times
With these values it´s possible to create a registry key. Here are an example with 2 PCI cards (one card with 2 channels and Bus ID 7 and one card with 4 channels and Bus ID 6)

The following keys must be created:

"Hardware16"="0x101,6,0,0,0" Note: channel 1 of the 4-channel card
"Hardware15"="0x101,6,0,0,1" Note: channel 2 of the 4-channel card
"Hardware14"="0x101,6,0,0,2" Note: channel 3 of the 4-channel card
"Hardware13"="0x101,6,0,0,3" Note: channel 4 of the 4-channel card
"Hardware12"="0x101,7,0,0,0" Note: channel 1 of the 2-channel card
"Hardware11"="0x101,7,0,0,1" Note: channel 2 of the 2-channel card
registry_values.JPG
registry_values.JPG (112.45 KiB) Viewed 54944 times
scheme: Hardware<handle>=<drivertypecode>,<busnr>,<device>,<function>,<controllernr>

Description of Parameter 1:
Note: The hardware handle for plug-´n-play devices starts with 16 and decrements by 1 with every CAN channel
Hardware16 = HardwareHandle16
Hardware15 = HardwareHandle 15
.....
Hardware8 = HardwareHandle8
.....
Hardware1 = HardwareHandle1
 
Description of Parameter 2:
0x101 = PCAN-PCI and PCAN-PCIexpress with TundraChip
0x102 = PCAN-ExpressCard
0x104 = PCAN-cPCI


Note: if you are unsure, please contact us via email and tell us your serial number

Description of Parameter 3:
please use the device number form the screenshot above

Description of Parameter 4:
use always "0"

Description of Parameter 5:
0 = Channel 1
1 = Channel 2
2 = Channel 3
3 = Channel 4

after this reboot your computer and verify that your settings were done
fixed_net.JPG
fixed_net.JPG (64.84 KiB) Viewed 54944 times

guusveek
Posts: 2
Joined: Thu 15. Jun 2017, 11:02

Re: Fixed channel assignment with PCAN-PCI

Post by guusveek » Thu 15. Jun 2017, 11:14

I have tried this but with no succes
I have 2 PCI cards and 1 PCI express I like to have the 2 PCI cards as channels 1 throuh 4 and the PCI express as channel 5 through 8 now I have PCI card 1 for channels 1 and 2 then the PCI express and last the second PCI card.
I have the following keys defined:
Hardware09 REG_SZ 0x101,3,0,0,3
Hardware10 REG_SZ 0x101,3,0,0,2
Hardware11 REG_SZ 0x101,3,0,0,1
Hardware12 REG_SZ 0x101,3,0,0,0
Hardware13 REG_SZ 0x101,5,2,0,1
Hardware14 REG_SZ 0x101,5,2,0,0
Hardware15 REG_SZ 0x101,5,1,0,1
Hardware16 REG_SZ 0x101,5,1,0,0
But still no change it stays PCI card1 ch 1and 2 then PCI express for 3 through 6 and PCI card 2 for channel 7 and 8.
How to fix this?
Regards,
Guus

guusveek
Posts: 2
Joined: Thu 15. Jun 2017, 11:02

Re: Fixed channel assignment with PCAN-PCI

Post by guusveek » Thu 15. Jun 2017, 13:46

Hello,

I got it working had to use 0x103 for the PCI express card and 0x101 for the PCI card.

Thanks
Guus

User avatar
PEAK-Supporter
Sales & Support
Sales & Support
Posts: 1647
Joined: Fri 10. Sep 2010, 19:34

Re: Fixed channel assignment with PCAN-PCIexpress

Post by PEAK-Supporter » Fri 16. Jun 2017, 09:31

I got it working had to use 0x103 for the PCI express card and 0x101 for the PCI card.
that is exact what Gunter wrote in his post:
Description of Parameter 2:
0x101 = PCAN-PCI and PCAN-PCIexpress with TundraChip
0x102 = PCAN-ExpressCard
0x103 = PCAN-PCIexpress without Tundra (FPGA solution)
0x108 = PCAN-miniPCIe
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

G.Lang
Support
Support
Posts: 164
Joined: Wed 22. Sep 2010, 14:58

Re: Fixed channel assignment with PCAN-PCIexpress

Post by G.Lang » Tue 31. Jul 2018, 15:14

Updated list for parameter 2 (CAN_GetDriverName)

PCI and PCIexpress based cards

0x101 = PCAN-PCI

0x101 = PCAN-PCI Express (the Tundra powered version, sold till ~2014)

0x101 = PCAN-PC/104-Express (the Tundra powered version, sold till ~2014)

0x101 = PCAN-PC/104-Plus
0x106 = PCAN-PC/104-Plus Quad (4-channel version)

0x101 = PCAN-cPCI

0x101 = PCAN-miniPCI

0x102 = PCAN-ExpressCard

USB based interfaces

0x201 = PCAN-USB
0x201 = PCAN-USB ISO
0x207 = PCAN-USB FD

0x202 = PCAN-USB Pro
0x206 = PCAN-USB Pro FD

0x201 = PCAN-USB Hub

0x209 = PCAN-USB X6

0x208 = PCAN-Chip USB


PC Card based cards

0x401 = PCAN-PC Card

Post Reply