Available for: Windows, On Linux use socketcan
Driver for Windows vscpl1_peakdrv.dll (vscpl1_peakdrv.lib)
This is a device driver for the PEAK family of cards.
The driver uses proprietary include files and libraries from PEAK which are not included in the distribution.
The driver is included in the installation of the VSCP and friends. Source for the driver is available in the source distribution.
Note that before you use this driver the PEAK original driver dll(s) for your particular adapter(s) must be in the dll search path. These DLL's are delivered from PEAK with your adapter. A good place to install them is in the windows system32 folder. The following table show the dll needed by the CANAL driver for each adapter
This is a device driver for the PEAK family of cards that must have appropriate dll's on your system for the driver to work.
|Adapter||PEAK DLL that is needed|
The driver string has the following format (note that all values can be entered in either decimal or hexadecimal form (for hex precede with 0x).
To use default values just skip parameters. board is the only mandatory parameter.
This is one of the following
- CANDONGLE or 0 for LPT port adapter
- CANDONGLEPRO or 1 for LPT port adapter (PRO version)
- CANISA or 2 for ISA adapter
- CANPCI or 3 for 1 channel PCI adapter
- CANPCI2 or 4 for 2 channel PCI adapter
- CANUSB or 5 for USB adapter
This is the speed for the CAN bus. It can be given as
- 5 for 5 Kbps
- 10 for 10 Kbps
- 20 for 20 Kbps
- 50 for 50 Kbps
- 100 for 100 Kbps
- 125 for 125 Kbps
- 250 for 250 Kbps
- 500 for 500 Kbps
- 800 for 800 Kbps
- 1000 for 1000 Mbps
Only valid for non PNP cards
- 2 - dongle
- 3 - epp
- 5 - sja
- 6 - sja-epp
- 7 - dongle pro
- 8 - epp
- 1 - ISA
- 9 – SJA
For ISA and parallel port adapters this is the hardware port address
This is the interrupt to use for non PNP devices.
Is a value from 0 an up indicating the CAN channel on the selected board.
Is the hardware dependent filter for this board hardware. Note that this filter may work in a different way than the CANAL filter.
Is the hardware dependent mask for this board hardware. Note that this filter may work in a different way than the CANAL filter.
0 11 bit identifier mode
1 11/29 bit identifier mode (Use for VSCP)
The CanalGetStatus call returns the status structure with the channel_status member having the following meaning:
- Bit 0-15 PEAK Adapter specific (Taken from the CAN_Status method).
- Bit 16-28 Reserved.
- Bit 29 Reserved.
- Bit 30 Bus Warning status (repeated from bit 6) .
- Bit 31 Bus off status (repeat from bit 7).
For the CANUSB adapter use
which says to use the CANUSB adapter at port 0 and 500 kbps.
If you have two adapters use
for the second adapter.
This document is licensed under Creative Commons BY 4.0 and can be freely copied, redistributed, remixed, transformed, built upon as long as you give credits to the author.