Problem setting bit rate adapting

This forum covers issues concerning multiple software products.
Locked
kkregger
Posts: 7
Joined: Tue 25. Jul 2017, 00:49

Problem setting bit rate adapting

Post by kkregger » Thu 8. Nov 2018, 19:26

I'm using a PCAN USB device.
I'm trying to do this in C#:
TPCANStatus status = 0;
uint enable = PCANBasic.PCAN_PARAMETER_ON;
status = PCANBasic.SetValue(handle, TPCANParameter.PCAN_BITRATE_ADAPTING,
ref enable, Convert.ToUInt32(Marshal.SizeOf(enable)));
The returned status always equals TPCANStatus.PCAN_ERROR_ILLPARAMTYPE.
This is something that I thought had worked previously.
I'm out of ideas.

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

Re: Problem setting bit rate adapting

Post by K.Wagner » Fri 9. Nov 2018, 08:31

Hello,

The error you are receiving means, that the Parameter is not recognized, so probably your application is using an older version of PCAN-Basic.

The parameter PCAN_BITRATE_ADAPTING is available beginning with the version v4.0.0, which was released on May 21st, 2015.

Please check that your application is using at least this version of PCAN-Basic. The current version isv4.3.0
Best regards,
Keneth

kkregger
Posts: 7
Joined: Tue 25. Jul 2017, 00:49

Re: Problem setting bit rate adapting

Post by kkregger » Tue 13. Nov 2018, 00:31

I sometimes see ILLCLIENT errors when connecting to PCAN USB devices with version 4.3.0.
I don't see these errors with version 4.0.0.
My Bit rate adapting problem seems to be solved.
Thanks.

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

Re: Problem setting bit rate adapting

Post by K.Wagner » Tue 13. Nov 2018, 17:33

Hello,

the problem you posted here is now solved. The question about the illegal client doesn't fit here. Please create a new topic for it and give more details on that. Thanks.

***Solved***
Best regards,
Keneth

Locked