Connect more than 10 PCAN-USB adapter to communicat over UDS

USB to CAN Interface
Post Reply
Oprogramer
Posts: 29
Joined: Mon 6. Nov 2017, 13:31

Connect more than 10 PCAN-USB adapter to communicat over UDS

Post by Oprogramer » Mon 9. Apr 2018, 14:30

Hello,

i am trying to connect more than 10 PCAN-USB adapters for UDS communication. I have read that it is possible to create and connect to 16 PCAN-USB interfaces with interface channels from PCAN-USBBUS1 - PCAN-USBBUS16.

But I have to create and connect to more than 10 PCAN-USB adapters over UDS and i only found 9 channels for UDS-Communication from PUDS_USBBUS1 to PUDS_USBBUS9.

Is there any why to connect to more than 10 PCAN-USB adapters for UDS communication?


Best regards

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by K.Wagner » Mon 9. Apr 2018, 15:01

Hello,

PCAN-UDS can handle as many channels as PCAN-Basic (underlying transport layer API). The latest version of these APIs allow up to 16 USB channels simultaneously. If you cannot use more than 9 channels at a time is possible because your system has no resources enough to support more than 9 USB devices at a time.

Please check that:
  1. All PCAN-USB devices attached to your computer have the power LED on
  2. All PCAN-USB devices attached to your computer are also listed in the Windows device manager, i.e. within the node "CAN-Hardware"
  3. Neither any of the CAN-Hardware entries nor the USB controllers (Windows device manager, node USB-Controllers) are showing any warning.
Note: I have just tested with 2 PCAN-USB X6 devices (12 channels in total) and I could connect all of them.
Best regards,
Keneth

Oprogramer
Posts: 29
Joined: Mon 6. Nov 2017, 13:31

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by Oprogramer » Mon 9. Apr 2018, 15:35

Hello,

Thank you for the fast answer. I have the older PCAN-UDS Api version where just 9 Channels could be used.

I will download and install the new PCAN-UDS Api version.

Thank you for the information!


Best regards

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by K.Wagner » Mon 9. Apr 2018, 15:40

Please note that older versions of PCAN-UDS/PCAN-Basic could handle up to eight (8) channels; new versions up to sixteen (16). But there was never a version handling 9 channels!
Best regards,
Keneth

Oprogramer
Posts: 29
Joined: Mon 6. Nov 2017, 13:31

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by Oprogramer » Tue 17. Apr 2018, 12:30

Hello again,

I checked the serial numbers of my PCAN-USB Adapters and i have the older PCAN-USB Adapters with serial numbers untill 199999. It is possible for the PCAN-USB Adapters of these serial numbers to update to the newer PCAN API version and to use more than 8 PCAN-Channels?

I have the PCAN-USB Adapters with serial numbers of: 002022 199999.

If it is possible, do i have to change than some methods of the API or are they the same as the older API methods?

And do i have to install again the installer for PCAN Basic and to replace the dll in Windows\SysWOW64,...?

And an additional question for the PCAN-ISO TP and PCAN-UDS dlls, do i only have to include them to my project references or do they also need to copy to the windows folder(Windows\SysWOW64 and Windows\System32 )?

Thank you and best regards

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by K.Wagner » Tue 17. Apr 2018, 13:24

Hello,

did you check that your computer can see all devices by using the device manager as described in my last post? as I already said, the amount of channels to use depends on the PCAN-Basic version used and in the capabilities of your computer.
Oprogramer wrote:I checked the serial numbers of my PCAN-USB Adapters and i have the older PCAN-USB Adapters with serial numbers untill 199999. It is possible for the PCAN-USB Adapters of these serial numbers to update to the newer PCAN API version and to use more than 8 PCAN-Channels?
Neither hardware version nor firmware version have anything to do with the amount of channel that PCAN-Basic can handle.
Oprogramer wrote:And an additional question for the PCAN-ISO TP and PCAN-UDS dlls, do i only have to include them to my project references or do they also need to copy to the windows folder(Windows\SysWOW64 and Windows\System32 )?
PCAN-ISO-TP/PCAN-UDS, as well as PCAN-Basic, are native libraries - not assemblies. This mean, you cannot add them as reference. You need to include the header file to your project, that corresponds to the used programming language (for instance, PCAN-ISO-TP.cs or PCAN-UDS.cs when using C#). The dlls can be placed in the output folder of your project, or in System32/SysWow64 folder if the have to be found from everywhere in your computer.

Please let us know which version of PCAN-Basic you are using. For this, please do one of these:
  1. Call "CANGetValue/PCANBasic.GetValue" with the parameter PCAN_API_VERSION from your code, or
  2. call "CANGetValue/PCANBasic.GetValue" with the parameter PCAN_LOG_STATUS from your code, for log activation. Then, check the version number in the generated log file, or
  3. start one of the compiled "PCANBasicExample.exe" demo files, connect a channel, and click the button "Version"
Best regards,
Keneth

Oprogramer
Posts: 29
Joined: Mon 6. Nov 2017, 13:31

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by Oprogramer » Tue 17. Apr 2018, 14:00

Hello,

Yes i checked, my computer cann see all devices. I have installed the older version of PCAN-Basic.

I have followed your recommendation and got the following informations:

- PCAN_USB 4.1.1.16099


So i checked also the PCANBasic.vb header file and recognized that it only contains 8 PCAN-USB channels.

Should i run the PCANBASIC installer again to upgrade to the newer version? And do i must replace the UDS and ISP-TP dlls in my Project to use the newer version?

Thanks and best regards

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by K.Wagner » Tue 17. Apr 2018, 14:16

Oprogramer wrote:- PCAN_USB 4.1.1.16099
this is the Driver version. I need the API version. This is found in the same text from where you got the driver version. See picture:
PCAN-basic API Version from sample exe
PCAN-basic API Version from sample exe
API-Version.PNG (12.62 KiB) Viewed 8769 times
Oprogramer wrote:So i checked also the PCANBasic.vb header file and recognized that it only contains 8 PCAN-USB channels.
Then you have an older file, but this no mean the PCAN-Basic is old. That is why we need to check the API version. Nevertheless, in order to get the latest files, please download the PCAN-Basic package from here. It contains header files, sample projects and libraries.
Oprogramer wrote:Should i run the PCANBASIC installer again to upgrade to the newer version?
Yes, if you have installed the PCAN-Basic using the PEAK-System-Driver-Setup (PeakOemDrv.exe). The latest version can be found here.
Oprogramer wrote: And do i must replace the UDS and ISP-TP dlls in my Project to use the newer version?
No, just check that you are using the latest ISO-TP and UDS versions. The version history of all APIs can be seen here.
Best regards,
Keneth

Oprogramer
Posts: 29
Joined: Mon 6. Nov 2017, 13:31

Re: Connect more than 10 PCAN-USB adapter to communicat over

Post by Oprogramer » Tue 17. Apr 2018, 14:23

Hello,

sorry i looked at the false row.

The current API version i use is: 4.2.0.134

So i have to install the new PCANBASIC API.

Thank you and best regards

Post Reply